OGS
PorousMediaProperties.cpp
Go to the documentation of this file.
1
11
#include "
PorousMediaProperties.h
"
12
13
namespace
MaterialLib
14
{
15
namespace
PorousMedium
16
{
17
int
PorousMediaProperties::getMaterialID
(
18
ParameterLib::SpatialPosition
const
& pos)
const
19
{
20
return
_material_ids
? (*_material_ids)[pos.
getElementID
().value()] : 0;
21
}
22
23
MaterialLib::PorousMedium::Porosity
const
&
PorousMediaProperties::getPorosity
(
24
double
/*t*/
,
ParameterLib::SpatialPosition
const
& pos)
const
25
{
26
return
*
_porosity_models
[
getMaterialID
(pos)];
27
}
28
29
MaterialLib::PorousMedium::Permeability
const
&
30
PorousMediaProperties::getIntrinsicPermeability
(
31
double
/*t*/
,
ParameterLib::SpatialPosition
const
& pos)
const
32
{
33
return
*
_intrinsic_permeability_models
[
getMaterialID
(pos)];
34
}
35
36
MaterialLib::PorousMedium::Storage
const
&
37
PorousMediaProperties::getSpecificStorage
(
38
double
/*t*/
,
ParameterLib::SpatialPosition
const
& pos)
const
39
{
40
return
*
_specific_storage_models
[
getMaterialID
(pos)];
41
}
42
}
// namespace PorousMedium
43
}
// namespace MaterialLib
PorousMediaProperties.h
MaterialLib::PorousMedium::Permeability
Definition
Permeability.h:25
MaterialLib::PorousMedium::PorousMediaProperties::_intrinsic_permeability_models
std::vector< std::unique_ptr< MaterialLib::PorousMedium::Permeability > > _intrinsic_permeability_models
Definition
PorousMediaProperties.h:64
MaterialLib::PorousMedium::PorousMediaProperties::_material_ids
MeshLib::PropertyVector< int > const *const _material_ids
Definition
PorousMediaProperties.h:67
MaterialLib::PorousMedium::PorousMediaProperties::getIntrinsicPermeability
MaterialLib::PorousMedium::Permeability const & getIntrinsicPermeability(double t, ParameterLib::SpatialPosition const &pos) const
Definition
PorousMediaProperties.cpp:30
MaterialLib::PorousMedium::PorousMediaProperties::_specific_storage_models
std::vector< std::unique_ptr< MaterialLib::PorousMedium::Storage > > _specific_storage_models
Definition
PorousMediaProperties.h:66
MaterialLib::PorousMedium::PorousMediaProperties::getMaterialID
int getMaterialID(ParameterLib::SpatialPosition const &pos) const
Definition
PorousMediaProperties.cpp:17
MaterialLib::PorousMedium::PorousMediaProperties::getPorosity
MaterialLib::PorousMedium::Porosity const & getPorosity(double t, ParameterLib::SpatialPosition const &pos) const
Definition
PorousMediaProperties.cpp:23
MaterialLib::PorousMedium::PorousMediaProperties::getSpecificStorage
MaterialLib::PorousMedium::Storage const & getSpecificStorage(double t, ParameterLib::SpatialPosition const &pos) const
Definition
PorousMediaProperties.cpp:37
MaterialLib::PorousMedium::PorousMediaProperties::_porosity_models
std::vector< std::unique_ptr< MaterialLib::PorousMedium::Porosity > > _porosity_models
Definition
PorousMediaProperties.h:62
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:27
ParameterLib::SpatialPosition::getElementID
std::optional< std::size_t > getElementID() const
Definition
SpatialPosition.h:43
MaterialLib
Definition
ConstantFluidProperty.h:18
MaterialLib
PorousMedium
PorousMediaProperties.cpp
Generated by
1.12.0