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: #32971 (54bef8) with base c6cf66 Lines: 21 22 95.5 %
Date: 2026-05-29 20:40:07 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         268 : CZMComputeGlobalTractionBase::validParams()
      14             : {
      15         268 :   InputParameters params = InterfaceMaterial::validParams();
      16             : 
      17         268 :   params.addClassDescription(
      18             :       "Base class for computing the equilibrium traction and its derivatives.");
      19         268 :   params.suppressParameter<bool>("use_displaced_mesh");
      20         536 :   params.addParam<std::string>("base_name", "Material property base name");
      21         268 :   return params;
      22           0 : }
      23             : 
      24         126 : CZMComputeGlobalTractionBase::CZMComputeGlobalTractionBase(const InputParameters & parameters)
      25             :   : InterfaceMaterial(parameters),
      26         446 :     _base_name(isParamValid("base_name") && !getParam<std::string>("base_name").empty()
      27         126 :                    ? getParam<std::string>("base_name") + "_"
      28             :                    : ""),
      29         252 :     _traction_global(declarePropertyByName<RealVectorValue>(_base_name + "traction_global")),
      30         126 :     _interface_traction(
      31         126 :         getMaterialPropertyByName<RealVectorValue>(_base_name + "interface_traction")),
      32         126 :     _dtraction_djump_global(
      33         126 :         declarePropertyByName<RankTwoTensor>(_base_name + "dtraction_djump_global")),
      34         126 :     _dinterface_traction_djump(
      35         126 :         getMaterialPropertyByName<RankTwoTensor>(_base_name + "dinterface_traction_djump")),
      36         378 :     _czm_total_rotation(getMaterialPropertyByName<RankTwoTensor>(_base_name + "czm_total_rotation"))
      37             : {
      38         126 : }
      39             : 
      40             : void
      41       54480 : CZMComputeGlobalTractionBase::computeQpProperties()
      42             : {
      43             :   // rotate local traction and derivatives to the global coordinate system
      44       54480 :   computeEquilibriumTracionAndDerivatives();
      45       54480 : }

Generated by: LCOV version 1.14