LCOV - code coverage report
Current view: top level - src/materials/cohesive_zone_model - PureElasticTractionSeparation.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: #32971 (54bef8) with base c6cf66 Lines: 15 16 93.8 %
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 "PureElasticTractionSeparation.h"
      11             : 
      12             : registerMooseObject("SolidMechanicsApp", PureElasticTractionSeparation);
      13             : 
      14             : InputParameters
      15         104 : PureElasticTractionSeparation::validParams()
      16             : {
      17         104 :   InputParameters params = CZMComputeLocalTractionTotalBase::validParams();
      18         104 :   params.addClassDescription("Pure elastic traction separation law.");
      19         208 :   params.addRequiredParam<Real>("normal_stiffness", "The value of K in the normal direction");
      20         208 :   params.addRequiredParam<Real>("tangent_stiffness", "The value of K in the tangent direction");
      21         104 :   return params;
      22           0 : }
      23             : 
      24          44 : PureElasticTractionSeparation::PureElasticTractionSeparation(const InputParameters & parameters)
      25             :   : CZMComputeLocalTractionTotalBase(parameters),
      26          44 :     _K(std::vector<Real>{getParam<Real>("normal_stiffness"),
      27          88 :                          getParam<Real>("tangent_stiffness"),
      28         176 :                          getParam<Real>("tangent_stiffness")})
      29             : {
      30          44 : }
      31             : 
      32             : void
      33       26152 : PureElasticTractionSeparation::computeInterfaceTractionAndDerivatives()
      34             : {
      35       26152 :   _interface_traction[_qp] = _K * _interface_displacement_jump[_qp];
      36       26152 :   _dinterface_traction_djump[_qp] = _K;
      37       26152 : }

Generated by: LCOV version 1.14