| 查看: 625 | 回复: 1 | ||
ZNSH03新虫 (著名写手)
|
[求助]
DEFINE_ON_DEMAND运行出错
|
|
DEFINE_ON_DEMAND(INIT)/*将壁面第一层网格索引编号赋值给数组a*/ { int thread_ID; Domain *domain; Thread *tt; int i; face_t f; cell_t c0; real A[ND_ND]; i=0; thread_ID=14; domain=Get_Domain(1); tt=Lookup_Thread(domain,thread_ID); begin_f_loop(f,tt) { c0=F_C0(f,tt); counter++; } end_f_loop(f,tt) a=(int*)malloc(counter*sizeof(int)); begin_f_loop(f,tt) { c0=F_C0(f,tt); a=c0; i++; } end_f_loop(f,tt) } 这是模拟湿空气在壁面冷凝udf中的一部分,我在fluent里面一运行execute on demand就出错,前高手指点一下@wuming524 |
» 猜你喜欢
职称评审没过,求安慰
已经有46人回复
回收溶剂求助
已经有7人回复
A期刊撤稿
已经有4人回复
垃圾破二本职称评审标准
已经有17人回复
投稿Elsevier的Neoplasia杂志,到最后选publishing options时页面空白,不能完成投稿
已经有22人回复
EST投稿状态问题
已经有7人回复
毕业后当辅导员了,天天各种学生超烦
已经有4人回复
求助文献
已经有3人回复
三无产品还有机会吗
已经有6人回复
2楼2020-07-02 14:44:59













回复此楼