Contains the quantities which are constant within a finite volume for the tracer model.
#include <dumux/porousmediumflow/tracer/volumevariables.hh>
Public Types | |
using | FluidSystem = typename Traits::FluidSystem |
Export the fluid system type. More... | |
using | SolidState = typename Traits::SolidState |
Export the solid state type. More... | |
using | Indices = typename Traits::ModelTraits::Indices |
Export the indices. More... | |
using | PrimaryVariables = typename Traits::PrimaryVariables |
Export the type used for the primary variables. More... | |
Public Member Functions | |
template<class ElemSol , class Problem , class Element , class Scv > | |
void | update (const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv) |
Updates all quantities for a given control volume. More... | |
Scalar | density (int phaseIdx=0) const |
Returns the density \(\mathrm{[kg/m^3]}\) the of the fluid phase. More... | |
Scalar | averageMolarMass (int phaseIdx=0) const |
Returns the average molar mass \(\mathrm{[kg/mol]}\) of the fluid phase. More... | |
const SolidState & | solidState () const |
Returns the phase state for the control volume. More... | |
Scalar | saturation (int phaseIdx=0) const |
Returns the saturation. More... | |
Scalar | mobility (int phaseIdx=0) const |
Returns the mobility. More... | |
Scalar | molarDensity (int phaseIdx=0) const |
Returns the molar density \(\mathrm{[mol/m^3]}\) the of the fluid phase. More... | |
Scalar | moleFraction (int phaseIdx, int compIdx) const |
Returns the mole fraction \(\mathrm{[mol/mol]}\) of a component in the phase. More... | |
Scalar | massFraction (int phaseIdx, int compIdx) const |
Returns the mass fraction \(\mathrm{[kg/kg]}\) of a component in the phase. More... | |
Scalar | molarity (int phaseIdx, int compIdx) const |
Returns the concentration \(\mathrm{[mol/m^3]}\) of a component in the phase. More... | |
Scalar | diffusionCoefficient (int phaseIdx, int compIIdx, int compJIdx) const |
Returns the binary diffusion coefficients for a phase in \([m^2/s]\). More... | |
Scalar | effectiveDiffusionCoefficient (int phaseIdx, int compIIdx, int compJIdx) const |
Returns the effective diffusion coefficients for a phase in \([m^2/s]\). More... | |
Scalar | porosity () const |
Return the average porosity \(\mathrm{[-]}\) within the control volume. More... | |
const PrimaryVariables & | priVars () const |
Returns the vector of primary variables. More... | |
Scalar | priVar (const int pvIdx) const |
Returns a component of primary variable vector. More... | |
Scalar | extrusionFactor () const |
Returns how much the sub-control volume is extruded. More... | |
Static Public Member Functions | |
static constexpr int | numFluidPhases () |
Return number of phases considered by the model. More... | |
static constexpr int | numFluidComponents () |
Return number of components considered by the model. More... | |
Protected Attributes | |
SolidState | solidState_ |
Scalar | fluidDensity_ |
Scalar | fluidMolarMass_ |
Scalar | fluidSaturation_ = 1.0 |
std::array< Scalar, numFluidComps > | diffCoeff_ |
std::array< Scalar, numFluidComps > | effectiveDiffCoeff_ |
std::array< Scalar, numFluidComps > | moleOrMassFraction_ |
using Dumux::TracerVolumeVariables< Traits >::FluidSystem = typename Traits::FluidSystem |
using Dumux::TracerVolumeVariables< Traits >::Indices = typename Traits::ModelTraits::Indices |
|
inherited |
using Dumux::TracerVolumeVariables< Traits >::SolidState = typename Traits::SolidState |
|
inline |
phaseIdx | The phase index |
|
inline |
We always forward to the fluid state with the phaseIdx property (see class description).
phaseIdx | The phase index |
|
inline |
|
inline |
|
inlineinherited |
This means the factor by which a lower-dimensional (1D or 2D) entity needs to be expanded to get a full dimensional cell. The default is 1.0 which means that 1D problems are actually thought as pipes with a cross section of 1 m^2 and 2D problems are assumed to extend 1 m to the back.
|
inline |
phaseIdx | The phase index |
compIdx | The index of the component |
|
inline |
This method is here for compatibility reasons with other models. The mobility is always 1 for one-phasic models where the velocity field is given
phaseIdx | The phase index |
|
inline |
phaseIdx | The phase index |
|
inline |
phaseIdx | The phase index |
compIdx | The index of the component |
|
inline |
phaseIdx | The phase index |
compIdx | The index of the component |
|
inlinestaticconstexprinherited |
|
inlinestaticconstexprinherited |
|
inline |
|
inlineinherited |
pvIdx | The index of the primary variable of interest |
|
inlineinherited |
|
inline |
This method is here for compatibility reasons with other models. The saturation is always 1.0 in a one-phasic context, if two-phases or richards are considered, the spatialParams serve as way to pass the saturation from the main-file to the volVars and then to the localresidual for the tracer model.
phaseIdx | The phase index |
|
inline |
|
inline |
elemSol | A vector containing all primary variables connected to the element |
problem | The object specifying the problem which ought to be simulated |
element | An element which contains part of the control volume |
scv | The sub-control volume |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |