opm-common
Toggle main menu visibility
Loading...
Searching...
No Matches
EclThermalLawManager.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_THERMAL_LAW_MANAGER_HPP
28
#define OPM_ECL_THERMAL_LAW_MANAGER_HPP
29
30
#if ! HAVE_ECL_INPUT
31
#error "Eclipse input support in opm-common is required to use the ECL thermal law manager!"
32
#endif
33
34
#include "
EclSolidEnergyLawMultiplexer.hpp
"
35
#include "
EclSolidEnergyLawMultiplexerParams.hpp
"
36
37
#include "
EclThermalConductionLawMultiplexer.hpp
"
38
#include "
EclThermalConductionLawMultiplexerParams.hpp
"
39
40
#include <functional>
41
#include <vector>
42
43
namespace
Opm
{
44
45
class
EclipseState
;
46
class
FieldPropsManager
;
47
54
template
<
class
Scalar,
class
Flu
id
System>
55
class
EclThermalLawManager
56
{
57
public
:
58
using
SolidEnergyLaw =
EclSolidEnergyLawMultiplexer<Scalar, FluidSystem>
;
59
using
SolidEnergyLawParams =
typename
SolidEnergyLaw::Params;
60
using
HeatcrLawParams =
typename
SolidEnergyLawParams::HeatcrLawParams;
61
using
SpecrockLawParams =
typename
SolidEnergyLawParams::SpecrockLawParams;
62
63
using
ThermalConductionLaw =
EclThermalConductionLawMultiplexer<Scalar, FluidSystem>
;
64
using
ThermalConductionLawParams =
typename
ThermalConductionLaw::Params;
65
66
void
initParamsForElements(
const
EclipseState
& eclState,
size_t
numElems,
67
const
std::function<std::vector<double>(
const
FieldPropsManager
&,
const
std::string&)>&
68
fieldPropDoubleOnLeafAssigner,
69
const
std::function<std::vector<unsigned int>(
const
FieldPropsManager
&,
const
std::string&,
70
bool
)>& fieldPropIntOnLeafAssigner);
71
72
const
SolidEnergyLawParams& solidEnergyLawParams(
unsigned
elemIdx)
const
;
73
74
const
ThermalConductionLawParams& thermalConductionLawParams(
unsigned
elemIdx)
const
;
75
76
private
:
80
void
initHeatcr_(
const
EclipseState
& eclState,
size_t
numElems,
81
const
std::function<std::vector<double>(
const
FieldPropsManager
&,
const
std::string&)>&
82
fieldPropDoubleOnLeafAssigner);
83
87
void
initSpecrock_(
const
EclipseState
& eclState,
88
const
std::function<std::vector<unsigned int>(
const
FieldPropsManager
&,
const
std::string&,
bool
)>&
89
fieldPropIntOnLeafAssigner);
90
94
void
initNullRockEnergy_();
95
99
void
initThconr_(
const
EclipseState
& eclState,
size_t
numElems,
100
const
std::function<std::vector<double>(
const
FieldPropsManager
&,
const
std::string&)>&
101
fieldPropsDoubleOnLeafAssigner);
102
106
void
initThc_(
const
EclipseState
& eclState,
size_t
numElems,
107
const
std::function<std::vector<double>(
const
FieldPropsManager
&,
const
std::string&)>&
108
fieldPropsDoubleOnLeafAssigner);
109
113
void
initNullCond_();
114
115
private
:
116
EclThermalConductionApproach thermalConductivityApproach_ = EclThermalConductionApproach::Undefined;
117
EclSolidEnergyApproach solidEnergyApproach_ = EclSolidEnergyApproach::Undefined;
118
119
std::vector<unsigned> elemToSatnumIdx_;
120
121
std::vector<SolidEnergyLawParams> solidEnergyLawParams_;
122
std::vector<ThermalConductionLawParams> thermalConductionLawParams_;
123
};
124
}
// namespace Opm
125
126
#endif
EclSolidEnergyLawMultiplexerParams.hpp
The default implementation of a parameter object for the ECL thermal law.
EclSolidEnergyLawMultiplexer.hpp
Provides the energy storage relation of rock.
EclThermalConductionLawMultiplexerParams.hpp
The default implementation of a parameter object for the ECL thermal law.
EclThermalConductionLawMultiplexer.hpp
Implements the total thermal conductivity and rock enthalpy relations used by ECL.
Opm::EclSolidEnergyLawMultiplexer
Provides the energy storage relation of rock.
Definition
EclSolidEnergyLawMultiplexer.hpp:50
Opm::EclThermalConductionLawMultiplexer
Implements the total thermal conductivity and rock enthalpy relations used by ECL.
Definition
EclThermalConductionLawMultiplexer.hpp:50
Opm::EclThermalLawManager
Provides an simple way to create and manage the thermal law objects for a complete ECL deck.
Definition
EclThermalLawManager.hpp:56
Opm::EclipseState
Definition
EclipseState.hpp:62
Opm::FieldPropsManager
Definition
FieldPropsManager.hpp:42
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
opm
material
thermal
EclThermalLawManager.hpp
Generated by
1.17.0