CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   totalPressure boundary condition (https://www.cfd-online.com/Forums/openfoam-programming-development/91548-totalpressure-boundary-condition.html)

ramhari August 15, 2011 04:03

totalPressure boundary condition
 
can any help me to find what 'phip' means


Location : fields/fvFields/derived/totalPressure

////////////////////////////////
if (psiName_ == "none" && rhoName_ == "none")
{
operator==(p0_ - 0.5*(1.0 - pos(phip))*magSqr(Up));
}
////////////////////////////

Thanks,
Hariram

marupio August 16, 2011 13:17

Two lines above that, phip is declared. It appears to be the boundary patch of the phi field.

ramhari August 18, 2011 09:26

Thanks@marupio.

But

If I specify total pressure P0 at the inlet, the pressure p can be calculated using

p = P0 / ( 1 + 0.2M^2)^3.5 ( say for air)

what is the neccessity of 'phip' in totalPressure boundary condition. Can u help me : ) ?

marupio August 18, 2011 12:53

They are using the pos() function. I think it only adds it if phip is positive (i.e. outward).


All times are GMT -4. The time now is 21:02.