LCOV - code coverage report
Current view: top level - src/interfacekernels - CZMInterfaceKernelSmallStrain.C (source / functions) Hit Total Coverage
Test: idaholab/moose tensor_mechanics: d6b47a Lines: 23 24 95.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 "CZMInterfaceKernelSmallStrain.h"
      11             : 
      12             : registerMooseObject("TensorMechanicsApp", CZMInterfaceKernelSmallStrain);
      13             : 
      14             : InputParameters
      15         522 : CZMInterfaceKernelSmallStrain::validParams()
      16             : {
      17         522 :   InputParameters params = CZMInterfaceKernelBase::validParams();
      18             : 
      19         522 :   params.addClassDescription(
      20             :       "CZM Interface kernel to use when using the Small Strain kinematic formulation.");
      21             : 
      22         522 :   return params;
      23           0 : }
      24             : 
      25         165 : CZMInterfaceKernelSmallStrain::CZMInterfaceKernelSmallStrain(const InputParameters & parameters)
      26         165 :   : CZMInterfaceKernelBase(parameters)
      27             : {
      28         165 : }
      29             : 
      30             : Real
      31    12232736 : CZMInterfaceKernelSmallStrain::computeDResidualDDisplacement(
      32             :     const unsigned int & component_j, const Moose::DGJacobianType & type) const
      33             : {
      34    12232736 :   Real jac = _dtraction_djump_global[_qp](_component, component_j);
      35    12232736 :   switch (type)
      36             :   {
      37     3058184 :     case Moose::ElementElement: // Residual_sign -1  ddeltaU_ddisp sign -1;
      38     3058184 :       jac *= _test[_i][_qp] * _vars[component_j]->phiFace()[_j][_qp];
      39     3058184 :       break;
      40     3058184 :     case Moose::ElementNeighbor: // Residual_sign -1  ddeltaU_ddisp sign 1;
      41     3058184 :       jac *= -_test[_i][_qp] * _vars[component_j]->phiFaceNeighbor()[_j][_qp];
      42     3058184 :       break;
      43     3058184 :     case Moose::NeighborElement: // Residual_sign 1  ddeltaU_ddisp sign -1;
      44     3058184 :       jac *= -_test_neighbor[_i][_qp] * _vars[component_j]->phiFace()[_j][_qp];
      45     3058184 :       break;
      46     3058184 :     case Moose::NeighborNeighbor: // Residual_sign 1  ddeltaU_ddisp sign 1;
      47     3058184 :       jac *= _test_neighbor[_i][_qp] * _vars[component_j]->phiFaceNeighbor()[_j][_qp];
      48     3058184 :       break;
      49             :   }
      50    12232736 :   return jac;
      51             : }

Generated by: LCOV version 1.14