27 #ifndef OPM_ECL_THC_LAW_HPP
28 #define OPM_ECL_THC_LAW_HPP
43 template <
class ScalarT,
44 class ParamsT = EclThcLawParams<ScalarT>>
48 using Params = ParamsT;
49 using Scalar =
typename Params::Scalar;
55 template <
class Flu
idState,
class Evaluation =
typename Flu
idState::Scalar>
62 Scalar poro = params.porosity();
70 constexpr
const Scalar numPhases = 3.0;
72 poro*(params.thcoil() + params.thcgas() + params.thcwater()) / numPhases
73 + (1.0 - poro)*params.thcrock();
The default implementation of a parameter object for the thermal conduction law based on the THC* key...
Implements the total thermal conductivity and rock enthalpy relations used by ECL.
Definition: EclThcLaw.hpp:46
static Evaluation thermalConductivity(const Params ¶ms, const FluidState &)
Given a fluid state, return the total thermal conductivity [W/m^2 / (K/m)] of the porous medium.
Definition: EclThcLaw.hpp:56