OGS
MaterialLib::Fracture::CohesiveZoneModeI Namespace Reference

Namespaces

namespace  anonymous_namespace{CohesiveZoneModeI.cpp}

Classes

class  CohesiveZoneModeI
struct  MaterialProperties
struct  MaterialPropertiesParameters
 Variables specific to the material model. More...
struct  StateVariables

Functions

template<int DisplacementDim>
std::unique_ptr< FractureModelBase< DisplacementDim > > createCohesiveZoneModeI (std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, BaseLib::ConfigTree const &config)
template std::unique_ptr< FractureModelBase< 2 > > createCohesiveZoneModeI (std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, BaseLib::ConfigTree const &config)

Function Documentation

◆ createCohesiveZoneModeI() [1/2]

template<int DisplacementDim>
std::unique_ptr< FractureModelBase< DisplacementDim > > MaterialLib::Fracture::CohesiveZoneModeI::createCohesiveZoneModeI ( std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters,
BaseLib::ConfigTree const & config )
Input File Parameter
material__fracture_model__type
Input File Parameter
material__fracture_model__CohesiveZoneModeI__normal_stiffness
Input File Parameter
material__fracture_model__CohesiveZoneModeI__shear_stiffness
Input File Parameter
material__fracture_model__CohesiveZoneModeI__fracture_toughness
Input File Parameter
material__fracture_model__CohesiveZoneModeI__peak_normal_traction
Input File Parameter
material__fracture_model__CohesiveZoneModeI__penalty_aperture_cutoff
Input File Parameter
material__fracture_model__CohesiveZoneModeI__tension_cutoff

Definition at line 16 of file CreateCohesiveZoneModeI.cpp.

19{
21 config.checkConfigParameter("type", "CohesiveZoneModeI");
22 DBUG("Create CohesiveZoneModeI material");
23
26 config, "normal_stiffness", parameters, 1);
27
30 config, "shear_stiffness", parameters, 1);
31
34 config, "fracture_toughness", parameters, 1);
35
36 auto const& t_np = ParameterLib::findParameter<double>(
38 config, "peak_normal_traction", parameters, 1);
39
40 auto const penalty_aperture_cutoff =
42 config.getConfigParameter<double>("penalty_aperture_cutoff");
43
44 auto const tension_cutoff =
46 config.getConfigParameter<bool>("tension_cutoff");
47
48 MaterialPropertiesParameters mp{Kn, Ks, Gc, t_np};
49
50 return std::make_unique<CohesiveZoneModeI<DisplacementDim>>(
51 penalty_aperture_cutoff, tension_cutoff, mp);
52}
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:22
OGS_NO_DANGLING Parameter< ParameterDataType > & findParameter(std::string const &parameter_name, std::vector< std::unique_ptr< ParameterBase > > const &parameters, int const num_components, MeshLib::Mesh const *const mesh=nullptr)

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), ParameterLib::findParameter(), and BaseLib::ConfigTree::getConfigParameter().

Referenced by ProcessLib::LIE::HydroMechanics::createHydroMechanicsProcess(), and ProcessLib::LIE::SmallDeformation::createSmallDeformationProcess().

◆ createCohesiveZoneModeI() [2/2]

template std::unique_ptr< FractureModelBase< 2 > > MaterialLib::Fracture::CohesiveZoneModeI::createCohesiveZoneModeI ( std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters,
BaseLib::ConfigTree const & config )