![]() |
programmer's documentation
|
This function solves an advection diffusion equation with source terms for one time step for the vector variable .
More...
Functions/Subroutines | |
subroutine | coditv (idtvar, ivar, iconvp, idiffp, ndircp, imrgra, nswrsp, nswrgp, imligp, ircflp, ivisep, ischcp, isstpp, iescap, idftnp, iswdyp, iwarnp, blencp, epsilp, epsrsp, epsrgp, climgp, relaxp, thetap, pvara, pvark, coefav, coefbv, cofafv, cofbfv, flumas, flumab, viscfm, viscbm, viscfs, viscbs, secvif, secvib, icvflb, icvfli, fimp, smbrp, pvar, eswork) |
This function solves an advection diffusion equation with source terms for one time step for the vector variable .
The equation reads:
This equation is rewritten as:
where and
It is in fact solved with the following iterative process:
where
Be careful, it is forbidden to modify here!
subroutine coditv | ( | integer | idtvar, |
integer | ivar, | ||
integer | iconvp, | ||
integer | idiffp, | ||
integer | ndircp, | ||
integer | imrgra, | ||
integer | nswrsp, | ||
integer | nswrgp, | ||
integer | imligp, | ||
integer | ircflp, | ||
integer | ivisep, | ||
integer | ischcp, | ||
integer | isstpp, | ||
integer | iescap, | ||
integer | idftnp, | ||
integer | iswdyp, | ||
integer | iwarnp, | ||
double precision | blencp, | ||
double precision | epsilp, | ||
double precision | epsrsp, | ||
double precision | epsrgp, | ||
double precision | climgp, | ||
double precision | relaxp, | ||
double precision | thetap, | ||
double precision, dimension(3,ncelet) | pvara, | ||
double precision, dimension(3,ncelet) | pvark, | ||
double precision, dimension(3,ndimfb) | coefav, | ||
double precision, dimension(3,3,ndimfb) | coefbv, | ||
double precision, dimension(3,ndimfb) | cofafv, | ||
double precision, dimension(3,3,ndimfb) | cofbfv, | ||
double precision, dimension(nfac) | flumas, | ||
double precision, dimension(nfabor) | flumab, | ||
double precision, dimension(*) | viscfm, | ||
double precision, dimension(nfabor) | viscbm, | ||
double precision, dimension(*) | viscfs, | ||
double precision, dimension(nfabor) | viscbs, | ||
double precision, dimension(nfac) | secvif, | ||
double precision, dimension(nfabor) | secvib, | ||
integer | icvflb, | ||
integer, dimension(nfabor) | icvfli, | ||
double precision, dimension(3,3,ncelet) | fimp, | ||
double precision, dimension(3,ncelet) | smbrp, | ||
double precision, dimension(3,ncelet) | pvar, | ||
double precision, dimension(3,ncelet) | eswork | ||
) |
[in] | idtvar | indicator of the temporal scheme |
[in] | ivar | index of the current variable |
[in] | iconvp | indicator
|
[in] | idiffp | indicator
|
[in] | ndircp | indicator (0 if the diagonal is stepped aside) |
[in] | imrgra | indicateur
|
[in] | nswrsp | number of reconstruction sweeps for the Right Hand Side |
[in] | nswrgp | number of reconstruction sweeps for the gradients |
[in] | imligp | clipping gradient method
|
[in] | ircflp | indicator
|
[in] | ivisep | indicator to take ![]()
|
[in] | ischcp | indicator
|
[in] | isstpp | indicator
|
[in] | iescap | compute the predictor indicator if 1 |
[in] | idftnp | indicator
|
[in] | iswdyp | indicator
|
[in] | iwarnp | verbosity |
[in] | blencp | fraction of upwinding |
[in] | epsilp | precision pour resol iter |
[in] | epsrsp | relative precision for the iterative process |
[in] | epsrgp | relative precision for the gradient reconstruction |
[in] | climgp | clipping coefficient for the computation of the gradient |
[in] | relaxp | coefficient of relaxation |
[in] | thetap | weighting coefficient for the theta-schema,
|
[in] | pvara | variable at the previous time step ![]() |
[in] | pvark | variable at the previous sub-iteration ![]() |
[in] | coefav | boundary condition array for the variable (explicit part) |
[in] | coefbv | boundary condition array for the variable (implicit part) |
[in] | cofafv | boundary condition array for the diffusion of the variable (Explicit part) |
[in] | cofbfv | boundary condition array for the diffusion of the variable (Implicit part) |
[in] | flumas | mass flux at interior faces |
[in] | flumab | mass flux at boundary faces |
[in] | viscfm | ![]() |
[in] | viscbm | ![]() |
[in] | viscfs | ![]() |
[in] | viscbs | ![]() |
[in] | secvif | secondary viscosity at interior faces |
[in] | secvib | secondary viscosity at boundary faces |
[in] | icvflb | global indicator of boundary convection flux
|
[in] | icvfli | boundary face indicator array of convection flux
|
[in] | fimp | ![]() |
[in] | smbrp | Right hand side ![]() |
[in,out] | pvar | current variable |
[out] | eswork | prediction-stage error estimator (if iescap > 0) |