27 #ifndef OPM_ECL_HEATCR_LAW_HPP
28 #define OPM_ECL_HEATCR_LAW_HPP
43 template <
class ScalarT,
45 class ParamsT = EclHeatcrLawParams<ScalarT> >
49 typedef ParamsT Params;
50 typedef typename Params::Scalar Scalar;
55 template <
class Flu
idState,
class Evaluation =
typename Flu
idState::Scalar>
58 const Evaluation& T = fluidState.temperature(0);
59 const Evaluation& deltaT = T - params.referenceTemperature();
61 Scalar C0 = params.referenceRockHeatCapacity();
62 Scalar C1 = params.dRockHeatCapacity_dT();
64 return deltaT*(C0 + deltaT*C1 / 2.0);
The default implementation of a parameter object for the ECL thermal law.
A number of commonly used algebraic functions for the localized OPM automatic differentiation (AD) fr...
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