https://mooseframework.inl.gov
CZMComputeLocalTractionBase.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "Assembly.h"
12 
15 {
17 
18  params.addClassDescription("Base class for implementing cohesive zone constitutive material "
19  "models that can be formulated using the total displacement jump");
20  params.addRequiredCoupledVar("displacements",
21  "The string of displacements suitable for the problem statement");
22  params.suppressParameter<bool>("use_displaced_mesh");
23  params.addParam<std::string>("base_name", "Material property base name");
24  return params;
25 }
26 
28  : InterfaceMaterial(parameters),
29  _base_name(isParamValid("base_name") && !getParam<std::string>("base_name").empty()
30  ? getParam<std::string>("base_name") + "_"
31  : ""),
32  _interface_traction(declarePropertyByName<RealVectorValue>(_base_name + "interface_traction")),
33  _dinterface_traction_djump(
34  declarePropertyByName<RankTwoTensor>(_base_name + "dinterface_traction_djump")),
35  _interface_displacement_jump(
36  getMaterialPropertyByName<RealVectorValue>(_base_name + "interface_displacement_jump"))
37 {
38 }
39 
40 void
42 {
44 }
45 
46 void
48 {
50 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
MaterialProperty< RealVectorValue > & _interface_traction
the value of the traction in local coordinates
void suppressParameter(const std::string &name)
virtual void computeInterfaceTractionAndDerivatives()=0
Compute the local traction and derivatives. This method should fill the _interface_traction and _dint...
unsigned int _qp
CZMComputeLocalTractionBase(const InputParameters &parameters)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)