|May 6, 2014, 02:14||
Pressure BC for interFoam
Join Date: May 2011
Posts: 12Rep Power: 7
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:
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
|May 16, 2014, 05:00||
Join Date: Oct 2010
Location: Leoben (Austria)
Blog Entries: 6Rep Power: 26
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.
| < outlet patch | < outlet patch | < outlet wall -------------| < outlet wall lower wall
Some interesting OpenFOAM tutorials and videos on www.Holzmann-cfd.de
|boundary condition, interfoam, pressure, p_rgh, water level|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Calculation of the Governing Equations||Mihail||CFX||7||September 7, 2014 06:27|
|Pressure Driven Supersonic Flow in Converging-Diverging Nozzle||cdm||OpenFOAM Running, Solving & CFD||4||July 21, 2013 16:24|
|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|
|How to get the total pressure in the UDF?||zgzhai||Fluent UDF and Scheme Programming||2||September 12, 2012 06:15|