27 #ifndef OPM_ECL_SOLID_ENERGY_LAW_MULTIPLEXER_HPP
28 #define OPM_ECL_SOLID_ENERGY_LAW_MULTIPLEXER_HPP
45 template <
class ScalarT,
47 class ParamsT = EclSolidEnergyLawMultiplexerParams<ScalarT>>
50 enum { numPhases = FluidSystem::numPhases };
57 typedef ParamsT Params;
58 typedef typename Params::Scalar Scalar;
63 template <
class Flu
idState,
class Evaluation =
typename Flu
idState::Scalar>
66 switch (params.solidEnergyApproach()) {
67 case Params::heatcrApproach:
71 case Params::specrockApproach:
75 case Params::nullApproach:
80 throw std::logic_error(
"Invalid solid energy approach: "+std::to_string(
int(params.solidEnergyApproach())));
Implements the volumetric interior energy relations of rock used by ECL.
The default implementation of a parameter object for the ECL thermal law.
Implements the volumetric interior energy relations of rock used by ECL.
A number of commonly used algebraic functions for the localized OPM automatic differentiation (AD) fr...
Implements a solid energy storage law which just returns 0.
Implements the volumetric interior energy relations of rock used by ECL.
Definition: EclHeatcrLaw.hpp:47
static Evaluation solidInternalEnergy(const Params ¶ms, const FluidState &fluidState)
Given a fluid state, compute the volumetric internal energy of the rock [W/m^3].
Definition: EclHeatcrLaw.hpp:56
Provides the energy storage relation of rock.
Definition: EclSolidEnergyLawMultiplexer.hpp:49
static Evaluation solidInternalEnergy(const Params ¶ms, const FluidState &fluidState)
Given a fluid state, compute the volumetric internal energy of the rock [W/m^3].
Definition: EclSolidEnergyLawMultiplexer.hpp:64
Implements the volumetric interior energy relations of rock used by ECL.
Definition: EclSpecrockLaw.hpp:46
static Evaluation solidInternalEnergy(const Params ¶ms, const FluidState &fluidState)
Given a fluid state, compute the volumetric internal energy of the rock [W/m^3].
Definition: EclSpecrockLaw.hpp:55
Implements a solid energy storage law which just returns 0.
Definition: NullSolidEnergyLaw.hpp:41
static Evaluation solidInternalEnergy(const Params &, const FluidState &)
Given a fluid state, compute the volumetric internal energy of the solid matrix [W/m^3].
Definition: NullSolidEnergyLaw.hpp:53