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

Generated by: LCOV version 1.14