LCOV - code coverage report
Current view: top level - src/materials/cohesive_zone_model - ADCZMComputeGlobalTractionBase.C (source / functions) Hit Total Coverage
Test: idaholab/moose tensor_mechanics: d6b47a Lines: 12 18 66.7 %
Date: 2024-02-27 11:53:14 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://www.mooseframework.org
       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           6 : ADCZMComputeGlobalTractionBase::ADCZMComputeGlobalTractionBase(const InputParameters & parameters)
      22             :   : InterfaceMaterial(parameters),
      23          18 :     _base_name(isParamValid("base_name") && !getParam<std::string>("base_name").empty()
      24           6 :                    ? getParam<std::string>("base_name") + "_"
      25             :                    : ""),
      26          12 :     _traction_global(declareADPropertyByName<RealVectorValue>(_base_name + "traction_global")),
      27           6 :     _interface_traction(
      28           6 :         getADMaterialPropertyByName<RealVectorValue>(_base_name + "interface_traction")),
      29           6 :     _czm_total_rotation(
      30          12 :         getADMaterialPropertyByName<RankTwoTensor>(_base_name + "czm_total_rotation"))
      31             : {
      32           6 : }
      33             : 
      34             : void
      35        8640 : ADCZMComputeGlobalTractionBase::computeQpProperties()
      36             : {
      37        8640 :   computeEquilibriumTracion();
      38        8640 : }

Generated by: LCOV version 1.14