| 5 | 1/1 | 返回列表 |
| 查看: 2381 | 回復(fù): 6 | ||
| 當(dāng)前只顯示滿足指定條件的回帖,點擊這里查看本話題的所有回帖 | ||
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文檔中解釋在哪? |
木蟲 (小有名氣)
|
/************************************************************************* 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ā)表 | |
|---|---|---|---|---|
|
[考研] 283分材料與化工求調(diào)劑 +4 | 羅KAKA 2026-04-02 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 計算機265跨調(diào)環(huán)境 +5 | Yumeng_6 2026-03-27 | 5/250 |
|
|
[考研] 08生物與醫(yī)藥專碩初試346找調(diào)劑 +6 | dianeeee 2026-04-01 | 7/350 |
|
|
[考研] 336求調(diào)劑 +5 | kiyy 2026-04-01 | 5/250 |
|
|
[考研] 298求調(diào)劑 +4 | 什么是胖頭魚 2026-03-30 | 6/300 |
|
|
[考研] 292求調(diào)劑 +17 | 木蟲er12138 2026-04-01 | 17/850 |
|
|
[考研] 339求調(diào)劑,想調(diào)回江蘇 +7 | 烤麥芽 2026-03-27 | 10/500 |
|
|
[考研] 食品學(xué)碩362求調(diào)劑 +3 | xuanxianxian 2026-04-01 | 3/150 |
|
|
[考研] 265求調(diào)劑 +11 | yelck 2026-04-01 | 12/600 |
|
|
[考研] 353求調(diào)劑 +4 | 拉鉤不許變 2026-04-01 | 4/200 |
|
|
[考研] 349求調(diào)劑 +6 | 吃的不少 2026-04-01 | 6/300 |
|
|
[考研] 263求調(diào)劑 +3 | DDDDuu 2026-03-27 | 3/150 |
|
|
[考研]
|
鐘llll 2026-03-26 | 5/250 |
|
|
[考研] 一志愿中南大學(xué)化學(xué)0703總分337求調(diào)劑 +6 | niko- 2026-03-27 | 6/300 |
|
|
[考研] 求調(diào)劑 +10 | 張zz111 2026-03-27 | 11/550 |
|
|
[考研] 一志愿雙一流機械285分求調(diào)劑 +4 | 幸運的三木 2026-03-29 | 5/250 |
|
|
[考研] 332求92調(diào)劑 +8 | 蕉蕉123 2026-03-28 | 8/400 |
|
|
[考研] 312,生物學(xué)求調(diào)劑 +3 | 小譯同學(xué)abc 2026-03-28 | 3/150 |
|
|
[考研] 一志愿上海理工能源動力(085800)310分求調(diào)劑 +3 | zhangmingc 2026-03-27 | 4/200 |
|
|
[考研] 324求調(diào)劑 +5 | hanamiko 2026-03-26 | 5/250 |
|