CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   interFoam BC for open water (https://www.cfd-online.com/Forums/openfoam-solving/245065-interfoam-bc-open-water.html)

EricS September 13, 2022 05:03

interFoam BC for open water
 
Hello everyone!


I'm trying to simulate the flow exiting a pipe placed around 3 meters under the sea level. The case is 2D but I'm having some problems with the boundary conditions for the "sea".


So far I set:
U
inlet -> flowRateInletVelocity
outlet -> inletOutletVelocity
p

inlet -> fixedFluxPressure
outlet -> zeroGradient
alpha
inlet -> fixedValue ... value 1

outlet -> variableHeightFlowRate


With those B.Cs the simulation diverges and I can't figure out what to change to make it works...
Do you have any guess or tip?


Thank you in advance :)

jherb September 13, 2022 19:04

You do not specify the pressure with your boundary conditions. Somewhere you need some kind of fixedValue boundary condition for p (or actually for p_rgh).

EricS September 14, 2022 05:41

Hi and thank you for your quick answer! Actually after some tests I was able to make it work by splitting the outlet patch in two and imposing flowRateOutletVelocity in the water patch!


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