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

Using simpleFoam with water

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2007, 15:04
Default Hello, Is there a way to se
  #1
Member
 
nicolas
Join Date: Mar 2009
Location: Glasgow
Posts: 42
Rep Power: 17
nico765 is on a distinguished road
Hello,

Is there a way to setup the fluid density in simpleFoam?

I would like to use water, so far i have set up my cases to run at similar reynolds number using high velocities (~100m/s) in my cases. Not sure if this is the best way, since the cases are more unstable when running at higher velocities (same y+ values).

Nico
nico765 is offline   Reply With Quote

Old   October 22, 2007, 15:13
Default Fluid density is constant: tha
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Fluid density is constant: that is why we use the kinematic viscosity. Therefore, divide your dynamic viscosity (in Pascal seconds) bu fluid density and specify that in the constant/transportProperties. Be careful to put back the density if you need wall forces or similar from the pressure (for consistency, p is kinematic pressure).

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   October 23, 2007, 05:52
Default Dear Hrvoje Jasak! Please, ans
  #3
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
Dear Hrvoje Jasak! Please, answer a stupid qustion: how can i convert relative pressure from simpleFoam to normal (total Pressure (kg*m/s^2)??

Many thanks for advice!
mkraposhin is offline   Reply With Quote

Old   October 23, 2007, 06:02
Default Requires a Napoleonic answer h
  #4
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Requires a Napoleonic answer

Multiply by the density

Jasak
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   October 23, 2007, 06:11
Default But it is negative!!! for exam
  #5
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
But it is negative!!! for example, pressure in simpleFoam ranges from -1 to 1 - what does it means?
mkraposhin is offline   Reply With Quote

Old   October 23, 2007, 06:24
Default And, another question (i hope,
  #6
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
And, another question (i hope, i'm not too importunate, and sorry for bad English!)

This question arises when i increase mesh density in cavity tutorial by 2 (both in x and y dimensions) - pressure range increases by 4...

i think, it arises from Bernoulli eqn
i mean, p/rho + w^2/2 + g*z = const...

specific volume (= 1/rho) decreases by 4, so pressure range increasses 4 to satisfy equation. isn't it?
mkraposhin is offline   Reply With Quote

Old   October 23, 2007, 06:24
Default As you know, in incompressible
  #7
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
As you know, in incompressible flows, the pressure level does not matter: the flow is driven by the pressure gradient. Therefore, you can add any offset to the pressure field that you like - remember the pressure on the boundary being e.g. zero or the pressure in the reference point usually set to zero as well.

Therefore, if you know the absolute pressure in any point of the domain, just shift the complete pressure field for this number, maybe adding 101325 Pascal if it makes you feel better.

None of this actually matters when you are calculating the forces unless you've got vacuum outside.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   October 23, 2007, 06:39
Default Many Thanks, Hrvoje Jasak, for
  #8
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
Many Thanks, Hrvoje Jasak, for Your advice!
Many Thanks!

I'll give it a try.
mkraposhin 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
What is phi in simpleFoam ehsan_vaghefi OpenFOAM Running, Solving & CFD 9 October 5, 2024 08:49
SimpleFoam How to specify density sebastiank OpenFOAM Running, Solving & CFD 3 July 27, 2023 10:45
NACA0012 with simpleFOAM nuovodna OpenFOAM Running, Solving & CFD 7 May 19, 2010 05:58
Liquid water, gaseous water and another gas Andy FLUENT 1 May 22, 2006 09:51
shallow water VS deep water Paul Main CFD Forum 10 August 30, 2004 12:56


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