|July 13, 2009, 12:34||
Join Date: Jul 2009
Posts: 4Rep Power: 9
Below is a short UDF i wrote to calculate the density of supercritical CO2, however it
does not run, it gives a floating point error.
If firstly,I replace the C_P(c,t) with a value say 2 bars it calculates the correct
density though constant throughout. Secondly, if I initialize the gauge pressure in the
solve menu, it uses that value as C_P(c,t) which results to constant density in the
bed... does not depict any pressure drop or change.
I just wandering and wondering where the problem could be.
inlet boundary condition- mass inflow and pressure outlet BC.
#define B 1.1
#define Q 0.2
#define D 0.01
#define R 188.90
#define K 1.330
DEFINE_PROPERTY(superfluid_density, c, t)
real temp= C_T(c,t);
press = C_P(c,t);
rho = D*pow(press,B)/pow(temp,Q);
DEFINE_PROPERTY(sound_speed, c, t)
real temp = C_T(c,t);
a = sqrt(R*K*temp);
|Thread||Thread Starter||Forum||Replies||Last Post|
|How to add a UDF to a compiled UDF library||kim||FLUENT||3||October 26, 2011 21:38|
|Dynamic Mesh UDF||Qureshi||FLUENT||1||December 2, 2009 01:27|
|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|