My Project
Loading...
Searching...
No Matches
EclThcLawParams.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_THC_LAW_PARAMS_HPP
28#define OPM_ECL_THC_LAW_PARAMS_HPP
29
31
32namespace Opm {
33
38template <class ScalarT>
40{
41public:
42 using Scalar = ScalarT;
43
44 EclThcLawParams(const EclThcLawParams&) = default;
45
47 { }
48
52 void setPorosity(Scalar value)
53 { porosity_ = value; }
54
58 Scalar porosity() const
59 { EnsureFinalized::check(); return porosity_; }
60
64 void setThcrock(Scalar value)
65 { thcrock_ = value; }
66
70 Scalar thcrock() const
71 { EnsureFinalized::check(); return thcrock_; }
72
76 void setThcoil(Scalar value)
77 { thcoil_ = value; }
78
82 Scalar thcoil() const
83 { EnsureFinalized::check(); return thcoil_; }
84
88 void setThcgas(Scalar value)
89 { thcgas_ = value; }
90
94 Scalar thcgas() const
95 { EnsureFinalized::check(); return thcgas_; }
96
100 void setThcwater(Scalar value)
101 { thcwater_ = value; }
102
106 Scalar thcwater() const
107 { EnsureFinalized::check(); return thcwater_; }
108
109private:
110 Scalar porosity_;
111 Scalar thcrock_;
112 Scalar thcoil_;
113 Scalar thcgas_;
114 Scalar thcwater_;
115};
116
117} // namespace Opm
118
119#endif
Default implementation for asserting finalization of parameter objects.
The default implementation of a parameter object for the thermal conduction law based on the THC* key...
Definition EclThcLawParams.hpp:40
void setThcoil(Scalar value)
Set thermal conductivity of pure oil [W/(m*K)].
Definition EclThcLawParams.hpp:76
Scalar porosity() const
Return the porosity.
Definition EclThcLawParams.hpp:58
void setThcgas(Scalar value)
Set thermal conductivity of pure gas [W/(m*K)].
Definition EclThcLawParams.hpp:88
Scalar thcrock() const
Return thermal conductivity of pure rock [W/(m*K)].
Definition EclThcLawParams.hpp:70
void setPorosity(Scalar value)
Set the porosity.
Definition EclThcLawParams.hpp:52
Scalar thcwater() const
Return thermal conductivity of pure water [W/(m*K)].
Definition EclThcLawParams.hpp:106
Scalar thcoil() const
Return thermal conductivity of pure oil [W/(m*K)].
Definition EclThcLawParams.hpp:82
void setThcwater(Scalar value)
Set thermal conductivity of pure water [W/(m*K)].
Definition EclThcLawParams.hpp:100
Scalar thcgas() const
Return thermal conductivity of pure gas [W/(m*K)].
Definition EclThcLawParams.hpp:94
void setThcrock(Scalar value)
Set thermal conductivity of pure rock [W/(m*K)].
Definition EclThcLawParams.hpp:64
Default implementation for asserting finalization of parameter objects.
Definition EnsureFinalized.hpp:47
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30