OGS
CreateCubicLawPermeability.cpp
Go to the documentation of this file.
1
11
12#include "BaseLib/ConfigTree.h"
14#include "ParameterLib/Utils.h"
15
16namespace MaterialPropertyLib
17{
18std::unique_ptr<Property> createCubicLawPermeability(
19 BaseLib::ConfigTree const& config,
20 std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const& parameters)
21{
23 config.checkConfigParameter("type", "CubicLawPermeability");
24 DBUG("Create CubicLaw Permeability model");
25
26 // Second access for storage.
28 auto property_name = config.peekConfigParameter<std::string>("name");
29
32 config.getConfigParameter<std::string>("fracture_aperture"), parameters,
33 0, nullptr);
34
35 return std::make_unique<CubicLawPermeability>(std::move(property_name), b);
36}
37} // namespace MaterialPropertyLib
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30
T peekConfigParameter(std::string const &param) const
T getConfigParameter(std::string const &param) const
void checkConfigParameter(std::string const &param, std::string_view const value) const
std::unique_ptr< Property > createCubicLawPermeability(BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)
OGS_NO_DANGLING Parameter< ParameterDataType > & findParameter(std::string const &parameter_name, std::vector< std::unique_ptr< ParameterBase > > const &parameters, int const num_components, MeshLib::Mesh const *const mesh=nullptr)
Definition Utils.h:102