31 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters)
36 if (type ==
"Constant")
42 "permeability_tensor_entries", parameters, 0);
44 int dimension =
static_cast<int>(
45 std::sqrt(permeability_parameter.getNumberOfGlobalComponents()));
46 if (permeability_parameter.getNumberOfGlobalComponents() !=
47 dimension * dimension)
50 "The given parameter has {:d} components, but the permeability "
51 "tensor is defined for a {:d} dimensional problem.",
52 permeability_parameter.getNumberOfGlobalComponents(),
56 return std::make_unique<Permeability>(permeability_parameter,
66 "permeability_tensor_entries", parameters, 0);
68 int dimension =
static_cast<int>(
69 std::sqrt(permeability_parameter.getNumberOfGlobalComponents()));
70 if (permeability_parameter.getNumberOfGlobalComponents() !=
71 dimension * dimension)
74 "The given parameter has {:d} components, but the permeability "
75 "tensor is defined for a {:d} dimensional problem.",
76 permeability_parameter.getNumberOfGlobalComponents(),
80 return std::make_unique<DupuitPermeability>(permeability_parameter,
83 OGS_FATAL(
"The permeability type '{:s}' is unavailable.\n",
84 "The available types are \n\tConstant.",
OGS_NO_DANGLING Parameter< ParameterDataType > & findParameter(std::string const ¶meter_name, std::vector< std::unique_ptr< ParameterBase > > const ¶meters, int const num_components, MeshLib::Mesh const *const mesh=nullptr)