CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Density variation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 31, 2013, 04:43
Default Density variation
  #1
Member
 
vishal
Join Date: Mar 2013
Posts: 73
Rep Power: 13
vishal_s is on a distinguished road
how to give density as a function of height in interFoam? Like in case of oceans.
vishal_s is offline   Reply With Quote

Old   January 1, 2014, 11:34
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
well, modify solver
1- define rho1 as volScalarField
2- define rho1 as function of height
3- rho = rho1*alpha1+rho2*(1-alpha1)
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam 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
Current density visualisation (PEM fuel cell add-on module) pchoopanya FLUENT 10 August 21, 2023 14:33
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23
UDF for Density variation Naresh FLUENT 0 February 11, 2006 17:35
Warning 097- AB Siemens 6 November 15, 2004 04:41
Density variation Turbulent flow Parshant Dhand FLUENT 1 January 16, 2003 23:16


All times are GMT -4. The time now is 10:57.