LCOV - code coverage report
Current view: top level - src/materials/cohesive_zone_model - ADCZMComputeLocalTractionBase.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 11 17 64.7 %
Date: 2025-07-25 05:00:39 Functions: 2 4 50.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 "ADCZMComputeLocalTractionBase.h"
      11             : #include "CZMComputeLocalTractionBase.h"
      12             : 
      13             : InputParameters
      14           0 : ADCZMComputeLocalTractionBase::validParams()
      15             : {
      16           0 :   InputParameters params = CZMComputeLocalTractionBase::validParams();
      17           0 :   return params;
      18             : }
      19             : 
      20          12 : ADCZMComputeLocalTractionBase::ADCZMComputeLocalTractionBase(const InputParameters & parameters)
      21             :   : InterfaceMaterial(parameters),
      22          12 :     _base_name(isParamValid("base_name") && !getParam<std::string>("base_name").empty()
      23          12 :                    ? getParam<std::string>("base_name") + "_"
      24             :                    : ""),
      25          12 :     _interface_traction(
      26          12 :         declareADPropertyByName<RealVectorValue>(_base_name + "interface_traction")),
      27          12 :     _interface_displacement_jump(
      28          24 :         getADMaterialPropertyByName<RealVectorValue>(_base_name + "interface_displacement_jump"))
      29             : {
      30          12 : }
      31             : 
      32             : void
      33           0 : ADCZMComputeLocalTractionBase::initQpStatefulProperties()
      34             : {
      35           0 :   _interface_traction[_qp] = 0;
      36           0 : }
      37             : 
      38             : void
      39       15552 : ADCZMComputeLocalTractionBase::computeQpProperties()
      40             : {
      41       15552 :   computeInterfaceTraction();
      42       15552 : }

Generated by: LCOV version 1.14