| 查看: 2303 | 回复: 6 | |||
shuzhan7879木虫 (小有名气)
|
[求助]
Fluent编写udf时,Reaction的变量类型是什么?
|
|
在编写udf时查看help文档,有个变量类型是Reaction,如: DEFINE VR RATE(name,c,t,r,mw,yi,rr,rr t) Argument Type Description symbol name——UDF name. cell_t c——Cell index. Thread *t——Pointer to cell thread on which the volumetric reaction rate is to be applied. Reaction *r——Pointer to data structure that represents the current reaction. real *mw——Pointer to array of species molecular weights. real *yi——Pointer to array of the species mass fractions. real *rr——Pointer to laminar reaction rate. real *rr_t——Pointer to turbulent reaction rate. 上面几种类型,symbol、cell_t、thread、real都遇到过,但这个Reaction的类型到底是什么呢??还请各位高手点拨一下。指教一下,这个变量类型在fluent的help文档中解释在哪? |
» 猜你喜欢
有没有人能给点建议
已经有5人回复
假如你的研究生提出不合理要求
已经有12人回复
实验室接单子
已经有7人回复
全日制(定向)博士
已经有5人回复
萌生出自己或许不适合搞科研的想法,现在跑or等等看?
已经有4人回复
Materials Today Chemistry审稿周期
已经有4人回复
参与限项
已经有3人回复
对氯苯硼酸纯化
已经有3人回复
所感
已经有4人回复
要不要辞职读博?
已经有7人回复
» 本主题相关价值贴推荐,对您同样有帮助:
关于fluentUDF的一个小问题!
已经有5人回复
学习fluent udf
已经有5人回复
fluent udf请教
已经有16人回复
fluent udf的应用
已经有20人回复
全部身家求大神帮忙解决fluent压力脉冲怎么编写UDF的问题
已经有8人回复
linux环境下通过jou文件调用fluent的case,case带有udf,jou文件应该如何修改?
已经有16人回复
fluent UDF代码调用预定义程序的问题(如fortran程序)
已经有15人回复
Fluent中CLC化学反应的UDF例子!金币可追加100!
已经有16人回复
fluent udf教程(英文版)
已经有113人回复
fluent UDF编写一个小错误
已经有4人回复
fluent试图编译udf时,点击add source files出现错误提示
已经有6人回复
fluent中通过UDF获得系统时间
已经有15人回复
【求助】FLUENT UDF 气液两相流 汽蚀 汽化潜热(问题详见内容)
已经有21人回复
fluent-udf自定义标量方程边界条件
已经有5人回复
fluent中用udf编写三维速度边界条件出现错误,大家来指导一下啊
已经有9人回复
怎样解决FLUENT received fatal signal (ACCESS_VIOLATION)的错误?
已经有20人回复
udf编程通过,但是在FLUENT中运行出错,麻烦udf高手帮忙看看
已经有4人回复
fluent 在udf编译时出'constant'错!
已经有6人回复
求助:UDF模型的编译问题
已经有15人回复
有关fluent的udf中的hook
已经有6人回复
【求助】单机多核fluent并行udf
已经有13人回复
【求助】fluent计算中,udf编译通过,初始化出错
已经有11人回复
【答案】应助回帖
★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
shuzhan7879: 金币+15, ★★★很有帮助, 还请指教下从哪里找到的~~ 2013-05-17 14:56:28
shuzhan7879: 金币+5, ★★★★★最佳答案 2013-05-17 17:01:07
xiegangmai: 金币+2, 谢谢参与! 2013-05-17 21:15:23
感谢参与,应助指数 +1
shuzhan7879: 金币+15, ★★★很有帮助, 还请指教下从哪里找到的~~ 2013-05-17 14:56:28
shuzhan7879: 金币+5, ★★★★★最佳答案 2013-05-17 17:01:07
xiegangmai: 金币+2, 谢谢参与! 2013-05-17 21:15:23
|
/************************************************************************* Reactions *************************************************************************/ #define REACTION_NAME_LENGTH 32 #define STOICHIOMETRY_LENGTH 128 #define MAX_COV_SPE MAX_SPE_EQNS /*max coverage species in a reaction = max site species*/ typedef struct reaction_struct { char name[REACTION_NAME_LENGTH]; /* reaction name */ char stoichiometry[STOICHIOMETRY_LENGTH]; /* stoichiometry equation */ int n_reactants; /* number of reactants */ Material* mat_reactant[MAX_PDF_SPECIES]; /* species materials of reactants */ int reactant[MAX_PDF_SPECIES]; /* species indices of reactants */ real stoich_reactant[MAX_PDF_SPECIES]; /* stoichiometric coefficients of reactants */ real exp_reactant[MAX_PDF_SPECIES]; /* rate exponents of reactants */ real eff_reactant[MAX_PDF_SPECIES]; /* 3rd body efficiencies of reactants */ int n_products; /* number of products */ Material* mat_product[MAX_PDF_SPECIES]; /* species materials of products */ int product[MAX_PDF_SPECIES]; /* species indices of products */ real stoich_product[MAX_PDF_SPECIES]; /* stoichiometric coefficients of products */ real exp_product[MAX_PDF_SPECIES]; /* rate exponents of products */ real eff_product[MAX_PDF_SPECIES]; /* 3rd body efficiencies of products */ int n_others; /* number of other species */ Material* mat_other[MAX_PDF_SPECIES]; /* materials of other species */ int other[MAX_PDF_SPECIES]; /* species indices of other species */ real exp_other[MAX_PDF_SPECIES]; /* rate exponents of other species */ real eff_other[MAX_PDF_SPECIES]; /* 3rd body efficiencies of other species */ /* Coefficients for Arrhenius rate expression */ double A; /* "pre-exponential" factor */ double logA; double b; /* temperature exponent */ double E; /* activation energy */ real Cmin; /* minimum concentration for negative reaction order */ /* Coefficients for turbulent mixing rate (eddy breakup) model */ real Amix, Bmix; /* Data for particle surface reaction */ int diffusion_species; /* index for diffusion limited species */ int catalyst_species; /* index for catalyst species */ real C1, eff; /* diffusion rate and effectiveness factor */ /* pressure dependent reaction */ int press_react; int press_type; /* Lindeman, Troe, SRI */ int bath_gas; /* mixture or individual species */ real press_params[8]; int use_third_body_efficiencies; int surface_reaction; int particle_reaction; int backward_reaction; /* cache sum of exponents for rampant jacobians */ real sum_exponents; int surface_coverage ; int num_cov_sp ; int cov_sp_index[MAX_COV_SPE]; real cover_para[MAX_COV_SPE][3]; struct reaction_struct *next; /* next reaction in list */ } Reaction; |

