LCOV - code coverage report
Current view: top level - include/kernels - StressDivergenceTensorsTruss.h (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 0 1 0.0 %
Date: 2025-07-25 05:00:39 Functions: 0 1 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             : 
      14             : // Forward Declarations
      15             : 
      16             : class StressDivergenceTensorsTruss : public Kernel
      17             : {
      18             : public:
      19             :   static InputParameters validParams();
      20             : 
      21             :   StressDivergenceTensorsTruss(const InputParameters & parameters);
      22             : 
      23             : protected:
      24             :   virtual void initialSetup() override;
      25             :   virtual void computeResidual() override;
      26           0 :   virtual Real computeQpResidual() override { return 0.0; }
      27             :   virtual Real computeStiffness(unsigned int i, unsigned int j);
      28             :   virtual void computeJacobian() override;
      29             :   virtual void computeOffDiagJacobian(unsigned int jvar) override;
      30             : 
      31             :   /// Base name of the material system that this kernel applies to
      32             :   const std::string _base_name;
      33             : 
      34             :   const MaterialProperty<Real> & _axial_stress;
      35             :   const MaterialProperty<Real> & _e_over_l;
      36             : 
      37             : private:
      38             :   /// An integer corresponding to the direction this kernel acts in
      39             :   const unsigned int _component;
      40             : 
      41             :   /// Number of displacement variables
      42             :   const unsigned int _ndisp;
      43             : 
      44             :   /// Whether temperature is coupeld
      45             :   const bool _temp_coupled;
      46             : 
      47             :   const unsigned int _temp_var;
      48             : 
      49             :   /// Variable numbers of coupled displacement variables
      50             :   std::vector<unsigned int> _disp_var;
      51             : 
      52             :   const VariableValue & _area;
      53             :   const std::vector<RealGradient> * _orientation;
      54             : };

Generated by: LCOV version 1.14