| 7 | 1/1 | 返回列表 |
| 查看: 1644 | 回復(fù): 6 | ||
tianya1995新蟲 (初入文壇)
|
[求助]
fluent 運(yùn)行出現(xiàn)segmentation fault錯(cuò)誤,udf的adjust函數(shù)出錯(cuò)! 已有1人參與
|
|
在solution initialization的時(shí)候,發(fā)現(xiàn)define_Init運(yùn)行成功了,因?yàn)楹瘮?shù)的開始和結(jié)尾分別都輸出了“init begins"和”init ends" ,這是自己用message輸出的。 但是運(yùn)行整個(gè)udf還是出現(xiàn)了,segmentation fault的錯(cuò)誤,是define_adjust出現(xiàn)了錯(cuò)誤。以下為define_adjust函數(shù),發(fā)現(xiàn)窗口能輸出e_c的值,和輸出adjust running begins的提示,但沒有輸出adjust running ends的提示。 所以認(rèn)為該函數(shù)并沒有運(yùn)行成功。 請(qǐng)教各位大神,這個(gè)到底是什么原因啊,函數(shù)的編寫是哪里有誤嗎,編譯都完全通過了的。 DEFINE_ADJUST(f1,d) { real x[ND_ND]; real xx; real rr; real e_c; real temp=C_T(c,t); if(temp<=6667) e_c=0.0; else if(temp>6667&&temp<=25000) e_c=0.6873*temp-4582.13; else if(temp>25000&&temp<=30000) e_c=(-0.1)*temp+15100; Message("%g\n",e_c ); Message("adjust running begins\n" ;thread_loop_c(t,d) { begin_c_loop_all(c,t) { C_UDMI(c,t,ec)=e_c; C_UDMI(c,t,Tx)=C_T_G(c,t)[0]; C_UDMI(c,t,Tr)=C_T_G(c,t)[1]; C_UDMI(c,t,jx)=-C_UDMI(c,t,ec)*C_UDSI_G(c,t,Fai)[0]; C_UDMI(c,t,jr)=-C_UDMI(c,t,ec)*C_UDSI_G(c,t,Fai)[1]; C_UDMI(c,t,B_0)=C_UDSI_G(c,t,Ar)[0]-C_UDSI_G(c,t,Ax)[1]; C_CENTROID(x,c,t); xx=x[0]; rr=x[1]; C_UDMI(c,t,s_Ar)=-miu_0*C_UDMI(c,t,jr)+C_UDSI(c,t,Ar)/rr/rr; } end_c_loop_all(c,t) } Message("adjust running ends\n" ;} |
新蟲 (初入文壇)
新蟲 (初入文壇)
新蟲 (初入文壇)
新蟲 (初入文壇)
| 7 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 291 求調(diào)劑 +3 | 化工2026屆畢業(yè)?/a> 2026-03-21 | 3/150 |
|
|---|---|---|---|---|
|
[基金申請(qǐng)] 山東省面上項(xiàng)目限額評(píng)審 +4 | 石瑞0426 2026-03-19 | 4/200 |
|
|
[考研] 278求調(diào)劑 +9 | 煙火先于春 2026-03-17 | 9/450 |
|
|
[考研] 313求調(diào)劑 +4 | 肆叁貳壹22 2026-03-19 | 4/200 |
|
|
[考研] 266求調(diào)劑 +3 | 哇呼哼呼哼 2026-03-20 | 3/150 |
|
|
[考研] 085601調(diào)劑 358分 +3 | zzzzggh 2026-03-20 | 4/200 |
|
|
[考研] 083200學(xué)碩321分一志愿暨南大學(xué)求調(diào)劑 +3 | innocenceF 2026-03-17 | 3/150 |
|
|
[考研] 307求調(diào)劑 +10 | 冷笙123 2026-03-17 | 10/500 |
|
|
[考研]
|
.6lL 2026-03-18 | 8/400 |
|
|
[考研] 材料專碩英一數(shù)二306 +7 | z1z2z3879 2026-03-18 | 7/350 |
|
|
[考研] 308求調(diào)劑 +3 | 阿姐阿姐家啊 2026-03-18 | 3/150 |
|
|
[考研] 330求調(diào)劑 +4 | 小材化本科 2026-03-18 | 4/200 |
|
|
[考研] 一志愿武漢理工材料工程專碩調(diào)劑 +9 | Doleres 2026-03-19 | 9/450 |
|
|
[考研] 288求調(diào)劑 +16 | 于海海海海 2026-03-19 | 16/800 |
|
|
[考研] 北科281學(xué)碩材料求調(diào)劑 +5 | tcxiaoxx 2026-03-20 | 5/250 |
|
|
[考研] 廣西大學(xué)家禽遺傳育種課題組2026年碩士招生(接收計(jì)算機(jī)專業(yè)調(diào)劑) +3 | 123阿標(biāo) 2026-03-17 | 3/150 |
|
|
[考研] 招收調(diào)劑碩士 +4 | lidianxing 2026-03-19 | 12/600 |
|
|
[考研] 0703化學(xué)調(diào)劑 +3 | 妮妮ninicgb 2026-03-17 | 3/150 |
|
|
[考博] 26博士申請(qǐng) +3 | 1042136743 2026-03-17 | 3/150 |
|
|
[考研] 326求調(diào)劑 +5 | 上岸的小葡 2026-03-15 | 6/300 |
|