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

newbie question about pressure initial condition

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By joshwilliams

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2022, 14:28
Default newbie question about pressure initial condition
  #1
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 300
Rep Power: 7
boffin5 is on a distinguished road
After working with some heat transfer cases, just dealing with templates and tutorials, regarding the pressure initial condition, it struck me:


For chtMultiRegion cases, the pressure units are kg/(meter second^2), and the default value in the tutorials is 10000.


Whereas, in incompressible simpleFoam cases, the pressure units are meter^2/sec^2 and the default value is 0.


Can someone help me to understand the differences in these units, and the default values?
boffin5 is offline   Reply With Quote

Old   February 20, 2022, 06:16
Default
  #2
Senior Member
 
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 114
Rep Power: 6
joshwilliams is on a distinguished road
Hi,



In incompressible simulations, we are only interested in pressure gradients, i.e. if pressure at inlet is 10020 Pa and pressure at outlet is 10000 Pa in real life, we can just express it as 0 at the outlet and 20 at the inlet. It is much easier. But of course in compressible simulations, there is a change in density that depends on total pressure, thus the 'default value' is generally around 10000 Pa. In incompressible simulations, the 'default values' will be relative to some baseline (usually 0 m^2/s^2 at the outlet).



Considering the units, the density is constant, so we divide the pressure on the right hand side of the momentum equation by density (making the units go from Pa to m^2/s^2).


Best,
Josh
saidc. likes this.
joshwilliams is offline   Reply With Quote

Old   February 20, 2022, 19:16
Default Thanks for the help!
  #3
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 300
Rep Power: 7
boffin5 is on a distinguished road
Josh,


Thanks, I really appreciate your help. This helps me to understand the basics, after I been thrashing through the minutia.


Alan w
boffin5 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" bigphil OpenFOAM CC Toolkits for Fluid-Structure Interaction 686 December 22, 2022 09:10
Compressible flows with larger Courant numbers Tobi OpenFOAM Running, Solving & CFD 5 February 26, 2021 15:20
laplacianFoam with source term Herwig OpenFOAM Running, Solving & CFD 17 November 19, 2019 13:47
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03


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