| 5 | 1/1 | 返回列表 |
| 查看: 2382 | 回復(fù): 6 | ||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | ||
shuzhan7879木蟲 (小有名氣)
|
[求助]
Fluent編寫udf時(shí),Reaction的變量類型是什么?
|
|
|
在編寫udf時(shí)查看help文檔,有個(gè)變量類型是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都遇到過,但這個(gè)Reaction的類型到底是什么呢??還請(qǐng)各位高手點(diǎn)撥一下。指教一下,這個(gè)變量類型在fluent的help文檔中解釋在哪? |
至尊木蟲 (著名寫手)
菜鳥

|
/************************************************************************* 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; |

木蟲 (小有名氣)
木蟲 (小有名氣)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 085601一志愿北理325分求調(diào)劑 +3 | 找調(diào)劑,, 2026-04-02 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 08開頭看過來。! +4 | wwwwffffff 2026-03-31 | 6/300 |
|
|
[考研] 311求調(diào)劑 +9 | 勇敢的小吳 2026-04-02 | 9/450 |
|
|
[考研] 261求B區(qū)調(diào)劑 +5 | 明仔· 2026-04-01 | 7/350 |
|
|
[考研] 0805求調(diào)劑 +8 | 是水分 2026-03-31 | 8/400 |
|
|
[考研] 311求調(diào)劑 +16 | zchqwer 2026-04-01 | 18/900 |
|
|
[考研] 322求調(diào)劑 +5 | 熹僖XX 2026-03-31 | 6/300 |
|
|
[考研] 0856,269分求調(diào)劑 +8 | 有學(xué)上就行求求?/a> 2026-03-30 | 11/550 |
|
|
[考研] 070300一志愿211,312分求調(diào)劑院校 +14 | 小黃鴨寶 2026-03-30 | 14/700 |
|
|
[考研] 材料與化工(0856)304求B區(qū)調(diào)劑 +8 | 邱gl 2026-03-30 | 16/800 |
|
|
[考研] 0710生物學(xué)考研調(diào)劑 +3 | 李多米lee. 2026-03-27 | 4/200 |
|
|
[考研] 材料調(diào)劑 +11 | 一樣YWY 2026-03-31 | 11/550 |
|
|
[考研] 288資源與環(huán)境專碩求調(diào)劑,不限專業(yè),有學(xué)上就行 +25 | lllllos 2026-03-30 | 26/1300 |
|
|
[考研] 0710生物學(xué)求調(diào)劑! +6 | 敘述文 2026-03-31 | 6/300 |
|
|
[考研] 求調(diào)劑 +8 | 11ggg 2026-03-30 | 8/400 |
|
|
[考研] 274求調(diào)劑 +6 | xiao愛同學(xué) 2026-03-30 | 6/300 |
|
|
[考研] 282求調(diào)劑 +3 | 呼吸都是減肥 2026-03-31 | 3/150 |
|
|
[考研] 303求調(diào)劑 +7 | DLkz1314. 2026-03-30 | 7/350 |
|
|
[考研] 296求調(diào)劑 +10 | 彼岸t 2026-03-29 | 10/500 |
|
|
[考研] 340求調(diào)劑 +5 | jhx777 2026-03-27 | 5/250 |
|