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

Pressure BC for interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2014, 02:14
Default Pressure BC for interFoam
  #1
New Member
 
maxonline's Avatar
 
Max
Join Date: May 2011
Location: Nuremberg
Posts: 17
Rep Power: 14
maxonline is on a distinguished road
Hallo,
I am working on a simulation of a weir with interFoam. Therefore I need a fixed water level at the Outlet to control the actions right behind the weir.
With swak4Foam/groovyBC I can define the pressure on the Outlet to hold the water table on a certain hight:

outlet
{
type groovyBCFixedValue;
valueExpression "(pos().z<34) ? (1*9.81*(72-34)+1000*9.81*(34-(pos().z))) : 1*9.81*(72-(pos().z)) ";
}

also see the sketch.

Problem is that I can just define p_rgh and not the total pressure as a boundary condition.
Is there a way to get interFoam using p as a boundary condition instead of p_rgh in the 0/ folder?

Thanks a lot - Max
Attached Images
File Type: jpg 20140506_080221.jpg (89.3 KB, 123 views)
maxonline is offline   Reply With Quote

Old   May 16, 2014, 05:00
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hello Max,

do you want to simulate a "hydraulic jump"?

If yes, the hydraulic jump will be generated by itselfs and if you set up some BC so that you will have a certain water level below your hydraulic jump - i think - it is not physically correct. This water level should be controlled by your geometry design and the flowrate you have. Because this phenomena is a physical effect -> http://holzmann-cfd.de/index.php/sim...herSprungVideo

There was a guy that made a similar simulation for "Nürnberg" I think and first he wanted to do it with BC. At least he was able to do it in a physical correct way (refining the mesh for example).

Otherwise you can check out the "phaseHydrostaticPressure" or you can insert a wall at the outlet. But still - its not the physical way

But at all - I have no idea if you want to simulate a hydraulic jump and therefor my hints are just for that case.


e.g.
Code:
             |  < outlet patch
             |  < outlet patch
             |  < outlet wall
-------------|  < outlet wall
lower wall
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   August 11, 2014, 09:29
Default
  #3
New Member
 
Join Date: Jul 2014
Posts: 22
Rep Power: 11
jokerito is on a distinguished road
Hello Tobias,

do you have more information about this guy or the simulation for "Nuernberg"?
jokerito is offline   Reply With Quote

Reply

Tags
boundary condition, interfoam, pressure, p_rgh, water level


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 Supersonic Flow in Converging-Diverging Nozzle cdm OpenFOAM Running, Solving & CFD 7 August 28, 2019 01:37
How to get the total pressure in the UDF? zgzhai Fluent UDF and Scheme Programming 3 September 24, 2018 16:12
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
replacing of shock tube high pressure part with a boundary condition for low pressure immortality Main CFD Forum 0 May 2, 2013 13:30
Unsteady pressure differential between inlet and outlet of the pipe for single phase joshi20h FLUENT 0 September 26, 2012 12:41


All times are GMT -4. The time now is 17:01.