LCOV - code coverage report
Current view: top level - src/materials/cohesive_zone_model - CZMComputeDisplacementJumpSmallStrain.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: #31405 (292dce) with base fef103 Lines: 11 12 91.7 %
Date: 2025-09-04 07:57:23 Functions: 6 6 100.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.14