CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Hydrostatic pressure using simpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By maxou1993

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2015, 05:16
Default Hydrostatic pressure using simpleFoam
  #1
New Member
 
maxime
Join Date: Jul 2015
Posts: 8
Rep Power: 10
maxou1993 is on a distinguished road
Hi,
I created the same thread on the main CFD forum but it was displaced (but I don't know where...), so I ask my question again on the OpenFoam forum (I hope I'm now at the good place )
So, I'm going to try to make my question short : I have a vertical pipe with fluid inside (laminar flow, no tubulence); 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 (so as to have an hydrostatic pressure distribution and 0 velocity after use of simpleFoam as flow solver) ?
I have an additional question : could someone tell me what does " 'calculated' bc type" mean ? Could you give me a simple example of use (for p or U patches) ? I hardly found information about this topic in this forum and the information I found were not clear for a beginner like me.
I want information about "'calculated' bc type" because I would like to know if It is a way not to have to specify both p, U and other parameters on each patch (once a patch is declared on blockMeshdict) : mathematically, specifying all the parameters of a study for all patches could be too restrictive (and so could distort the solution)... Moreover the simple example of the Poiseuille flow shows that we don't need to impose both velocity and pressure at inlet and outlet : in the real life experiment we just impose a pressure difference between the inlet and the outlet... I hope you'll be able to help me because this time, I believe I'm on the good forum (tell me if it is not the case ).
Thanks,
Mahmoud Abbaszadeh likes this.
maxou1993 is offline   Reply With Quote

Old   September 10, 2015, 04:06
Default
  #2
New Member
 
maxime
Join Date: Jul 2015
Posts: 8
Rep Power: 10
maxou1993 is on a distinguished road
Hi,
I managed to add gravity by creating my own simpleFoam solver using wmake. However, there is no difference between the results of simpleFoam (I'm using Cygwin on Windows) and those of my_simpleFoam (post-processing forces files are exactly the same). In attachment, you'll find the files I modified (that are located in my_simpleFoam). Could you tell me if what I did on these files is correct (in order to add gravity or an other body force) ? Since I have a kinematic pressure what could I do about pho (because this parameter is needed in peqn and ueqn so as to have the good units) in createfields.H ?
There were similar threads about adding gravity in simpleFoam but It seems that the versions they used were older (since p.eqn and u.eqn they used are not the same as mine).
Just for information : I use OpenFoam 2.3.X with Cygwin64.
Thanks.
Attached Files
File Type: h pEqn.H (893 Bytes, 43 views)
File Type: h UEqn.H (283 Bytes, 37 views)
File Type: h createFields.H (1.0 KB, 31 views)
maxou1993 is offline   Reply With Quote

Old   June 19, 2022, 09:23
Default
  #3
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 managed to add gravity by creating my own simpleFoam solver using wmake. However, there is no difference between the results of simpleFoam (I'm using Cygwin on Windows) and those of my_simpleFoam (post-processing forces files are exactly the same). In attachment, you'll find the files I modified (that are located in my_simpleFoam). Could you tell me if what I did on these files is correct (in order to add gravity or an other body force) ? Since I have a kinematic pressure what could I do about pho (because this parameter is needed in peqn and ueqn so as to have the good units) in createfields.H ?
There were similar threads about adding gravity in simpleFoam but It seems that the versions they used were older (since p.eqn and u.eqn they used are not the same as mine).
Just for information : I use OpenFoam 2.3.X with Cygwin64.
Thanks.

have you got the answer to your question? Could you please share that ?
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 in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 05:49
Setting up the pressure variation due to tornado in a duct(UDF)+animation guillaume1990 FLUENT 0 March 3, 2014 11:59
Pressure BC for combustion chamber Giuki FLUENT 1 July 19, 2011 11:35
Does star cd takes reference pressure? monica Siemens 1 April 19, 2007 11:26
hydrostatic pressure in bouyant flow Atit CFX 3 May 31, 2006 07:38


All times are GMT -4. The time now is 07:49.