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

Getting hydrostatic pressure in a vertical box using simpleFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2015, 13:24
Default Getting hydrostatic pressure in a vertical box using simpleFOAM
  #1
New Member
 
maxime
Join Date: Jul 2015
Posts: 8
Rep Power: 10
maxou1993 is on a distinguished road
Hi,
I would like to have a vertical cuboïd box (see figure in attachment) with no fluid motion and kinematic hydrostatic pressure (using simpleFoam) like if I cut a box in a static sea. Do you know which boundary conditions for p and u are the best on each face (to get such kinematic hydrostatic pressure and zero velocity after simulation with simpleFoam) ? And how could I add gravity using OpenFOAM (i didn't manage to get clear answer on the forum)
Here are my blockMeshDict, initial p and U files with respective boundary conditions (for the different faces, I used patches to assign boundary conditions). (I specified 100 and 120 for the pressure at the top and bottom because the height of my channel is 2m so using dp=-gz...)
Of course, because my model is wrong (g is missing) I got (with those parameters) discontinuities for p and v at the top and the bottom of my vertical channel... but above all I got oscillating forces (forces don't converge with simpleFoam).
Attached Images
File Type: png Capture.PNG (15.1 KB, 32 views)
Attached Files
File Type: txt p.txt (1.4 KB, 8 views)
File Type: txt U.txt (1.6 KB, 8 views)
File Type: txt blockMeshDict.txt (1.7 KB, 5 views)
maxou1993 is offline   Reply With Quote

Old   September 9, 2015, 03:37
Default
  #2
New Member
 
maxime
Join Date: Jul 2015
Posts: 8
Rep Power: 10
maxou1993 is on a distinguished road
Hi,
I understand my previous post was a little bit long.
So, I'm going to try to make my question shorter : I have a vertical pipe with fluid inside; how can I add gravity to simpleFoam and which boundary conditions (more especially for the top and the bottom, since I can use cyclic bc or wall bc for front, back, left and right)can I use for the different walls after having used simpleFoam (so as to have an hydrostatic pressure distribution and 0 velocity) ?
Thanks,
maxou1993 is offline   Reply With Quote

Old   September 22, 2015, 15:15
Default
  #3
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Take a look at buoyantPimpleFoam and buoyantBoussinesqSimpleFoam
jherb is offline   Reply With Quote

Old   June 13, 2022, 05:02
Default
  #4
Member
 
Mahmoud
Join Date: Nov 2020
Location: United Kingdom
Posts: 43
Rep Power: 5
Mahmoud Abbaszadeh is on a distinguished road
Quote:
Originally Posted by maxou1993 View Post
Hi,
I understand my previous post was a little bit long.
So, I'm going to try to make my question shorter : I have a vertical pipe with fluid inside; how can I add gravity to simpleFoam and which boundary conditions (more especially for the top and the bottom, since I can use cyclic bc or wall bc for front, back, left and right)can I use for the different walls after having used simpleFoam (so as to have an hydrostatic pressure distribution and 0 velocity) ?
Thanks,


Any progress with this question?
Mahmoud Abbaszadeh 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
Pressure driven flow in vertical pipe Hale OpenFOAM Pre-Processing 6 September 13, 2013 08:16
Pressure BC for combustion chamber Giuki FLUENT 1 July 19, 2011 11:35
hydrostatic pressure influence pdz711 FLUENT 0 June 17, 2008 22:33
hydrostatic and static pressure pi CFX 3 May 26, 2004 10:35
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 15:00


All times are GMT -4. The time now is 18:54.