| 24小時(shí)熱門(mén)版塊排行榜 |
| 7 | 1/1 | 返回列表 |
| 查看: 2377 | 回復(fù): 6 | ||
shuzhan7879木蟲(chóng) (小有名氣)
|
[求助]
Fluent編寫(xiě)udf時(shí),Reaction的變量類(lèi)型是什么?
|
|
在編寫(xiě)udf時(shí)查看help文檔,有個(gè)變量類(lèi)型是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. 上面幾種類(lèi)型,symbol、cell_t、thread、real都遇到過(guò),但這個(gè)Reaction的類(lèi)型到底是什么呢??還請(qǐng)各位高手點(diǎn)撥一下。指教一下,這個(gè)變量類(lèi)型在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; |

木蟲(chóng) (小有名氣)
木蟲(chóng) (小有名氣)
至尊木蟲(chóng) (著名寫(xiě)手)
菜鳥(niǎo)

木蟲(chóng) (小有名氣)
至尊木蟲(chóng) (著名寫(xiě)手)
菜鳥(niǎo)

| 7 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 085410 一志愿211 22408分?jǐn)?shù)359求調(diào)劑 +3 | 123456789qw 2026-03-31 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 081200-11408-276學(xué)碩求調(diào)劑 +5 | 崔wj 2026-03-26 | 5/250 |
|
|
[考研] 一志愿鄭大材料工程290求調(diào)劑 +18 | Youth_ 2026-03-30 | 18/900 |
|
|
[考研] 348求調(diào)劑 +5 | 小懶蟲(chóng)不懶了 2026-03-27 | 6/300 |
|
|
[考研] 350求調(diào)劑 +7 | 阿佳~ 2026-03-31 | 7/350 |
|
|
[基金申請(qǐng)] esi高被引論文是不是能對(duì)中標(biāo)有所加分和幫助呢 +3 | redcom 2026-04-01 | 3/150 |
|
|
[考研] 調(diào)劑 +3 | 好好讀書(shū)。 2026-04-01 | 5/250 |
|
|
[考研] 求調(diào)劑 +5 | 零八# 2026-03-27 | 5/250 |
|
|
[考研] 330分求調(diào)劑 +11 | qzenlc 2026-03-29 | 11/550 |
|
|
[考研] 309分085801求調(diào)劑 +7 | 學(xué)員Gtwj7W 2026-03-31 | 7/350 |
|
|
[考研] 求調(diào)劑:085600材料與化工,考材科基,總分319 +17 | 678lucky 2026-03-31 | 21/1050 |
|
|
[考研] 一志愿:西北大學(xué),英一數(shù)一408-284分求調(diào)劑 +7 | 12.27 2026-03-27 | 7/350 |
|
|
[考研]
|
小羊36 2026-03-30 | 4/200 |
|
|
[考研] 085404 22408 315分 +5 | zhuangyan123 2026-03-31 | 6/300 |
|
|
[考研] 求調(diào)劑 +10 | 張zz111 2026-03-27 | 11/550 |
|
|
[考研] 一志愿北京工業(yè)大學(xué),324分求調(diào)劑 +6 | 零八# 2026-03-28 | 6/300 |
|
|
[考研] 11408軟件工程求調(diào)劑 +3 | Qiu學(xué)ing 2026-03-28 | 3/150 |
|
|
[考研] 304求調(diào)劑 +6 | 曼殊2266 2026-03-27 | 6/300 |
|
|
[考研] 一志愿南京航空航天大學(xué)材料學(xué)碩求調(diào)劑 +3 | @taotao 2026-03-28 | 3/150 |
|
|
[考研] 265求調(diào)劑 +8 | 小木蟲(chóng)085600 2026-03-27 | 8/400 |
|