LCOV - code coverage report
Current view: top level - src/materials/cohesive_zone_model - ADCZMComputeGlobalTractionBase.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: #31405 (292dce) with base fef103 Lines: 12 18 66.7 %
Date: 2025-09-04 07:57:23 Functions: 2 3 66.7 %
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 "ADCZMComputeGlobalTractionBase.h"
      11             : 
      12             : InputParameters
      13           0 : ADCZMComputeGlobalTractionBase::validParams()
      14             : {
      15           0 :   InputParameters params = InterfaceMaterial::validParams();
      16           0 :   params.suppressParameter<bool>("use_displaced_mesh");
      17           0 :   params.addParam<std::string>("base_name", "Material property base name");
      18           0 :   return params;
      19           0 : }
      20             : 
      21          14 : ADCZMComputeGlobalTractionBase::ADCZMComputeGlobalTractionBase(const InputParameters & parameters)
      22             :   : InterfaceMaterial(parameters),
      23          42 :     _base_name(isParamValid("base_name") && !getParam<std::string>("base_name").empty()
      24          14 :                    ? getParam<std::string>("base_name") + "_"
      25             :                    : ""),
      26          28 :     _traction_global(declareADPropertyByName<RealVectorValue>(_base_name + "traction_global")),
      27          14 :     _interface_traction(
      28          14 :         getADMaterialPropertyByName<RealVectorValue>(_base_name + "interface_traction")),
      29          14 :     _czm_total_rotation(
      30          28 :         getADMaterialPropertyByName<RankTwoTensor>(_base_name + "czm_total_rotation"))
      31             : {
      32          14 : }
      33             : 
      34             : void
      35       20736 : ADCZMComputeGlobalTractionBase::computeQpProperties()
      36             : {
      37       20736 :   computeEquilibriumTracion();
      38       20736 : }

Generated by: LCOV version 1.14