17 "the component of the " 18 "displacement vector this kernel is working on:" 19 " component == 0, ==> X" 20 " component == 1, ==> Y" 21 " component == 2, ==> Z");
24 params.
addParam<std::string>(
"base_name",
"Material property base name");
25 params.
set<std::string>(
"traction_global_name") =
"traction_global";
32 _base_name(isParamValid(
"base_name") && !getParam<
std::string>(
"base_name").empty()
33 ? getParam<
std::string>(
"base_name") +
"_" 35 _component(getParam<unsigned
int>(
"component")),
36 _ndisp(coupledComponents(
"displacements")),
38 _disp_neighbor_var(_ndisp),
41 _base_name + getParam<
std::string>(
"traction_global_name"))),
42 _dtraction_djump_global(
43 getMaterialPropertyByName<
RankTwoTensor>(_base_name +
"dtraction_djump_global"))
46 if (
_ndisp != _mesh.dimension())
47 paramError(
"displacements",
"Number of displacements must match problem dimension.");
50 mooseError(
"the CZM material requires 1, 2 or 3 displacement variables");
52 for (
unsigned int i = 0; i <
_ndisp; ++i)
54 _disp_var[i] = coupled(
"displacements", i);
56 _vars[i] = getVar(
"displacements", i);
72 r *= _test_neighbor[_i][_qp];
95 for (
unsigned int off_diag_component = 0; off_diag_component <
_ndisp; ++off_diag_component)
97 if (jvar ==
_disp_var[off_diag_component])
void mooseError(Args &&... args)
static InputParameters validParams()
Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar) override
std::vector< unsigned int > _disp_var
Coupled displacement component variable IDs.
Real computeQpResidual(Moose::DGResidualType type) override
const unsigned int _component
the displacement component this kernel is operating on (0=x, 1=y, 2 =z)
std::vector< MooseVariable * > _vars
const JvarMap & getJvarMap()
std::vector< unsigned int > _disp_neighbor_var
const unsigned int _ndisp
number of displacement components
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const MaterialProperty< RealVectorValue > & _traction_global
void ErrorVector unsigned int
CZMInterfaceKernelBase(const InputParameters ¶meters)
static InputParameters validParams()
Real computeQpJacobian(Moose::DGJacobianType type) override
virtual Real computeDResidualDDisplacement(const unsigned int &component_j, const Moose::DGJacobianType &type) const =0
method computing the derivative of residual[_component] w.r.t displacement[component_j] ...