|
[Sponsors] |
October 31, 2008, 04:18 |
Problem in compiling property(density) UDF
|
#1 |
Guest
Posts: n/a
|
Hi Fluent Users,
I have great difficulty in figuring out my problem. i had written a property udf for density which follows isentropic law: p/rho^gamma= constant; actually my problem is to predict compressibility effects in incompressible flow through obstruction type flow meters. so the compressible fluid in incompressible flow follows a isentropic law and it's udf is: #include "udf.h" DEFINE_PROPERTY(cell_density,cell,thread) { real density; real pressure = C_P(cell,thread); density = pow((pressure/80756.35),1.0/1.4); return density; } value 80756.35 is equal to initial pressure/initial denisty^1.4 101325/1.176^1.4=80756.35 during the flow from inlet to outlet density has to vary with respect to pressure variation following isentropic law libudf was successfully built loaded successfully when i am trying to initialise the solution from inlet it is showing fatal error access voilation please help me anybody my project thesis is depends on this problem. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compiling problem | zhoubinwx | OpenFOAM Running, Solving & CFD | 3 | September 3, 2008 09:00 |
Udf compiling problem | ranjit | FLUENT | 1 | January 26, 2007 10:03 |
material property problem | llnudt | FLUENT | 0 | November 23, 2006 10:02 |
Compiling problem | Alper Albayraq | FLUENT | 7 | August 26, 2005 01:39 |
PROBLEM COMPILING!!! PLEASE HELP! | Toni Cominceanu | FLUENT | 3 | May 17, 2005 02:12 |