C_T(adjacent_cell) returns zero
Hi, I am a new user of UDF.
I am using VOF model for multiphase flow.
I want to access the temperature of adjacent cell of each cell.
There are some value return as zero (like 360 E-360);
What is this cell?
Here is my code in Define_Adjust()
c_face_loop(c, t, n)
f = C_FACE(c,t,n);
tf = C_FACE_THREAD(c,t,n);
c0 = F_C0(f,tf);
t0 = THREAD_T0(tf);
c0 = F_C1(f,tf);
t0 = THREAD_T1(tf);
Message("Temperature of adjacent cell:%g.\n",C_T(c0,t0));
This might work:
temp1 = C_T(c0,t0);
Message("Temperature of adjacent cell:%g.\n",temp1);
Hi, thanks for this solution.
But it still does not work.
here is the output:
Temperature of neighbor cell is: 3.95253e-323;
The interesting thing is when I use serial simulation,
this problem disappear.
When I use parallel computation.
This problem appear.
What is the reason?
Thank you in advance.
You must modify your UDF for parallel usage. Your must use !RP_HOST and !RP_NODE for that. You can look in to fluent manual for that.
Thank you very much. I found some documents on it.
|All times are GMT -4. The time now is 18:16.|