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: #31405 (292dce) with base fef103 Lines: 15 16 93.8 %
Date: 2025-09-04 07:57:23 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         182 : PureElasticTractionSeparation::validParams()
      16             : {
      17         182 :   InputParameters params = CZMComputeLocalTractionTotalBase::validParams();
      18         182 :   params.addClassDescription("Pure elastic traction separation law.");
      19         364 :   params.addRequiredParam<Real>("normal_stiffness", "The value of K in the normal direction");
      20         364 :   params.addRequiredParam<Real>("tangent_stiffness", "The value of K in the tangent direction");
      21         182 :   return params;
      22           0 : }
      23             : 
      24          77 : PureElasticTractionSeparation::PureElasticTractionSeparation(const InputParameters & parameters)
      25             :   : CZMComputeLocalTractionTotalBase(parameters),
      26          77 :     _K(std::vector<Real>{getParam<Real>("normal_stiffness"),
      27         154 :                          getParam<Real>("tangent_stiffness"),
      28         308 :                          getParam<Real>("tangent_stiffness")})
      29             : {
      30          77 : }
      31             : 
      32             : void
      33       41912 : PureElasticTractionSeparation::computeInterfaceTractionAndDerivatives()
      34             : {
      35       41912 :   _interface_traction[_qp] = _K * _interface_displacement_jump[_qp];
      36       41912 :   _dinterface_traction_djump[_qp] = _K;
      37       41912 : }

Generated by: LCOV version 1.14