Line data Source code
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 "CZMInterfaceKernelSmallStrain.h" 11 : 12 : registerMooseObject("SolidMechanicsApp", CZMInterfaceKernelSmallStrain); 13 : 14 : InputParameters 15 1217 : CZMInterfaceKernelSmallStrain::validParams() 16 : { 17 1217 : InputParameters params = CZMInterfaceKernelBase::validParams(); 18 : 19 1217 : params.addClassDescription( 20 : "CZM Interface kernel to use when using the Small Strain kinematic formulation."); 21 : 22 1217 : return params; 23 0 : } 24 : 25 385 : CZMInterfaceKernelSmallStrain::CZMInterfaceKernelSmallStrain(const InputParameters & parameters) 26 385 : : CZMInterfaceKernelBase(parameters) 27 : { 28 385 : } 29 : 30 : Real 31 32601184 : CZMInterfaceKernelSmallStrain::computeDResidualDDisplacement( 32 : const unsigned int & component_j, const Moose::DGJacobianType & type) const 33 : { 34 32601184 : Real jac = _dtraction_djump_global[_qp](_component, component_j); 35 32601184 : switch (type) 36 : { 37 8150296 : case Moose::ElementElement: // Residual_sign -1 ddeltaU_ddisp sign -1; 38 8150296 : jac *= _test[_i][_qp] * _vars[component_j]->phiFace()[_j][_qp]; 39 8150296 : break; 40 8150296 : case Moose::ElementNeighbor: // Residual_sign -1 ddeltaU_ddisp sign 1; 41 8150296 : jac *= -_test[_i][_qp] * _vars[component_j]->phiFaceNeighbor()[_j][_qp]; 42 8150296 : break; 43 8150296 : case Moose::NeighborElement: // Residual_sign 1 ddeltaU_ddisp sign -1; 44 8150296 : jac *= -_test_neighbor[_i][_qp] * _vars[component_j]->phiFace()[_j][_qp]; 45 8150296 : break; 46 8150296 : case Moose::NeighborNeighbor: // Residual_sign 1 ddeltaU_ddisp sign 1; 47 8150296 : jac *= _test_neighbor[_i][_qp] * _vars[component_j]->phiFaceNeighbor()[_j][_qp]; 48 8150296 : break; 49 : } 50 32601184 : return jac; 51 : }