applySrc_forceMSLiquid_1stOrd_WTDF Subroutine

public subroutine applySrc_forceMSLiquid_1stOrd_WTDF(fun, inState, outState, neigh, auxField, nPdfSize, iLevel, varSys, time, phyConvFac, derVarPos)

Update state with source variable "force" with thermodynamic factor Simuilar to derive routine but it updates the state whereas derive is used for tracking Refer to Appendix in PhD Thesis of K. Masilamani "Coupled Simulation Framework to Simulate Electrodialysis Process for Seawater Desalination"

This subroutine's interface must match the abstract interface definition proc_apply_source in derived/mus_source_type_module.f90 in order to be callable via applySrc function pointer.

Arguments

Type IntentOptional 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


Calls

proc~~applysrc_forcemsliquid_1stord_wtdf~~CallsGraph proc~applysrc_forcemsliquid_1stord_wtdf applySrc_forceMSLiquid_1stOrd_WTDF auxfield_varpos auxfield_varpos proc~applysrc_forcemsliquid_1stord_wtdf->auxfield_varpos cxdirrk cxdirrk proc~applysrc_forcemsliquid_1stord_wtdf->cxdirrk get_valofindex get_valofindex proc~applysrc_forcemsliquid_1stord_wtdf->get_valofindex input_varpos input_varpos proc~applysrc_forcemsliquid_1stord_wtdf->input_varpos interface~mus_calc_thermfactor mus_calc_thermFactor proc~applysrc_forcemsliquid_1stord_wtdf->interface~mus_calc_thermfactor invert_matrix invert_matrix proc~applysrc_forcemsliquid_1stord_wtdf->invert_matrix val val proc~applysrc_forcemsliquid_1stord_wtdf->val proc~mus_calc_thermfactor_single mus_calc_thermFactor_single interface~mus_calc_thermfactor->proc~mus_calc_thermfactor_single