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