|March 18, 2010, 06:25||
User Defined Density
Join Date: May 2009
Posts: 16Rep Power: 8
my problem is the compressibility of my fuel cause of the high pressure (up to 1600bar) so i need to implement a density which depends on the pressure.
How can I do this? I've a multiphase mixture with Dodecane Liquid/Vapour.
i have this formula for the density: density(25°C)=829 + 0.0123*pressure(inlet) + 0.000123*pressure²(inlet)
Can anybody help me? Maybe a field function? But i never wrote something like that...
Thanks for any help!
|March 18, 2010, 13:46||
Join Date: Mar 2009
Location: Sao Paulo, Brazil
Posts: 80Rep Power: 8
First of all you have to choose User Defined Density on the equation of state. After that, in the density propeties, select field function.
If you will use the inlet pressure as reference in you formula, you have to create a report of the inlet pressure. You can rename it to "Inlet Pressure". (note, this name will be important)
Now you can create a field function, on the node field functions in the tools node. In the new field function properties, adjust the dimensions to mass/volume and in the definition you can paste this:
829 + 0.0123*$InletPressureReport + 0.000123*pow($InletPressureReport,2)
Now choose your field function in the density node.
Let me know if you have more questions.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Gradient of a User defined Variable||Ramadas||CFX||2||August 21, 2007 09:19|
|User defined function for density gradient||ben akih||CFX||3||October 10, 2006 21:47|
|REAL GAS UDF||brian||FLUENT||6||September 11, 2006 08:23|
|User Defined Scalars - Returning Values||Carlos V.||FLUENT||0||April 19, 2006 18:18|
|Warning 097-||AB||CD-adapco||6||November 15, 2004 05:41|