LCOV - code coverage report
Current view: top level - include/materials - ADComputePlaneSmallStrain.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 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 "ADCompute2DSmallStrain.h"
      13             : #include "SubblockIndexProvider.h"
      14             : 
      15             : /**
      16             :  * ADComputePlaneSmallStrain defines small strains under generalized
      17             :  * plane strain and plane stress assumptions, where the out of plane strain
      18             :  * can be uniformly or non-uniformly zero or nonzero.
      19             :  */
      20             : class ADComputePlaneSmallStrain : public ADCompute2DSmallStrain
      21             : {
      22             : public:
      23             :   static InputParameters validParams();
      24             : 
      25             :   ADComputePlaneSmallStrain(const InputParameters & parameters);
      26             : 
      27             : protected:
      28             :   /// calculates and returns the out-of-plane strain for the current quadrature point
      29             :   virtual ADReal computeOutOfPlaneStrain();
      30             : 
      31             :   /// gets its subblock index for current element
      32           0 :   unsigned int getCurrentSubblockIndex() const
      33             :   {
      34           0 :     return _subblock_id_provider ? _subblock_id_provider->getSubblockIndex(*_current_elem) : 0;
      35             :   };
      36             : 
      37             :   /// A Userobject that carries the subblock ID for all elements
      38             :   const SubblockIndexProvider * const _subblock_id_provider;
      39             : 
      40             : private:
      41             :   /// Whether out-of-plane strain scalar variables are coupled
      42             :   const bool _scalar_out_of_plane_strain_coupled;
      43             : 
      44             :   /// Whether an out-of-plane strain variable is coupled
      45             :   const bool _out_of_plane_strain_coupled;
      46             : 
      47             :   /// The out-of-plane strain variable
      48             :   const ADVariableValue & _out_of_plane_strain;
      49             : 
      50             :   /// The out-of-plane strain scalar variables
      51             :   std::vector<const ADVariableValue *> _scalar_out_of_plane_strain;
      52             : };

Generated by: LCOV version 1.14