27 #ifndef OPM_ECL_THC_LAW_HPP
28 #define OPM_ECL_THC_LAW_HPP
44 template <
class ScalarT,
45 class ParamsT = EclThcLawParams<ScalarT> >
49 typedef ParamsT Params;
50 typedef typename Params::Scalar Scalar;
56 template <
class Flu
idState,
class Evaluation =
typename Flu
idState::Scalar>
63 Scalar poro = params.porosity();
71 Scalar numPhases = 3.0;
73 poro*(params.thcoil() + params.thcgas() + params.thcwater()) / numPhases
74 + (1.0 - poro)*params.thcrock();
The default implementation of a parameter object for the thermal conduction law based on the THC* key...
A number of commonly used algebraic functions for the localized OPM automatic differentiation (AD) fr...
Implements the total thermal conductivity and rock enthalpy relations used by ECL.
Definition: EclThcLaw.hpp:47
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:57