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