|
My Project
programmer's documentation
|
Compute an "a priori" hydrostatic pressure and its gradient associated before the Navier Stokes equations (prediction and correction steps navstv.f90). 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 navstv.f90).
This function computes a hydrostatic pressure 
![\[
\rho^n \dfrac{(\vect{u}^{hydro} - \vect{u}^n)}{\Delta t} =
\rho^n \vect{g}^n - \grad P_{hydro}
\]](form_443.png)
and using the mass equation as following:
![\[
\rho^n \divs \left( \delta \vect{u}_{hydro} \right) = 0
\]](form_444.png)
with: 
finally, we resolve the simplified momentum equation below:
![\[
\divs \left( K \grad P_{hydro} \right) = \divs \left(\vect{g}\right)
\]](form_446.png)
with the diffusion coefficient ( 
![\[
K \equiv \dfrac{1}{\rho^n}
\]](form_448.png)
with a Neumann boundary condition on the hydrostatic pressure:
![\[
D_\fib \left( K, \, P_{hydro} \right) =
\vect{g} \cdot \vect{n}_\ib
\]](form_449.png)
(see the theory guide for more details on the boundary condition formulation).
| subroutine prehyd | ( | double precision, dimension(ndim, ncelet) | grdphd, |
| integer | iterns | ||
| ) |
| [out] | grdphd | the a priori hydrostatic pressure gradient |
| [in] | iterns | Navier-Stokes iteration number |