opm-common
Toggle main menu visibility
Loading...
Searching...
No Matches
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
30
#include <
opm/material/common/EnsureFinalized.hpp
>
31
32
namespace
Opm
{
33
38
template
<
class
ScalarT>
39
class
EclHeatcrLawParams :
public
EnsureFinalized
40
{
41
public
:
42
using
Scalar = ScalarT;
43
44
EclHeatcrLawParams(
const
EclHeatcrLawParams&) =
default
;
45
46
EclHeatcrLawParams()
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
73
Scalar
referenceRockHeatCapacity
()
const
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
EnsureFinalized.hpp
Default implementation for asserting finalization of parameter objects.
Opm::EclHeatcrLawParams::setDRockHeatCapacity_dT
void setDRockHeatCapacity_dT(Scalar value)
Set the derivative of the specific heat capacity of rock w.r.t.
Definition
EclHeatcrLawParams.hpp:79
Opm::EclHeatcrLawParams::dRockHeatCapacity_dT
Scalar dRockHeatCapacity_dT() const
The derivative of the specific heat capacity of rock w.r.t.
Definition
EclHeatcrLawParams.hpp:85
Opm::EclHeatcrLawParams::setReferenceTemperature
static void setReferenceTemperature(Scalar value)
Set the reference temperature for the thermal law.
Definition
EclHeatcrLawParams.hpp:55
Opm::EclHeatcrLawParams::referenceTemperature
static Scalar referenceTemperature()
Return the reference temperature for the thermal law.
Definition
EclHeatcrLawParams.hpp:61
Opm::EclHeatcrLawParams::referenceRockHeatCapacity
Scalar referenceRockHeatCapacity() const
The specific heat capacity of rock.
Definition
EclHeatcrLawParams.hpp:73
Opm::EclHeatcrLawParams::setReferenceRockHeatCapacity
void setReferenceRockHeatCapacity(Scalar value)
Set the specific heat capacity of rock.
Definition
EclHeatcrLawParams.hpp:67
Opm::EnsureFinalized::EnsureFinalized
OPM_HOST_DEVICE EnsureFinalized()
The default constructor.
Definition
EnsureFinalized.hpp:58
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
opm
material
thermal
EclHeatcrLawParams.hpp
Generated by
1.17.0