| 5 | 1/1 | 返回列表 |
| 查看: 1427 | 回復(fù): 11 | ||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | ||
奮斗的珊瑚礁新蟲 (初入文壇)
|
[求助]
UDF加載到Fluent中出現(xiàn)錯(cuò)誤,希望各位蟲友們幫忙分析一下 已有3人參與
|
|
|
這是我編寫的一個(gè)二維邊界,y方向的速度是時(shí)間的余弦函數(shù)。 #include "udf.h" DEFINE_PROFILE(wallz_y_velocity, thread, index) { real x[ND_ND]; real y; real t=RP_Get_Real("flow-time" ;cell_t c; Thread*c_thread; begin_c_loop(c,c_thread) { y=x[1]; C_PROFILE(c,thread,index)=0.77*cos(15.708*t); } end_c_loop(c,c_thread) } 加載到Fluent中出現(xiàn)錯(cuò)誤,大家?guī)臀曳治鲆幌拢恢x謝了! Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: () |
新蟲 (初入文壇)
木蟲 (正式寫手)
木蟲 (正式寫手)
|
#include "udf.h" DEFINE_PROFILE(wallz_y_velocity, thread, index) { real x[ND_ND]; real y; real t=RP_Get_Real("flow-time"; cell_t c; Thread*c_thread; begin_c_loop(c,c_thread) { C_CENTROID(x,c,c_thread) y=x[1]; C_PROFILE(c,thread,index)=0.77*cos(15.708*t); } end_c_loop(c,c_thread) } |
木蟲 (正式寫手)
|
上貼中少加入的一句后少了“;”。你也可以試試下面這個(gè): #include "udf.h" DEFINE_PROFILE(wallz_y_velocity, thread, index) { real x[ND_ND]; real y; real t=RP_Get_Real("flow-time" ;face_t f; begin_f_loop(f,thread) { F_CENTROID(x,f,thread) y=x[1]; F_PROFILE(f,thread,index)=0.77*cos(15.708*t); } end_f_loop(f,thread) } |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 311(085601)求調(diào)劑 +9 | liziyeyeye 2026-03-28 | 10/500 |
|
|---|---|---|---|---|
|
[考研] 304求調(diào)劑 +8 | 素年祭語 2026-03-31 | 11/550 |
|
|
[考研] 生物考研337分求調(diào)劑 +4 | cgxin 2026-03-30 | 6/300 |
|
|
[考研] 272求調(diào)劑,接受跨專業(yè)調(diào)劑! +3 | 閑魚盧 2026-03-31 | 3/150 |
|
|
[考研] 269求調(diào)劑 +4 | 我想讀研11 2026-03-31 | 4/200 |
|
|
[考研] 282求調(diào)劑 +3 | 呼吸都是減肥 2026-03-31 | 3/150 |
|
|
[考研] 085601一志愿西北工業(yè)大學(xué)初試346 +4 | 085601初試346 2026-03-30 | 4/200 |
|
|
[考研] 332求調(diào)劑 +14 | 032500 2026-03-25 | 14/700 |
|
|
[考研] 359求調(diào)劑 +5 | 王了個(gè)楠 2026-03-25 | 5/250 |
|
|
[考研] 328求調(diào)劑 +8 | 嗯滴的基本都 2026-03-27 | 8/400 |
|
|
[考研] 085701求調(diào)劑初試286分 +5 | secret0328 2026-03-28 | 5/250 |
|
|
[考研] 生物技術(shù)與工程 +7 | 1294608413 2026-03-25 | 8/400 |
|
|
[考研] 求調(diào)劑 +4 | QiMing7 2026-03-25 | 5/250 |
|
|
[考研] 2026年華南師范大學(xué)歡迎化學(xué),化工,生物,生醫(yī)工等專業(yè)優(yōu)秀學(xué)子加入! +3 | llss0711 2026-03-28 | 6/300 |
|
|
[考研] 本科新能源科學(xué)與工程,一志愿華理能動(dòng)285求調(diào)劑 +7 | AZMK 2026-03-28 | 11/550 |
|
|
[考研] 一志愿華理,數(shù)一英一285求A區(qū)調(diào)劑 +8 | AZMK 2026-03-25 | 12/600 |
|
|
[考研] 286求調(diào)劑 +12 | PolarBear11 2026-03-26 | 12/600 |
|
|
[考研] 272求調(diào)劑 +7 | 腳滑的守法公民 2026-03-27 | 7/350 |
|
|
[考研] 266分求材料化工冶金礦業(yè)等專業(yè)的調(diào)劑 +4 | 哇呼哼呼哼 2026-03-26 | 4/200 |
|
|
[考研] 302求調(diào)劑 +4 | 錦衣衛(wèi)藤椒 2026-03-25 | 4/200 |
|