21template <
int DisplacementDim>
22std::unique_ptr<LinearElasticIsotropic<DisplacementDim>>
24 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
27 if (!skip_type_checking)
31 DBUG(
"Create LinearElasticIsotropic material");
37 config,
"youngs_modulus", parameters, 1);
39 DBUG(
"Use '{:s}' as youngs_modulus parameter.", youngs_modulus.name);
44 config,
"poissons_ratio", parameters, 1);
46 DBUG(
"Use '{:s}' as poissons_ratio parameter.", poissons_ratio.name);
49 youngs_modulus, poissons_ratio};
51 return std::make_unique<LinearElasticIsotropic<DisplacementDim>>(mp);
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
Variables specific to the material model.
std::unique_ptr< LinearElasticIsotropic< DisplacementDim > > createLinearElasticIsotropic(std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const ¶meters, 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)