OGS
MaterialLib::Fracture::Permeability Namespace Reference

Classes

class  ConstantPermeability
 A constant permeability model. More...
 
class  CubicLaw
 
class  Permeability
 
struct  PermeabilityState
 

Functions

std::unique_ptr< PermeabilitycreateConstantPermeability (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PermeabilitycreateCubicLaw (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PermeabilitycreatePermeabilityModel (BaseLib::ConfigTree const &config)
 

Function Documentation

◆ createConstantPermeability()

std::unique_ptr< Permeability > MaterialLib::Fracture::Permeability::createConstantPermeability ( BaseLib::ConfigTree const & config)
Input File Parameter
material__fracture_properties__permeability_model__type
Input File Parameter
material__fracture_properties__permeability_model__ConstantPermeability__value

Definition at line 18 of file CreateConstantPermeability.cpp.

20{
22 config.checkConfigParameter("type", "ConstantPermeability");
23
24 auto const permeability =
26 config.getConfigParameter<double>("value");
27
28 if (permeability < 0)
29 {
31 "The permeability parameter must be non-negative. Given value "
32 "{:g}.",
33 permeability);
34 }
35
36 return std::make_unique<ConstantPermeability>(permeability);
37}
#define OGS_FATAL(...)
Definition Error.h:26

References BaseLib::ConfigTree::checkConfigParameter(), BaseLib::ConfigTree::getConfigParameter(), and OGS_FATAL.

Referenced by createPermeabilityModel().

◆ createCubicLaw()

std::unique_ptr< Permeability > MaterialLib::Fracture::Permeability::createCubicLaw ( BaseLib::ConfigTree const & config)
Input File Parameter
material__fracture_properties__permeability_model__type
Input File Parameter
material__fracture_properties__permeability_model__CubicLaw

Definition at line 17 of file CreateCubicLaw.cpp.

18{
20 config.checkConfigParameter("type", "CubicLaw");
21
23 return std::make_unique<CubicLaw>();
24}

References BaseLib::ConfigTree::checkConfigParameter().

Referenced by createPermeabilityModel().

◆ createPermeabilityModel()

std::unique_ptr< Permeability > MaterialLib::Fracture::Permeability::createPermeabilityModel ( BaseLib::ConfigTree const & config)
Input File Parameter
material__fracture_properties__permeability_model__type

Definition at line 19 of file CreatePermeabilityModel.cpp.

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}
std::unique_ptr< Permeability > createConstantPermeability(BaseLib::ConfigTree const &config)
std::unique_ptr< Permeability > createCubicLaw(BaseLib::ConfigTree const &config)

References createConstantPermeability(), createCubicLaw(), OGS_FATAL, and BaseLib::ConfigTree::peekConfigParameter().