14#ifndef DUMUX_1P_VOLUME_VARIABLES_HH
15#define DUMUX_1P_VOLUME_VARIABLES_HH
40 using Scalar =
typename Traits::PrimaryVariables::value_type;
41 using PermeabilityType =
typename Traits::PermeabilityType;
49 using Indices =
typename Traits::ModelTraits::Indices;
64 template<
class ElemSol,
class Problem,
class Element,
class Scv>
66 const Problem& problem,
67 const Element& element,
77 EnergyVolVars::updateSolidEnergyParams(elemSol, problem, element, scv,
solidState_);
78 permeability_ = problem.spatialParams().permeability(element, scv, elemSol);
79 EnergyVolVars::updateEffectiveThermalConductivity();
93 template<
class ElemSol,
class Problem,
class Element,
class Scv>
95 const Problem& problem,
96 const Element& element,
104 const auto&
priVars = elemSol[scv.localDofIndex()];
112 typename FluidSystem::ParameterCache paramCache;
122 value = EnergyVolVars::enthalpy(
fluidState, paramCache, 0);
Definition: porousmediumflow/nonisothermal/volumevariables.hh:63
Contains the quantities which are constant within a sub-control volume in the one-phase model.
Definition: porousmediumflow/1p/volumevariables.hh:35
typename Traits::FluidSystem FluidSystem
Export the underlying fluid system.
Definition: porousmediumflow/1p/volumevariables.hh:45
typename Traits::SolidSystem SolidSystem
Export type of solid system.
Definition: porousmediumflow/1p/volumevariables.hh:53
typename Traits::FluidState FluidState
Export the fluid state type.
Definition: porousmediumflow/1p/volumevariables.hh:47
typename Traits::SolidState SolidState
Export type of solid state.
Definition: porousmediumflow/1p/volumevariables.hh:51
Scalar density(int phaseIdx=0) const
Returns the mass density of a given phase within the control volume.
Definition: porousmediumflow/1p/volumevariables.hh:159
PermeabilityType permeability_
Definition: porousmediumflow/1p/volumevariables.hh:202
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:65
Scalar pressure(int phaseIdx=0) const
Returns the effective pressure of a given phase within the control volume.
Definition: porousmediumflow/1p/volumevariables.hh:146
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:94
const SolidState & solidState() const
Returns the phase state for the control volume.
Definition: porousmediumflow/1p/volumevariables.hh:139
Scalar saturation(int phaseIdx=0) const
Returns the saturation.
Definition: porousmediumflow/1p/volumevariables.hh:152
Scalar porosity() const
Returns the average porosity within the control volume.
Definition: porousmediumflow/1p/volumevariables.hh:184
Scalar temperature() const
Returns the temperature inside the sub-control volume.
Definition: porousmediumflow/1p/volumevariables.hh:133
FluidState fluidState_
Definition: porousmediumflow/1p/volumevariables.hh:200
const PermeabilityType & permeability() const
Returns the permeability within the control volume in .
Definition: porousmediumflow/1p/volumevariables.hh:190
const FluidState & fluidState() const
Returns the fluid state of the control volume.
Definition: porousmediumflow/1p/volumevariables.hh:196
typename Traits::ModelTraits::Indices Indices
Export the indices.
Definition: porousmediumflow/1p/volumevariables.hh:49
SolidState solidState_
Definition: porousmediumflow/1p/volumevariables.hh:201
Scalar viscosity(int phaseIdx=0) const
Returns the dynamic viscosity of the fluid within the control volume.
Definition: porousmediumflow/1p/volumevariables.hh:166
Scalar mobility(int phaseIdx=0) const
Returns the mobility .
Definition: porousmediumflow/1p/volumevariables.hh:178
The isothermal base class.
Definition: porousmediumflow/volumevariables.hh:28
static constexpr int numFluidComponents()
Return number of components considered by the model.
Definition: porousmediumflow/volumevariables.hh:40
const PrimaryVariables & priVars() const
Returns the vector of primary variables.
Definition: porousmediumflow/volumevariables.hh:64
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:52
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:24
Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility...
std::string viscosity(int phaseIdx) noexcept
I/O name of viscosity for multiphase systems.
Definition: name.hh:62
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:53
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.
Update the solid volume fractions (inert and reacitve) and set them in the solidstate.