|August 27, 2015, 04:40||
Why my UDF return Zero?
Join Date: Jul 2014
Posts: 33Rep Power: 4
I am going to calculate the following expression in FLUENT to plot the vorticity in my 2D model.
I write the following UDF:
C_UDMI(c,t,0) = pow((C_DUDX(c,t)+C_DVDY(c,t)),2)+4*(C_DUDX(c,t)*C_ DVDY(c,t)-C_DUDY(c,t)*C_DVDX(c,t));
But when I run the execution on demand, it returns zero, that means this code is not working?
I change the formula and write C_UDMI(c,t,0) = C_DUDX(c,t) and again it returns zero. Why velocity derivatives are not working?
Thank you in advance for your assistance
|August 27, 2015, 06:16||
Join Date: May 2014
Posts: 224Rep Power: 5
Add this line before your message and compute manually the values to make sure you are reading them correctly:
if((c%10000) == 0)
Message("DUDX %f, DVDY %f, DUDY%f, DVDX %f\n", C_DUDX(c,t), C_DVDY(c,t), C_DUDY(c,t), C_DVDX(c,t));
|Thread||Thread Starter||Forum||Replies||Last Post|
|Error during interpreting UDF for VoF||vekh||Fluent UDF and Scheme Programming||2||May 25, 2015 20:20|
|UDF diffusivity (strain rate)-UDS||Lilly||Fluent UDF and Scheme Programming||0||September 6, 2013 02:47|
|I need UDF help.||S.Whitney||FLUENT||0||October 15, 2007 11:29|
|UDF...UDF...UDF...UDF||Luc SEMINEL||FLUENT||0||November 25, 2002 05:03|
|UDF, UDF, UDF, UDF||Luc SEMINEL||Main CFD Forum||0||November 25, 2002 05:01|