26 int const geometry_dimension,
28 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
31 if ((geometry_dimension != 2) && (geometry_dimension != 3))
34 "The PermeabilityMohrCoulombFailureIndexModel is implemented only "
35 "for 2D or 3D problems");
40 "PermeabilityMohrCoulombFailureIndexModel");
46 DBUG(
"Create PermeabilityMohrCoulombFailureIndexModel property {:s}.",
49 std::string
const& parameter_name =
53 parameter_name, parameters, 0,
nullptr);
70 auto const t_sigma_max =
74 if (geometry_dimension == 2)
76 return std::make_unique<PermeabilityMohrCoulombFailureIndexModel<2>>(
77 std::move(property_name), parameter_k0, kr, b,
c, phi, max_k,
78 t_sigma_max, local_coordinate_system);
81 return std::make_unique<PermeabilityMohrCoulombFailureIndexModel<3>>(
82 std::move(property_name), parameter_k0, kr, b,
c, phi, max_k,
83 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)