My Project
Loading...
Searching...
No Matches
PyMaterialState.hpp
1
/*
2
Copyright 2020 Equinor ASA.
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 3 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
20
#ifndef OPM_PY_MATERIAL_STATE_HEADER_INCLUDED
21
#define OPM_PY_MATERIAL_STATE_HEADER_INCLUDED
22
23
#include <
opm/models/common/multiphasebaseproperties.hh
>
24
#include <
opm/models/discretization/common/fvbaseproperties.hh
>
25
#include <
opm/models/utils/basicproperties.hh
>
26
#include <
opm/models/utils/propertysystem.hh
>
27
28
#include <cstddef>
29
#include <memory>
30
31
namespace
Opm::Pybind
32
{
33
template
<
class
TypeTag>
34
class
PyMaterialState
{
35
using
Simulator =
GetPropType<TypeTag, Properties::Simulator>
;
36
using
Problem =
GetPropType<TypeTag, Properties::Problem>
;
37
using
Model =
GetPropType<TypeTag, Properties::Model>
;
38
using
ElementContext =
GetPropType<TypeTag, Properties::ElementContext>
;
39
using
FluidSystem =
GetPropType<TypeTag, Properties::FluidSystem>
;
40
using
Indices =
GetPropType<TypeTag, Properties::Indices>
;
41
using
GridView =
GetPropType<TypeTag, Properties::GridView>
;
42
43
public
:
44
PyMaterialState
(Simulator* simulator)
45
: simulator_(simulator) { }
46
47
std::vector<double> getCellVolumes();
48
std::vector<double> getPorosity();
49
void
setPorosity(
const
double
*poro, std::size_t size);
50
private
:
51
Simulator* simulator_;
52
};
53
54
}
55
#include "PyMaterialState_impl.hpp"
56
57
#endif
// OPM_PY_MATERIAL_STATE_HEADER_INCLUDED
basicproperties.hh
Defines a type tags and some fundamental properties all models.
Opm::Pybind::PyMaterialState
Definition
PyMaterialState.hpp:34
fvbaseproperties.hh
Declare the properties used by the infrastructure code of the finite volume discretizations.
multiphasebaseproperties.hh
Defines the common properties required by the porous medium multi-phase models.
Opm::GetPropType
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition
propertysystem.hh:235
propertysystem.hh
The Opm property system, traits with inheritance.
opm
simulators
flow
python
PyMaterialState.hpp
Generated by
1.9.8