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: f45d79 Lines: 15 16 93.8 %
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 "PureElasticTractionSeparation.h"
      11             : 
      12             : registerMooseObject("SolidMechanicsApp", PureElasticTractionSeparation);
      13             : 
      14             : InputParameters
      15         156 : PureElasticTractionSeparation::validParams()
      16             : {
      17         156 :   InputParameters params = CZMComputeLocalTractionTotalBase::validParams();
      18         156 :   params.addClassDescription("Pure elastic traction separation law.");
      19         312 :   params.addRequiredParam<Real>("normal_stiffness", "The value of K in the normal direction");
      20         312 :   params.addRequiredParam<Real>("tangent_stiffness", "The value of K in the tangent direction");
      21         156 :   return params;
      22           0 : }
      23             : 
      24          66 : PureElasticTractionSeparation::PureElasticTractionSeparation(const InputParameters & parameters)
      25             :   : CZMComputeLocalTractionTotalBase(parameters),
      26         132 :     _K(std::vector<Real>{getParam<Real>("normal_stiffness"),
      27         132 :                          getParam<Real>("tangent_stiffness"),
      28         264 :                          getParam<Real>("tangent_stiffness")})
      29             : {
      30          66 : }
      31             : 
      32             : void
      33       31520 : PureElasticTractionSeparation::computeInterfaceTractionAndDerivatives()
      34             : {
      35       31520 :   _interface_traction[_qp] = _K * _interface_displacement_jump[_qp];
      36       31520 :   _dinterface_traction_djump[_qp] = _K;
      37       31520 : }

Generated by: LCOV version 1.14