src/base/prehyd.f90 File Reference

| programmer's documentation

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions/Subroutines
prehyd.f90 File Reference

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 (prhyd, grdphd)

## Detailed Description

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 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).

## Function/Subroutine Documentation

subroutine prehyd | ( | double precision, dimension(ncelet) | prhyd,
|  | double precision, dimension(ncelet,ndim) | grdphd
| ) |  |

Parameters

  [in,out] | prhyd | hydrostatic pressure predicted with the a priori momentum equation reduced
  [out] | grdphd | the a priori hydrostatic pressure gradient