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 "CZMComputeDisplacementJumpSmallStrain.h" 11 : 12 : registerMooseObject("SolidMechanicsApp", CZMComputeDisplacementJumpSmallStrain); 13 : registerMooseObject("SolidMechanicsApp", ADCZMComputeDisplacementJumpSmallStrain); 14 : 15 : template <bool is_ad> 16 : InputParameters 17 264 : CZMComputeDisplacementJumpSmallStrainTempl<is_ad>::validParams() 18 : { 19 264 : InputParameters params = CZMComputeDisplacementJumpBase<is_ad>::validParams(); 20 264 : params.addClassDescription("Compute the total displacement jump across a czm interface in local " 21 : "coordinates for the Small Strain kinematic formulation"); 22 : 23 264 : return params; 24 0 : } 25 : 26 : template <bool is_ad> 27 132 : CZMComputeDisplacementJumpSmallStrainTempl<is_ad>::CZMComputeDisplacementJumpSmallStrainTempl( 28 : const InputParameters & parameters) 29 132 : : CZMComputeDisplacementJumpBase<is_ad>(parameters) 30 : { 31 132 : } 32 : 33 : template <bool is_ad> 34 : void 35 41200 : CZMComputeDisplacementJumpSmallStrainTempl<is_ad>::computeLocalDisplacementJump() 36 : { 37 48976 : _interface_displacement_jump[_qp] = 38 41200 : _czm_total_rotation[_qp].transpose() * _displacement_jump_global[_qp]; 39 41200 : } 40 : 41 : template class CZMComputeDisplacementJumpSmallStrainTempl<false>; 42 : template class CZMComputeDisplacementJumpSmallStrainTempl<true>;