|
[Sponsors] |
June 26, 2019, 07:53 |
UDF weird problem
|
#1 |
New Member
Ma qiyu
Join Date: Dec 2018
Posts: 8
Rep Power: 7 |
Hello,
I have struggled with a UDF problem and I can‘t find same question anywhere. Here is the thing: I started running my case it compiled the UDF successfully and ran well.BUT when I load the auto saved case and data to resume calculation things became weird,it can't run at the beginning. the error is: Updating solution at time level N... done. Updating mesh at time level N... The fl process could not be started. MPI Application rank 0 exited before MPI_Finalize() with status -1073741819 I used to run the same case well on another PC in fluent 15.0 using serial processing,my present fluent version is 2019R1 with same configurations. I have tested other cases without UDF and they can resume calculation naturally. Things like the old UDF isn't compatible new version of fluent.I put my UDF down below omiting the code detials: Code:
#include<stdio.h> #include"udf.h" #include"math.h" #define PI 3.1415926 DEFINE_GRID_MOTION(up1,domain,dt,time,dtime) { Thread *tf=DT_THREAD(dt); face_t f; Node *v; int M=10000,N=8092,i,j,I0,n; double L0 = 0.2, x[10002], y[10002], dx[10001], dy[10001], ds[10001], L[10001], xxxup, yyyup, xup[10001], yup[10001], a = 0.05, t = 0.16, wl = 0.08, xx1[] = {}, h1[] = {}; begin_f_loop(f,tf) { f_node_loop(f,tf,n) { if( n==0) { v=F_NODE(f,tf,n); F_UDMI(f,tf,0)=NODE_Y(v); } } } end_f_loop(f,tf); if(time<=t) { } begin_f_loop(f,tf) { f_node_loop(f,tf,n) { v=F_NODE(f,tf,n); if( NODE_POS_NEED_UPDATE(v)) { NODE_POS_UPDATED(v); NODE_X(v)=xup[i]; NODE_Y(v)=yup[i]; } } } end_f_loop(f,tf); } } |
|
June 26, 2019, 21:46 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
delete this and try to run
Code:
if(time<=t) { } best regards |
|
June 26, 2019, 22:48 |
|
#3 |
New Member
Ma qiyu
Join Date: Dec 2018
Posts: 8
Rep Power: 7 |
the if code controls the motion so I can't delete this part,and I ran this case on single core as I mentioned
|
|
Tags |
udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 07:05 |
Problem with DPM simulation with particles injection and EXECUTE_AT_THE_END UDF. | Ari | Fluent UDF and Scheme Programming | 4 | May 31, 2016 09:51 |
udf loading problem | santu | Fluent UDF and Scheme Programming | 1 | May 22, 2015 16:47 |
Vaporization pressure UDF property problem? | lehoanganh07 | Fluent UDF and Scheme Programming | 1 | September 13, 2014 11:59 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 07:56 |