|
[Sponsors] |
defining discrete density profile in a domain |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 28, 2013, 21:46 |
defining discrete density profile in a domain
|
#1 |
New Member
mrityunjay sahu
Join Date: Jun 2013
Posts: 5
Rep Power: 12 |
I am working on stably stratified environmental flows. I have to define two density profile which varying with depth. Such as one profile is from h to h-b and another profile is from h-b to 0. Kindly suggest me the way to perform it. Thank you.
|
|
July 29, 2013, 00:15 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,732
Rep Power: 143 |
I have no idea what h and h-b means.
The density is caused by a combination of temperature, pressure and possibly additional stuff (eg salt content). You have to define the temperature, pressure and/or stuff (salt) values and you will get your density profile. |
|
July 29, 2013, 00:56 |
|
#3 |
New Member
mrityunjay sahu
Join Date: Jun 2013
Posts: 5
Rep Power: 12 |
thank you ghorrocks for your reply. I know the profile of density. How ever it is depth dependent. For instance, there is two layer of density and an interface one is upto 0 to H-h and another is from H-h to H, where H is depth of domain. Density is a function of temperature. I have to define this profile with CEL during initialization, kindly suggest me in this regard. Thank you.
|
|
July 29, 2013, 08:07 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,732
Rep Power: 143 |
If density is a function of temperature only and you know the density then you know the temperature as well. So then you can specify the temperature initial condition, and set density to be a the function of temperature.
Have a look at the CEL expressions for writing functions. And set the density to be the function of temperature and there you have it. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
defining temperature profile with UDF | mohammadkm | Fluent UDF and Scheme Programming | 11 | July 3, 2013 00:15 |
Generating Velocity Profile inside domain. | Hisham | OpenFOAM | 0 | June 7, 2011 07:25 |
air bubble is disappear increasing time using vof | xujjun | CFX | 9 | June 9, 2009 07:59 |
defining the domain | umesh | CFX | 0 | March 14, 2009 00:18 |
Discrete Inlet Velocity Profile | retech | OpenFOAM Pre-Processing | 4 | November 12, 2008 06:20 |