Compute an "a priori" hydrostatic pressure and its gradient associated before the Navier Stokes equations (prediction and correction steps cs_solve_navier_stokes.c). More...
Functions/Subroutines | |
| subroutine | prehyd (grdphd, iterns) |
Compute an "a priori" hydrostatic pressure and its gradient associated before the Navier Stokes equations (prediction and correction steps cs_solve_navier_stokes.c).
This function computes a hydrostatic pressure
solving an a priori simplified momentum equation:
and using the mass equation as following:
with: ![]()
finally, we resolve the simplified momentum equation below:
with the diffusion coefficient (
) defined as:
with a Neumann boundary condition on the hydrostatic pressure:
(see the theory guide for more details on the boundary condition formulation).
| subroutine prehyd | ( | real(c_double), dimension(ndim, ncelet) | grdphd, |
| integer(c_int), value | iterns | ||
| ) |
| [out] | grdphd | the a priori hydrostatic pressure gradient |
| [in] | iterns | Navier-Stokes iteration number |