CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

User Defined Density

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2010, 05:25
Default User Defined Density
  #1
New Member
 
Johannes
Join Date: May 2009
Posts: 16
Rep Power: 16
jopawipr is on a distinguished road
Hi everybody!

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!
jopawipr is offline   Reply With Quote

Old   March 18, 2010, 12:46
Default
  #2
Member
 
Vinicius Girardi
Join Date: Mar 2009
Location: Sao Paulo, Brazil
Posts: 80
Rep Power: 17
Vinicius is on a distinguished road
Hi,

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.

Regards
Vinicius is offline   Reply With Quote

Reply


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
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 Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 15:55.