2楼2013-05-16 23:31:36
shuzhan7879
木虫 (小有名气)
- 应助: 1 (幼儿园)
- 金币: 2662.9
- 红花: 4
- 帖子: 231
- 在线: 129.3小时
- 虫号: 745824
- 注册: 2009-04-11
- 专业: 能源化工
3楼2013-05-17 09:17:59
shuzhan7879
木虫 (小有名气)
- 应助: 1 (幼儿园)
- 金币: 2662.9
- 红花: 4
- 帖子: 231
- 在线: 129.3小时
- 虫号: 745824
- 注册: 2009-04-11
- 专业: 能源化工
4楼2013-05-17 16:59:24
5超7
至尊木虫 (著名写手)
菜鸟
- 仿真EPI: 1
- 应助: 488 (硕士)
- 金币: 25546.5
- 散金: 41
- 红花: 41
- 帖子: 2465
- 在线: 879.8小时
- 虫号: 1371942
- 注册: 2011-08-18
- 性别: GG
- 专业: 能源化工

5楼2013-05-18 08:04:52
shuzhan7879
木虫 (小有名气)
- 应助: 1 (幼儿园)
- 金币: 2662.9
- 红花: 4
- 帖子: 231
- 在线: 129.3小时
- 虫号: 745824
- 注册: 2009-04-11
- 专业: 能源化工
6楼2013-05-20 15:55:09
5超7
至尊木虫 (著名写手)
菜鸟
- 仿真EPI: 1
- 应助: 488 (硕士)
- 金币: 25546.5
- 散金: 41
- 红花: 41
- 帖子: 2465
- 在线: 879.8小时
- 虫号: 1371942
- 注册: 2011-08-18
- 性别: GG
- 专业: 能源化工

7楼2013-05-21 08:04:23












回复此楼