![]() |
Code_Saturne
CFD tool
|
This subroutine perform the pressure correction step of the Navier Stokes equations for incompressible or slightly compressible flows for the coupled velocity components solver. More...
Functions/Subroutines | |
subroutine | resopv (nvar, nscal, ncepdp, ncesmp, icepdc, icetsm, itypsm, isostd, idtsca, dt, rtp, rtpa, vel, vela, propce, propfa, propfb, coefa, coefb, coefav, coefbv, coefap, ckupdc, smacel, frcxt, dfrcxt, tpucou, trav, viscf, viscb, viscfi, viscbi, drtp, tslagr, frchy, dfrchy, trava) |
This subroutine perform the pressure correction step of the Navier Stokes equations for incompressible or slightly compressible flows for the coupled velocity components solver.
This function solves the following Poisson equation on the pressure:
The mass flux is then updated as follows:
Remarks:
subroutine resopv | ( | integer | nvar, |
integer | nscal, | ||
integer | ncepdp, | ||
integer | ncesmp, | ||
integer, dimension(ncepdp) | icepdc, | ||
integer, dimension(ncesmp) | icetsm, | ||
integer, dimension(ncesmp,nvar) | itypsm, | ||
integer, dimension(nfabor+1) | isostd, | ||
integer | idtsca, | ||
double precision, dimension(ncelet) | dt, | ||
double precision, dimension(ncelet,*) | rtp, | ||
double precision, dimension(ncelet,*) | rtpa, | ||
double precision, dimension (3 ,ncelet) | vel, | ||
double precision, dimension (3 ,ncelet) | vela, | ||
double precision, dimension(ncelet,*) | propce, | ||
double precision, dimension(nfac,*) | propfa, | ||
double precision, dimension(ndimfb,*) | propfb, | ||
double precision, dimension(ndimfb,*) | coefa, | ||
double precision, dimension(ndimfb,*) | coefb, | ||
double precision, dimension(3 ,ndimfb) | coefav, | ||
double precision, dimension(3,3,ndimfb) | coefbv, | ||
double precision, dimension(nfabor) | coefap, | ||
double precision, dimension(ncepdp,6) | ckupdc, | ||
double precision, dimension(ncesmp,nvar) | smacel, | ||
double precision, dimension(ncelet,3) | frcxt, | ||
double precision, dimension(ncelet,3) | dfrcxt, | ||
double precision, dimension(ndim,ncelet) | tpucou, | ||
double precision, dimension(3,ncelet) | trav, | ||
double precision, dimension(nfac) | viscf, | ||
double precision, dimension(nfabor) | viscb, | ||
double precision, dimension(nfac) | viscfi, | ||
double precision, dimension(nfabor) | viscbi, | ||
double precision, dimension(ncelet) | drtp, | ||
double precision, dimension(ncelet,*) | tslagr, | ||
double precision, dimension(ncelet,ndim) | frchy, | ||
double precision, dimension(ncelet,ndim) | dfrchy, | ||
double precision, dimension(ndim,ncelet) | trava | ||
) |
[in] | nvar | total number of variables |
[in] | nscal | total number of scalars |
[in] | ncesmp | number of cells with mass source term |
[in] | icetsm | index of cells with mass source terms |
[in] | dt | time step (per cell) |
[in] | rtp,rtpa | calculated variables at cell centers (at current and previous time steps) |
[in] | propce | physical properties at cell centers |
[in,out] | propfa | physical properties at interior face centers |
[in,out] | propfb | physical properties at boundary face centers |
[in] | smacel | variable value associated to the mass source term (for ivar=ipr, smacel is the mass flux ![]() |
[in] | nvar | total number of variables |
[in] | nscal | total number of scalars |
[in] | ncepdp | number of cells with head loss |
[in] | ncesmp | number of cells with mass source term |
[in] | icepdc | index of cells with head loss |
[in] | icetsm | index of cells with mass source term |
[in] | itypsm | type of mass source term for the variables |
[in] | isostd | indicator of standard outlet and index of the reference outlet face |
[in] | idtsca | indicator of non scalar time step |
[in] | dt | time step (per cell) |
[in,out] | rtp,rtpa | calculated variables at cell centers (at current and previous time steps) |
[in] | propce | physical properties at cell centers |
[in,out] | propfa | physical properties at interior face centers |
[in,out] | propfb | physical properties at boundary face centers |
[in] | coefa,coefb | boundary conditions |
[in] | ckupdc | work array for the head loss |
[in] | smacel | values of variables associated to the mass source (for the pressure, smacel is the mass flux) |
[in] | frcxt | external forces making hydrostatic pressure |
[in] | dfrcxt | variation of the external forces |
[in] | making | the hydrostatic pressure |
[in] | tpucou | non scalar time step in case of velocity pressure coupling |
[in] | trav | right hand side for the normalizing the residual |
[in] | viscf | visc*surface/dist aux faces internes |
[in] | viscb | visc*surface/dist aux faces de bord |
[in] | viscfi | idem viscf pour increments |
[in] | viscbi | idem viscb pour increments |
[in] | drtp | tableau de travail pour increment |
[in] | tslagr | coupling term for teh Lagrangian module |
[in] | frchy | tableau de travail |
[in] | dfrchy | tableau de travail |
[in] | trava | tableau de travail pour couplage |