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

|
/************************************************************************* 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) (小有名氣)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 0710生物學(xué),325求調(diào)劑 +3 | mkkkkkl 2026-04-01 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 377求調(diào)劑 +3 | RASKIN 2026-04-02 | 3/150 |
|
|
[考研] 311求調(diào)劑 +5 | 勇敢的小吳 2026-04-02 | 5/250 |
|
|
[考研] 337求調(diào)劑 +10 | 《樹(shù)》 2026-03-29 | 10/500 |
|
|
[考研] 336求調(diào)劑 +5 | kiyy 2026-04-01 | 5/250 |
|
|
[考研] 一志愿上海海洋大學(xué)083200食品學(xué)碩,求調(diào)劑,接受其他專業(yè) +5 | what張 2026-04-01 | 5/250 |
|
|
[考研] 070300化學(xué)求調(diào)劑 +13 | 小黃鴨寶 2026-03-30 | 13/650 |
|
|
[考研] 301求調(diào)劑 +8 | axibli 2026-04-01 | 8/400 |
|
|
[考研] 一志愿武理材料工程302調(diào)劑環(huán)化或化工 +15 | Doleres 2026-03-31 | 16/800 |
|
|
[考研] 一志愿 南京航空航天大學(xué) ,080500材料科學(xué)與工程學(xué)碩 +10 | @taotao 2026-03-31 | 11/550 |
|
|
[考研] 272求調(diào)劑,接受跨專業(yè)調(diào)劑! +3 | 閑魚(yú)盧 2026-03-31 | 3/150 |
|
|
[考研] 一志愿西電085401數(shù)一英一299求調(diào)劑 六級(jí)521 +4 | 愛(ài)吃大鴨梨 2026-03-31 | 4/200 |
|
|
[考研] 調(diào)劑求院校招收 +7 | 鶴鯨鴿 2026-03-28 | 7/350 |
|
|
[考博] 材料專業(yè)申博 +5 | 杜雨婷dyt 2026-03-29 | 5/250 |
|
|
[考研] 287求調(diào)劑 +17 | land xuxu 2026-03-26 | 17/850 |
|
|
[考研] 總分322求生物學(xué)/生化與分子/生物信息學(xué)相關(guān)調(diào)劑 +6 | 星沉uu 2026-03-26 | 7/350 |
|
|
[考研] 11408總分309,一志愿東南大學(xué)求調(diào)劑,不挑專業(yè) +5 | 天賦帶到THU 2026-03-29 | 6/300 |
|
|
[考研] 293求調(diào)劑 +3 | 末未mm 2026-03-30 | 5/250 |
|
|
[考研] 求佛 +7 | 迷人的哈哈 2026-03-28 | 7/350 |
|
|
[考研] 352分 化工與材料 +5 | 海納百川Ly 2026-03-27 | 5/250 |
|