OGS
CreatePermeabilityModel.cpp
Go to the documentation of this file.
1
11
12#include "BaseLib/ConfigTree.h"
13#include "BaseLib/Error.h"
15#include "CreateCubicLaw.h"
16
18{
19std::unique_ptr<Permeability> createPermeabilityModel(
20 BaseLib::ConfigTree const& config)
21{
22 auto const permeability_model_type =
24 config.peekConfigParameter<std::string>("type");
25 if (permeability_model_type == "ConstantPermeability")
26 {
28 config);
29 }
30 if (permeability_model_type == "CubicLaw")
31 {
33 }
34 OGS_FATAL("Unknown fracture permeability model type \"{:s}\".",
35 permeability_model_type);
36}
37} // namespace MaterialLib::Fracture::Permeability
#define OGS_FATAL(...)
Definition Error.h:26
T peekConfigParameter(std::string const &param) const
std::unique_ptr< Permeability > createConstantPermeability(BaseLib::ConfigTree const &config)
std::unique_ptr< Permeability > createCubicLaw(BaseLib::ConfigTree const &config)
std::unique_ptr< Permeability > createPermeabilityModel(BaseLib::ConfigTree const &config)