Update state with source variable "ps_sourceCoeff".
The source in advection diffusion equation for passive scalar is It evaluates spacetime function defined in lua file for the source coefficient variable and convert it to state value which is to be added to the state
Reference: Dominique d’Humières, Irina Ginzburg, (2009), "Viscosity independent numerical errors for Lattice Boltzmann models: From recurrence equations to “magic” collision numbers", Computers & Mathematics with Applications, Volume 58, Issue 5, Pages 823-840
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mus_source_op_type), | intent(in) | :: | fun |
Description of method to apply source terms |
||
| real(kind=rk), | intent(in) | :: | inState(:) |
input pdf vector |
||
| real(kind=rk), | intent(inout) | :: | outState(:) |
output pdf vector |
||
| integer, | intent(in) | :: | neigh(:) |
connectivity Array corresponding to state vector |
||
| real(kind=rk), | intent(in) | :: | auxField(:) |
auxField array |
||
| integer, | intent(in) | :: | nPdfSize |
number of elements in state Array |
||
| integer, | intent(in) | :: | iLevel |
current level |
||
| type(tem_varSys_type), | intent(in) | :: | varSys |
variable system |
||
| type(tem_time_type), | intent(in) | :: | time |
Point in time at which to evaluate the variable. |
||
| type(mus_convertFac_type), | intent(in) | :: | phyConvFac |
Physics conversion factor for current level |
||
| type(mus_derVarPos_type), | intent(in) | :: | derVarPos(:) |
position of derived quantities in varsys |