| 查看: 1274 | 回复: 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哪里出错了吗? |
» 猜你喜欢
售SCI文章,我:8O.5.5.1O.54,科目全,可十急
已经有4人回复
听说今天filecode变了
已经有34人回复
基金中了
已经有6人回复
filecode
已经有14人回复
固定端突然变了,今天
已经有7人回复
filecode
已经有11人回复
大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑
已经有6人回复
一个有机合成实验室都需要哪些设备?
已经有12人回复
求各位大神看下
已经有33人回复
咨询面上基金
已经有7人回复

2楼2018-08-04 16:20:07
3楼2018-08-05 21:26:37

4楼2018-12-10 00:42:58










回复此楼
50