| 查看: 832 | 回复: 2 | |||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | |||
[求助]
UDS中对流项FLUX编写的问题
|
|||
|
各位前辈: 我最近在编写一个UDF中包含有DEFINE_UDF_FLUX项的编写,这个code能够通过编译,也能正常加载,但是一计算就出现了读取错误: Updating solution at time level N... done. iter continuity x-velocity y-velocity uds-0 time/iter 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: #f 我的FlUX程序很简单,如下: DEFINE_UDS_FLUX(uds_N_flux,f,t,N_UDS_NUM) { Thread *mix_th, *pri_th,*sec_th; real NV_VEC(psi),NV_VEC(A),NV_VEC(psi1); real flux; mix_th = THREAD_SUPER_THREAD(t); pri_th = THREAD_SUB_THREAD(mix_th, 0); sec_th= THREAD_SUB_THREAD(mix_th, 1); NV_D(psi, =, F_U(f,sec_th), F_V(f,sec_th), F_W(f,sec_th)); /* defining psi in terms of velocity field */ F_AREA(A,f,mix_th); /* face normal vector returned from F_AREA , NV_DOT(psi,A); */ flux=NV_DOT(psi,A); return flux; /* dot product of the two returned, there is no density consideration for n */ 请求您的帮助! |
» 猜你喜欢
面上合作单位盖章
已经有5人回复
有多少人是今天查系统知道结果的?
已经有17人回复
为什么资助数各大高校都创新高,自己申请怎么就这么难
已经有8人回复
导师吐槽:我怎么摊上了这么个极品研究生!
已经有7人回复
青基如何破局
已经有7人回复
基金不中,共勉
已经有10人回复
国自然面上复盘~欢迎讨论
已经有11人回复
基金未中,这种答复是模板吗?
已经有6人回复
看板上这么多中的,有点像50人群里49个人都是骗子的那种感觉……
已经有6人回复
怎么看青基中了没有啊
已经有5人回复
» 本主题相关价值贴推荐,对您同样有帮助:
多孔介质udf,uds编写问题
已经有33人回复
fluent求解UDS过程中,出现少数不合理的值..
已经有14人回复
对于uds的对流项设置问题~
已经有4人回复
chenxizh
铁杆木虫 (著名写手)
- 应助: 7 (幼儿园)
- 金币: 8037.6
- 散金: 416
- 红花: 10
- 帖子: 1019
- 在线: 456.1小时
- 虫号: 865248
- 注册: 2009-10-08
- 专业: 流体力学
【答案】应助回帖
★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
ajene: 金币+5, 谢谢您的指点!! 2013-06-05 08:55:05
ajene: 金币+10, ★★★很有帮助 2013-06-05 08:56:07
xiegangmai: 金币+2, 谢谢参与! 2013-06-05 20:49:20
ajene: 金币+5, 谢谢您的指点!! 2013-06-05 08:55:05
ajene: 金币+10, ★★★很有帮助 2013-06-05 08:56:07
xiegangmai: 金币+2, 谢谢参与! 2013-06-05 20:49:20
|
你不需要密度,不要用这个方式,参照帮助里的另外的方法。 或者这个帖子 http://muchong.com/bbs/viewthread.php?tid=1736985&authorid=865248 |
3楼2013-06-04 19:04:45
2楼2013-05-29 12:13:56









回复此楼
10