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

Generated by: LCOV version 1.14