My Project
EclHeatcrLawParams.hpp
Go to the documentation of this file.
1 // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 // vi: set et ts=4 sw=4 sts=4:
3 /*
4  This file is part of the Open Porous Media project (OPM).
5 
6  OPM is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 2 of the License, or
9  (at your option) any later version.
10 
11  OPM is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OPM. If not, see <http://www.gnu.org/licenses/>.
18 
19  Consult the COPYING file in the top-level source directory of this
20  module for the precise wording of the license and the list of
21  copyright holders.
22 */
27 #ifndef OPM_ECL_HEATCR_LAW_PARAMS_HPP
28 #define OPM_ECL_HEATCR_LAW_PARAMS_HPP
29 
31 
32 namespace Opm {
33 
38 template <class ScalarT>
40 {
41 public:
42  using Scalar = ScalarT;
43 
44  EclHeatcrLawParams(const EclHeatcrLawParams&) = default;
45 
47  { }
48 
55  static void setReferenceTemperature(Scalar value)
56  { referenceTemperature_ = value; }
57 
61  static Scalar referenceTemperature()
62  { return referenceTemperature_; }
63 
67  void setReferenceRockHeatCapacity(Scalar value)
68  { referenceRockHeatCapacity_ = value; }
69 
74  { EnsureFinalized::check(); return referenceRockHeatCapacity_; }
75 
79  void setDRockHeatCapacity_dT(Scalar value)
80  { dRockHeatCapacity_dT_ = value; }
81 
85  Scalar dRockHeatCapacity_dT() const
86  { EnsureFinalized::check(); return dRockHeatCapacity_dT_; }
87 
88 private:
89  static Scalar referenceTemperature_;
90 
91  Scalar referenceRockHeatCapacity_;
92  Scalar dRockHeatCapacity_dT_;
93 };
94 
95 template <class ScalarT>
96 ScalarT EclHeatcrLawParams<ScalarT>::referenceTemperature_ = 273.15 + 15.56; // [K]
97 
98 } // namespace Opm
99 
100 #endif
Default implementation for asserting finalization of parameter objects.
The default implementation of a parameter object for the ECL thermal law.
Definition: EclHeatcrLawParams.hpp:40
void setDRockHeatCapacity_dT(Scalar value)
Set the derivative of the specific heat capacity of rock w.r.t.
Definition: EclHeatcrLawParams.hpp:79
Scalar dRockHeatCapacity_dT() const
The derivative of the specific heat capacity of rock w.r.t.
Definition: EclHeatcrLawParams.hpp:85
static void setReferenceTemperature(Scalar value)
Set the reference temperature for the thermal law.
Definition: EclHeatcrLawParams.hpp:55
static Scalar referenceTemperature()
Return the reference temperature for the thermal law.
Definition: EclHeatcrLawParams.hpp:61
Scalar referenceRockHeatCapacity() const
The specific heat capacity of rock.
Definition: EclHeatcrLawParams.hpp:73
void setReferenceRockHeatCapacity(Scalar value)
Set the specific heat capacity of rock.
Definition: EclHeatcrLawParams.hpp:67
Default implementation for asserting finalization of parameter objects.
Definition: EnsureFinalized.hpp:47