| 查看: 1159 | 回复: 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哪里出错了吗? |
» 猜你喜欢
计算机、0854电子信息(085401-058412)调剂
已经有5人回复
国自然申请面上模板最新2026版出了吗?
已经有13人回复
基金委咋了?2026年的指南还没有出来?
已经有3人回复
Materials Today Chemistry审稿周期
已经有5人回复
溴的反应液脱色
已经有7人回复
推荐一本书
已经有12人回复
基金申报
已经有4人回复
纳米粒子粒径的测量
已经有7人回复
常年博士招收(双一流,工科)
已经有4人回复
有没有人能给点建议
已经有5人回复

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

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











回复此楼