Re: Setting non standard boundary conditions in simple calculation
Posted: Thu Feb 04, 2010 8:11 pm
Indeed!
The "total pressure" is defined in Code_Saturne as being: Ptot = Pred + rho0*g*(z-z0) + P0, where Pred is the so-called reduced pressure (i.e. the resolved pressure). If you want the dynamic pressure, you'll need to add 0.5*rho*U**2. You can do that by adding the usvpst.f90 subroutine in which you can defined your own variables, on a given mesh (ipart = -1 for the volumic mesh).
David
ps: In the formula for the total pressure, I've intentionnally forgotten the reference of the reduced pressure Pred0.
The "total pressure" is defined in Code_Saturne as being: Ptot = Pred + rho0*g*(z-z0) + P0, where Pred is the so-called reduced pressure (i.e. the resolved pressure). If you want the dynamic pressure, you'll need to add 0.5*rho*U**2. You can do that by adding the usvpst.f90 subroutine in which you can defined your own variables, on a given mesh (ipart = -1 for the volumic mesh).
David
ps: In the formula for the total pressure, I've intentionnally forgotten the reference of the reduced pressure Pred0.