18 int const geometry_dimension,
20 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
23 if ((geometry_dimension != 2) && (geometry_dimension != 3))
26 "The PermeabilityMohrCoulombFailureIndexModel is implemented only "
27 "for 2D or 3D problems");
32 "PermeabilityMohrCoulombFailureIndexModel");
38 DBUG(
"Create PermeabilityMohrCoulombFailureIndexModel property {:s}.",
41 std::string
const& parameter_name =
45 parameter_name, parameters, 0,
nullptr);
62 auto const t_sigma_max =
66 if (geometry_dimension == 2)
68 return std::make_unique<PermeabilityMohrCoulombFailureIndexModel<2>>(
69 std::move(property_name), parameter_k0, kr, b,
c, phi, max_k,
70 t_sigma_max, local_coordinate_system);
73 return std::make_unique<PermeabilityMohrCoulombFailureIndexModel<3>>(
74 std::move(property_name), parameter_k0, kr, b,
c, phi, max_k,
75 t_sigma_max, local_coordinate_system);
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)