24#ifndef DUMUX_MATERIAL_THERMALCONDUCTIVITY_SIMPLE_FLUID_LUMPING_HH
25#define DUMUX_MATERIAL_THERMALCONDUCTIVITY_SIMPLE_FLUID_LUMPING_HH
37template<
class Scalar,
int numEnergyEquationsFlu
id>
45 template<
class VolumeVariables,
class SpatialParams,
class Element,
class FVGeometry>
46 [[deprecated(
"Signature deprecated. Use signature with volume variables only!")]]
48 const SpatialParams& spatialParams,
49 const Element& element,
50 const FVGeometry& fvGeometry,
51 const typename FVGeometry::SubControlVolume& scv)
63 template<
class VolumeVariables>
66 using FluidSystem =
typename VolumeVariables::FluidSystem;
67 const Scalar sw = volVars.saturation(FluidSystem::phase0Idx);
68 const Scalar lambdaW = volVars.fluidThermalConductivity(FluidSystem::phase0Idx);
69 const Scalar lambdaN = volVars.fluidThermalConductivity(FluidSystem::phase1Idx);
70 const Scalar lambdaSolid = volVars.solidThermalConductivity();
71 const Scalar
porosity = volVars.porosity();
91 const Scalar lambdaSolid,
93 const Scalar rhoSolid = 0.0 )
95 assert(numEnergyEquationsFluid != 2) ;
99 const Scalar satW = max<Scalar>(0.0, sw);
101 const Scalar kfeff =
porosity *((1.-satW)*lambdaN + satW*lambdaW) ;
105 if (numEnergyEquationsFluid == 1){
109 const Scalar kseff = (1.0-
porosity) * lambdaSolid ;
110 keff = kfeff + kseff;
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
std::string porosity() noexcept
I/O name of porosity.
Definition: name.hh:139
Relation for the saturation-dependent effective thermal conductivity.
Definition: thermalconductivitysimplefluidlumping.hh:39
static Scalar effectiveThermalConductivity(const VolumeVariables &volVars, const SpatialParams &spatialParams, const Element &element, const FVGeometry &fvGeometry, const typename FVGeometry::SubControlVolume &scv)
effective thermal conductivity
Definition: thermalconductivitysimplefluidlumping.hh:47
static Scalar effectiveThermalConductivity(const Scalar sw, const Scalar lambdaW, const Scalar lambdaN, const Scalar lambdaSolid, const Scalar porosity, const Scalar rhoSolid=0.0)
Returns the effective thermal conductivity .
Definition: thermalconductivitysimplefluidlumping.hh:88
static Scalar effectiveThermalConductivity(const VolumeVariables &volVars)
Effective thermal conductivity .
Definition: thermalconductivitysimplefluidlumping.hh:64