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 22 of file CreateCohesiveZoneModeI.cpp.

25{
27 config.checkConfigParameter("type", "CohesiveZoneModeI");
28 DBUG("Create CohesiveZoneModeI material");
29
32 config, "normal_stiffness", parameters, 1);
33
36 config, "shear_stiffness", parameters, 1);
37
40 config, "fracture_toughness", parameters, 1);
41
42 auto const& t_np = ParameterLib::findParameter<double>(
44 config, "peak_normal_traction", parameters, 1);
45
46 auto const penalty_aperture_cutoff =
48 config.getConfigParameter<double>("penalty_aperture_cutoff");
49
50 auto const tension_cutoff =
52 config.getConfigParameter<bool>("tension_cutoff");
53
54 MaterialPropertiesParameters mp{Kn, Ks, Gc, t_np};
55
56 return std::make_unique<CohesiveZoneModeI<DisplacementDim>>(
57 penalty_aperture_cutoff, tension_cutoff, mp);
58}
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30
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)
Definition Utils.h:102

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 )