18template <
int DisplacementDim>
19std::unique_ptr<LinearElasticOrthotropic<DisplacementDim>>
21 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
22 std::optional<ParameterLib::CoordinateSystem>
const&
23 local_coordinate_system,
26 if (!skip_type_checking)
30 DBUG(
"Create LinearElasticOrthotropic material");
37 config,
"youngs_moduli", parameters, 3);
38 DBUG(
"Use '{:s}' as youngs_moduli parameter.", youngs_moduli.name);
43 config,
"shear_moduli", parameters, 3);
44 DBUG(
"Use '{:s}' as shear_moduli parameter.", shear_moduli.name);
49 config,
"poissons_ratios", parameters, 3);
50 DBUG(
"Use '{:s}' as poissons_ratios parameter.", poissons_ratios.name);
53 youngs_moduli, shear_moduli, poissons_ratios};
55 return std::make_unique<LinearElasticOrthotropic<DisplacementDim>>(
56 mp, local_coordinate_system);
59template std::unique_ptr<LinearElasticOrthotropic<2>>
61 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
62 std::optional<ParameterLib::CoordinateSystem>
const&
63 local_coordinate_system,
66template std::unique_ptr<LinearElasticOrthotropic<3>>
68 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
69 std::optional<ParameterLib::CoordinateSystem>
const&
70 local_coordinate_system,
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
std::unique_ptr< LinearElasticOrthotropic< DisplacementDim > > createLinearElasticOrthotropic(std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, BaseLib::ConfigTree const &config, const bool skip_type_checking)
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)
Variables specific to the material model.