# Problem in compiling property(density) UDF

 Register Blogs Members List Search Today's Posts Mark Forums Read

 October 31, 2008, 05:18 Problem in compiling property(density) UDF #1 satish2968 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.

 October 31, 2008, 06:23 Re: Problem in compiling property(density) UDF #2 max Guest   Posts: n/a What is the value for pressure you are initializing? If it is zero your udf will return a density of zero as well which might be the reason for the error. Max

 October 31, 2008, 15:25 Re: Problem in compiling property(density) UDF #3 rajesh Guest   Posts: n/a Try this and let me know if it helps. while initializing the solution, do not select inlet from the drop-down list, instead type in all the quantities for inlet velocity, temp.... etc. for initializing the solution and then initialize.

 October 31, 2008, 16:06 Re: Problem in compiling property(density) UDF #4 satish Guest   Posts: n/a Hi Rajesh, Thank you for the suggestion and problem is that i know only gauge initial pressure to initialise the solution one of my friend suggested me that I should for all zones in the drop down box or simple have to click on the init button otherwise trying to solve with constant density for 10^-3 convergence and then compiling density udf for further solution by which it will have sufficient pressure field to calculate per cell basis density from available pressure field Please suggest me if u understand anything

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post zhoubinwx OpenFOAM Running, Solving & CFD 3 September 3, 2008 09:00 ranjit FLUENT 1 January 26, 2007 11:03 llnudt FLUENT 0 November 23, 2006 11:02 Alper Albayraq FLUENT 7 August 26, 2005 01:39 Toni Cominceanu FLUENT 3 May 17, 2005 02:12

All times are GMT -4. The time now is 18:24.