OGS
PorousMediaProperties.cpp
Go to the documentation of this file.
1
12
13namespace MaterialLib
14{
15namespace PorousMedium
16{
18 ParameterLib::SpatialPosition const& pos) const
19{
20 return _material_ids ? (*_material_ids)[pos.getElementID().value()] : 0;
21}
22
23MaterialLib::PorousMedium::Porosity const& PorousMediaProperties::getPorosity(
24 double /*t*/, ParameterLib::SpatialPosition const& pos) const
25{
26 return *_porosity_models[getMaterialID(pos)];
27}
28
35
36MaterialLib::PorousMedium::Storage const&
42} // namespace PorousMedium
43} // namespace MaterialLib
std::vector< std::unique_ptr< MaterialLib::PorousMedium::Permeability > > _intrinsic_permeability_models
MeshLib::PropertyVector< int > const *const _material_ids
MaterialLib::PorousMedium::Permeability const & getIntrinsicPermeability(double t, ParameterLib::SpatialPosition const &pos) const
std::vector< std::unique_ptr< MaterialLib::PorousMedium::Storage > > _specific_storage_models
int getMaterialID(ParameterLib::SpatialPosition const &pos) const
MaterialLib::PorousMedium::Porosity const & getPorosity(double t, ParameterLib::SpatialPosition const &pos) const
MaterialLib::PorousMedium::Storage const & getSpecificStorage(double t, ParameterLib::SpatialPosition const &pos) const
std::vector< std::unique_ptr< MaterialLib::PorousMedium::Porosity > > _porosity_models
std::optional< std::size_t > getElementID() const