| 5 | 2/1 | 返回列表 |
| 查看: 4933 | 回復(fù): 19 | ||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | ||
SJTU_SZ金蟲 (小有名氣)
|
[求助]
FLUENT單機(jī)多核并行運(yùn)算導(dǎo)入udf之后,初始化報(bào)錯(cuò),Received signal SIGSEGV 已有1人參與
|
|
|
用FLUENT的圓管內(nèi)超臨界水流動(dòng)傳熱,采用SST模型,用udf在material物性設(shè)置里面定義超臨界水的物性隨溫度的變化,然后初始化的時(shí)候報(bào)錯(cuò),錯(cuò)誤信息如下: ============================================================================== Node 4: Process 19756: Received signal SIGSEGV. ============================================================================== MPI Application rank 0 exited before MPI_Finalize() with status 2 The fl process could not be started. 下面是我的udf代碼,udf直接在記事本里寫的,然后把擴(kuò)展名改成.c ,請(qǐng)問是udf的問題,還是我別的什么地方弄錯(cuò)了?PS,我串行運(yùn)算的時(shí)候也報(bào)錯(cuò)Error: received a fatal signal (Segmentation fault). Error Object: #f,求大神指教! #include "udf.h" DEFINE_PROPERTY(viscosity_polynomial,cell,thread) { real viscosity; real temperature; temperature=C_T(cell,thread); if(temperature>=540&&temperature<670) viscosity=-0.02974+(2.06393E-4)*temperature-(5.32888E-7)*pow(temperature,2)+(6.09625E-10)*pow(temperature,3)-(2.61186E-3)*pow(temperature,4); else if(temperature>=670&&temperature<720) viscosity=1.71089-0.00967*temperature+(2.05003E-5)*pow(temperature,2)-(1.93154E-8)*pow(temperature,3)+(6.82497E-12)*pow(temperature,4); else viscosity=4.60518E-4-(1.89262E-6)*temperature+(3.04391E-9)*pow(temperature,2)-(2.12799E-12)*pow(temperature,3)+(5.55983E-16)*pow(temperature,4); return viscosity; } DEFINE_PROPERTY(density_polynomial,cell,thread) { real density; real temperature; temperature=C_T(cell,thread); if(temperature>=540&&temperature<650) density=-102064.64697+719.52081*temperature-1.88404*pow(temperature,2)+0.00219*pow(temperature,3)-(9.59734E-7)*pow(temperature,4); else if(temperature>=650&&temperature<680) density=1.05818E8-637783.40085*temperature-1441.25876*pow(temperature,2)-1.44725*pow(temperature,3)+(5.44861E-4)*pow(temperature,4); else if(temperature>=680&&temperature<720) density=1.45053E7-81799.75493*temperature+173.01793*pow(temperature,2)-0.16267*pow(temperature,3)+(5.7363E-5)*pow(temperature,4); else density=9785.72376-39.65886*temperature+0.06117*pow(temperature,2)-(4.2103E-5)*pow(temperature,3)+(1.08805E-8)*pow(temperature,4); return density; } DEFINE_PROPERTY(thermal_conductivity_polynomial,cell,thread) { real tc; real temperature; temperature=C_T(cell,thread); if(temperature>=540&&temperature<650) tc=-46.31273+0.31446*temperature-(7.86857E-4)*pow(temperature,2)+(8.75221E-7)*pow(temperature,3)-(3.6729E-10)*pow(temperature,4); else if(temperature>=650&&temperature<680) tc=-10013.68647+61.91813*temperature-0.14356*pow(temperature,2)+(1.47931E-4)*pow(temperature,3)-(5.7166E-8)*pow(temperature,4); else if(temperature>=680&&temperature<750) tc=4105.15866-22.5438*temperature+0.04644*pow(temperature,2)-(4.25217E-5)*pow(temperature,3)+(1.46033E-8)*pow(temperature,4); else tc=7.23134-0.02932*temperature+(4.49844E-5)*pow(temperature,2)-(3.0539E-8)*pow(temperature,3)+(7.76698E-12)*pow(temperature,4); return tc; } DEFINE_SPECIFIC_HEAT(specific_heat_polynomial,T,Tref,h,yi) { real cp; if(T>=540&&T<650) cp=1.02221E7-70713.70545*T+183.47921*pow(T,2)-0.21157*pow(T,3)+(9.15037E-5)*pow(T,4); else if(T>=650&&T<675) cp=-2.81076E10+(1.69883E8)*T-384994.92162*pow(T,2)+387.72315*pow(T,3)-0.14641*pow(T,4); else if(T>=675&&T<710) cp=-5.27703E9+3.05849E7*T-66448.74541*pow(T,2)+64.13917*pow(T,3)-0.02321*pow(T,4); else if(T>=710&&T<900) cp=6.4899E6-31048.84474*T+55.78053*pow(T,2)-0.04456*pow(T,3)+(1.33526E-5)*pow(T,4); else cp=117954.93316-415.67508*T+0.56772*pow(T,2)-(3.47613E-4)*pow(T,3)+(8.04047E-8)*pow(T,4); *h=cp*(T-Tref); return cp; } |

