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: f45d79 Lines: 11 12 91.7 %
Date: 2025-07-25 05:00:39 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         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>;

Generated by: LCOV version 1.14