25#ifndef DUMUX_1P_VOLUME_VARIABLES_HH
26#define DUMUX_1P_VOLUME_VARIABLES_HH
51 using Scalar =
typename Traits::PrimaryVariables::value_type;
52 using PermeabilityType =
typename Traits::PermeabilityType;
60 using Indices =
typename Traits::ModelTraits::Indices;
75 template<
class ElemSol,
class Problem,
class Element,
class Scv>
77 const Problem& problem,
78 const Element& element,
88 EnergyVolVars::updateSolidEnergyParams(elemSol, problem, element, scv,
solidState_);
89 permeability_ = problem.spatialParams().permeability(element, scv, elemSol);
90 EnergyVolVars::updateEffectiveThermalConductivity();
104 template<
class ElemSol,
class Problem,
class Element,
class Scv>
106 const Problem& problem,
107 const Element& element,
115 const auto&
priVars = elemSol[scv.localDofIndex()];
123 typename FluidSystem::ParameterCache paramCache;
133 value = EnergyVolVars::enthalpy(
fluidState, paramCache, 0);
Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility...
Update the solid volume fractions (inert and reacitve) and set them in the solidstate.
void updateSolidVolumeFractions(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv, SolidState &solidState, const int solidVolFracOffset)
update the solid volume fractions (inert and reacitve) and set them in the solidstate
Definition: updatesolidvolumefractions.hh:36
std::string viscosity(int phaseIdx) noexcept
I/O name of viscosity for multiphase systems.
Definition: name.hh:74
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:65
Contains the quantities which are constant within a finite volume in the one-phase model.
Definition: porousmediumflow/1p/volumevariables.hh:46
typename Traits::FluidSystem FluidSystem
Export the underlying fluid system.
Definition: porousmediumflow/1p/volumevariables.hh:56
typename Traits::SolidSystem SolidSystem
Export type of solid system.
Definition: porousmediumflow/1p/volumevariables.hh:64
typename Traits::FluidState FluidState
Export the fluid state type.
Definition: porousmediumflow/1p/volumevariables.hh:58
typename Traits::SolidState SolidState
Export type of solid state.
Definition: porousmediumflow/1p/volumevariables.hh:62
Scalar density(int phaseIdx=0) const
Returns the mass density of a given phase within the control volume.
Definition: porousmediumflow/1p/volumevariables.hh:170
PermeabilityType permeability_
Definition: porousmediumflow/1p/volumevariables.hh:213
void update(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv)
Updates all quantities for a given control volume.
Definition: porousmediumflow/1p/volumevariables.hh:76
Scalar pressure(int phaseIdx=0) const
Returns the effective pressure of a given phase within the control volume.
Definition: porousmediumflow/1p/volumevariables.hh:157
void completeFluidState(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv, FluidState &fluidState, SolidState &solidState)
Sets complete fluid state.
Definition: porousmediumflow/1p/volumevariables.hh:105
const SolidState & solidState() const
Returns the phase state for the control volume.
Definition: porousmediumflow/1p/volumevariables.hh:150
Scalar saturation(int phaseIdx=0) const
Returns the saturation.
Definition: porousmediumflow/1p/volumevariables.hh:163
Scalar porosity() const
Returns the average porosity within the control volume.
Definition: porousmediumflow/1p/volumevariables.hh:195
Scalar temperature() const
Returns the temperature inside the sub-control volume.
Definition: porousmediumflow/1p/volumevariables.hh:144
FluidState fluidState_
Definition: porousmediumflow/1p/volumevariables.hh:211
const PermeabilityType & permeability() const
Returns the permeability within the control volume in .
Definition: porousmediumflow/1p/volumevariables.hh:201
const FluidState & fluidState() const
Returns the fluid state of the control volume.
Definition: porousmediumflow/1p/volumevariables.hh:207
typename Traits::ModelTraits::Indices Indices
Export the indices.
Definition: porousmediumflow/1p/volumevariables.hh:60
SolidState solidState_
Definition: porousmediumflow/1p/volumevariables.hh:212
Scalar viscosity(int phaseIdx=0) const
Returns the dynamic viscosity of the fluid within the control volume.
Definition: porousmediumflow/1p/volumevariables.hh:177
Scalar mobility(int phaseIdx=0) const
Returns the mobility .
Definition: porousmediumflow/1p/volumevariables.hh:189
Definition: porousmediumflow/nonisothermal/volumevariables.hh:75
The isothermal base class.
Definition: porousmediumflow/volumevariables.hh:40
static constexpr int numFluidComponents()
Return number of components considered by the model.
Definition: porousmediumflow/volumevariables.hh:52
const PrimaryVariables & priVars() const
Returns the vector of primary variables.
Definition: porousmediumflow/volumevariables.hh:76
void update(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv)
Updates all quantities for a given control volume.
Definition: porousmediumflow/volumevariables.hh:64
Base class for the model specific class which provides access to all volume averaged quantities.
Base class for the model specific class which provides access to all volume averaged quantities.