木蟲 (小有名氣)
金蟲 (小有名氣)

銅蟲 (初入文壇)
金蟲 (小有名氣)

| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 085410 一志愿211 22408分?jǐn)?shù)359求調(diào)劑 +3 | 123456789qw 2026-03-31 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 材料工程322分 +5 | 哈哈哈吼吼吼哈 2026-04-01 | 5/250 |
|
|
[考研] 085600 295分求調(diào)劑 +15 | W55j 2026-03-30 | 18/900 |
|
|
[考研] 085602化學(xué)工程268分蹲調(diào)劑 +8 | 月照花林。 2026-04-01 | 8/400 |
|
|
[考研] 求調(diào)劑推薦 材料 304 +21 | 荷包蛋hyj 2026-03-26 | 21/1050 |
|
|
[考研] 材料專碩調(diào)劑 +17 | 椰椰。 2026-03-29 | 17/850 |
|
|
[考研] 一志愿鄭大材料工程290求調(diào)劑 +18 | Youth_ 2026-03-30 | 18/900 |
|
|
[考研] 362求調(diào)劑 +13 | 西南交材料專碩3 2026-03-31 | 13/650 |
|
|
[考研] 085600,材料與化工321分,求調(diào)劑 +11 | 大饞小子 2026-03-27 | 11/550 |
|
|
[考研] 考研調(diào)劑 +11 | Amber00 2026-03-31 | 11/550 |
|
|
[考研] 314求調(diào)劑 +6 | 1xiaojun23 2026-03-31 | 6/300 |
|
|
[考研] 358求調(diào)劑 +3 | 王向陽花 2026-03-31 | 3/150 |
|
|
[考研] 合肥區(qū)域性重點(diǎn)一本招收調(diào)劑 +4 | 6266jl 2026-03-30 | 8/400 |
|
|
[考研] 336材料求調(diào)劑 +10 | 陳瀅瑩 2026-03-26 | 12/600 |
|
|
[考研] 材料工程專碩求調(diào)劑 +10 | hyl3153942 2026-03-29 | 10/500 |
|
|
[考研]
|
小羊36 2026-03-30 | 4/200 |
|
|
[考研] 313求調(diào)劑 +6 | 賣個(gè)關(guān)子吧 2026-03-31 | 6/300 |
|
|
[考研] 327求調(diào)劑 +6 | 汲亦昊 2026-03-29 | 6/300 |
|
|
[考研] 331環(huán)境科學(xué)與工程求調(diào)劑 +3 | 熠然好運(yùn)氣 2026-03-27 | 3/150 |
|
|
[考研] 292求調(diào)劑 +4 | 求求了收下我吧?/a> 2026-03-26 | 4/200 |
|