LCOV - code coverage report
Current view: top level - include/kernels - PhaseFieldFractureMechanicsOffDiag.h (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 0 2 0.0 %
Date: 2025-07-25 05:00:39 Functions: 0 2 0.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             : #pragma once
      11             : 
      12             : #include "Kernel.h"
      13             : #include "RankTwoTensor.h"
      14             : #include "DerivativeMaterialInterface.h"
      15             : 
      16             : /**
      17             :  * This class computes the off-diagonal Jacobian component of stress divergence residual system
      18             :  * Contribution from damage order parameter c
      19             :  * Useful if user wants to add the off diagonal Jacobian term
      20             :  */
      21             : 
      22             : class PhaseFieldFractureMechanicsOffDiag : public DerivativeMaterialInterface<Kernel>
      23             : {
      24             : public:
      25             :   static InputParameters validParams();
      26             : 
      27             :   PhaseFieldFractureMechanicsOffDiag(const InputParameters & parameters);
      28             : 
      29             : protected:
      30           0 :   Real computeQpResidual() override { return 0.0; }
      31             : 
      32           0 :   Real computeQpJacobian() override { return 0.0; }
      33             : 
      34             :   virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
      35             : 
      36             :   /// Base name of the material system that this kernel applies to
      37             :   const std::string _base_name;
      38             : 
      39             :   /// An integer corresponding to the direction this kernel acts in
      40             :   const unsigned int _component;
      41             : 
      42             :   const bool _c_coupled;
      43             :   const unsigned int _c_var;
      44             :   const MaterialProperty<RankTwoTensor> & _d_stress_dc;
      45             : };

Generated by: LCOV version 1.14