12template <
int DisplacementDim>
13std::unique_ptr<LinearElasticTransverseIsotropic<DisplacementDim>>
15 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
16 std::optional<ParameterLib::CoordinateSystem>
const&
17 local_coordinate_system,
20 if (!skip_type_checking)
24 DBUG(
"Create LinearElasticTransverseIsotropic material");
29 config,
"youngs_modulus_i", parameters, 1);
30 DBUG(
"Use '{}' as the in-plane Young’s modulus, E_i.", E_i.name);
34 config,
"youngs_modulus_a", parameters, 1);
36 "Use '{}' as the Young’s modulus w.r.t. the direction of anisotropy, "
42 config,
"poissons_ratio_ii", parameters, 1);
43 DBUG(
"Use '{}' as the in-plane Poisson’s ratio, nu_ii.", nu_ii.name);
47 config,
"poissons_ratio_ia", parameters, 1);
49 "Use '{}' as the Poisson ratio perpendicular to the plane of isotropy, "
50 "due to strain in the plane of isotropy, nu_ia.",
55 config,
"shear_modulus_ia", parameters, 1);
57 "Use '{}' as the shear modulus between directions of isotropy and "
61 return std::make_unique<LinearElasticTransverseIsotropic<DisplacementDim>>(
62 E_i, E_a, nu_ii, nu_ia, G_ia, local_coordinate_system);
65template std::unique_ptr<LinearElasticTransverseIsotropic<2>>
67 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
68 std::optional<ParameterLib::CoordinateSystem>
const&
69 local_coordinate_system,
72template std::unique_ptr<LinearElasticTransverseIsotropic<3>>
74 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
75 std::optional<ParameterLib::CoordinateSystem>
const&
76 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< LinearElasticTransverseIsotropic< DisplacementDim > > createLinearElasticTransverseIsotropic(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)