![]() |
Code_Saturne
CFD tool
|
This function solves an advection diffusion equation with source terms for one time step for the vector variable .
More...
Functions/Subroutines | |
subroutine | coditv |
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 | ( | ) |
[in] | nvar | total number of variables |
[in] | nscal | total number of scalars |
[in] | idtvar | indicator of the temporal scheme |
[in] | ivar | index of the current variable |
[in] | iconvp | indicator
|
[in] | idiffp | indicator
|
[in] | ireslp | indicator
|
[in] | ndircp | indicator (0 if the diagonal is stepped aside) |
[in] | nitmap | maximum number of iteration to solve the iterative process |
[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] | imgrp | indicator
|
[in] | ipp* | index of the variable for post-processing |
[in] | iwarnp | verbosity |
[in] | blencp | fraction of upwinding |
[in] | epsilp | precision pour resol iter |
[in] | epsrgp | relative precision for the gradient reconstruction |
[in] | climgp | clipping coeffecient for the computation of the gradient |
[in] | extrap | coefficient for extrapolation of the gradient |
[in] | relaxp | coefficient of relaxation |
[in] | thetap | weightening coefficient for the theta-schema,
|
[in] | pvara | variable at the previous time step ![]() |
[in] | pvark | variable at the previous sub-iteration ![]() |
[in] | coefap | boundary condition array for the variable (Explicit part) |
[in] | coefbp | boundary condition array for the variable (Impplicit part) |
[in] | cofafp | boundary condition array for the diffusion of the variable (Explicit part) |
[in] | cofbfp | 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] | fimp | ![]() |
[in] | smbrp | Right hand side ![]() |
[in,out] | pvar | current variable |
[out] | eswork | prediction-stage error estimator (if iescap > 0) |