| 查看: 1324 | 回复: 3 | ||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | ||
[求助]
边界条件udf求助 已有1人参与
|
||
|
#include "udf.h" DEFINE_PROFILE(inc_up,thread,index) { Domain *domain= Get_Domain(1); face_t f; cell_t c0; int zone_ID=26;//up的zone_ID,FLUENT界面可看到; Thread *thread_up,*tc0;//thread_up为指向up的指针,由下面look_up Thread获得;tc0为指向up下第一层网格的指针,通过THREAD_T0(t)返回; thread_up=Lookup_Thread(domain,zone_ID);//pointer for up; tc0=THREAD_T0(thread_up);//pointer for c0; begin_f_loop(f,thread_up) { c0=F_C0(f,thread_up);//F_C0 expands to a function that returns the index of a face's neighboring c0 cell ,即cell_t for c0; C_UDSI(c0,tc0,0);//获取自定义标量,此处夹杂物数密度;cell_t c,Thread *t,int i,i is index of scalar; F_PROFILE(f,thread,index)=4.28*pow(10.,-5.)*C_UDSI(c0,tc0,0); } end_f_loop(f,thread_up) } 边界条件UDF,一加载就出现Error: received a fatal signal (Segmentation fault)这个错误,请帮我看看,是udf哪里出错了吗? |
» 猜你喜欢
上海工程技术大学 激光智能制造课题组 2027级博士研究生招生
已经有5人回复
课题组招2027级博士 上海工程技术大学 激光智能制造方向
已经有5人回复
有机合成以后会不会被AI改变?做科研的虫友怎么看
已经有8人回复
求合成方法
已经有7人回复
现代”学阀”该如何界定
已经有12人回复
我的奶奶
已经有3人回复

4楼2018-12-10 00:42:58
3楼2018-08-05 21:26:37










回复此楼