LCOV - code coverage report
Current view: top level - src/materials/cohesive_zone_model - CZMComputeGlobalTractionBase.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: #31405 (292dce) with base fef103 Lines: 21 22 95.5 %
Date: 2025-09-04 07:57:23 Functions: 3 3 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 "CZMComputeGlobalTractionBase.h"
      11             : 
      12             : InputParameters
      13         462 : CZMComputeGlobalTractionBase::validParams()
      14             : {
      15         462 :   InputParameters params = InterfaceMaterial::validParams();
      16             : 
      17         462 :   params.addClassDescription(
      18             :       "Base class for computing the equilibrium traction and its derivatives.");
      19         462 :   params.suppressParameter<bool>("use_displaced_mesh");
      20         924 :   params.addParam<std::string>("base_name", "Material property base name");
      21         462 :   return params;
      22           0 : }
      23             : 
      24         217 : CZMComputeGlobalTractionBase::CZMComputeGlobalTractionBase(const InputParameters & parameters)
      25             :   : InterfaceMaterial(parameters),
      26         763 :     _base_name(isParamValid("base_name") && !getParam<std::string>("base_name").empty()
      27         217 :                    ? getParam<std::string>("base_name") + "_"
      28             :                    : ""),
      29         434 :     _traction_global(declarePropertyByName<RealVectorValue>(_base_name + "traction_global")),
      30         217 :     _interface_traction(
      31         217 :         getMaterialPropertyByName<RealVectorValue>(_base_name + "interface_traction")),
      32         217 :     _dtraction_djump_global(
      33         217 :         declarePropertyByName<RankTwoTensor>(_base_name + "dtraction_djump_global")),
      34         217 :     _dinterface_traction_djump(
      35         217 :         getMaterialPropertyByName<RankTwoTensor>(_base_name + "dinterface_traction_djump")),
      36         651 :     _czm_total_rotation(getMaterialPropertyByName<RankTwoTensor>(_base_name + "czm_total_rotation"))
      37             : {
      38         217 : }
      39             : 
      40             : void
      41       86824 : CZMComputeGlobalTractionBase::computeQpProperties()
      42             : {
      43             :   // rotate local traction and derivatives to the global coordinate system
      44       86824 :   computeEquilibriumTracionAndDerivatives();
      45       86824 : }

Generated by: LCOV version 1.14