I think for your case, you have to set fixedValue boundary conditions in your patches (1) and (2) with the value
p_atmosphere - rho(at position of boundary) * g * h_rel h_rel is the hight difference to your reference point (which might be set automatically to 0) |
Hi Herb,
thank you for the quick response. One question. hrel is the difference between the level in tank (1) to the reference point as well as the level in tank (2) to the reference point? |
Yes, both tanks should have the same reference point.
So if the heights are different, the boundary (fixed)Value should be different. (I am not totally sure about the sign) So for the bigger height, the value of p_rgh is higher (p - rho * (-9.81) * h). Which actually make sense:If there is no flow, the pressure should be the same everywhere. |
Okay, I will check it tomorrow. Did you ever checked out the following BC:
Code:
This boundary condition provides static pressure condition for p_rgh, Wondering in which szenario we are using it because I never realized the field ph_rgh in any solver. |
I think, you want this:
https://cpp.openfoam.org/v4/classFoa...d.html#details This boundary condition provides static pressure condition for p_rgh, calculated as: https://cpp.openfoam.org/v4/form_51.png Or in the Foundation version: https://github.com/OpenFOAM/OpenFOAM...hScalarField.H |
Ah okay, right but shouldn't it be a totalPrghPressure somehow, which reduces the pressure at the face based on the kinematic pressure (velocity field).
|
All times are GMT -4. The time now is 13:03. |