LCOV - code coverage report
Current view: top level - include/materials - ComputePlaneIncrementalStrain.h (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 2 2 100.0 %
Date: 2025-07-25 05:00:39 Functions: 1 1 100.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 "Compute2DIncrementalStrain.h"
      13             : #include "SubblockIndexProvider.h"
      14             : 
      15             : /**
      16             :  * ComputePlaneIncrementalStrain defines strain increment
      17             :  * for small strains in a 2D planar simulation.
      18             :  */
      19             : class ComputePlaneIncrementalStrain : public Compute2DIncrementalStrain
      20             : {
      21             : public:
      22             :   static InputParameters validParams();
      23             : 
      24             :   ComputePlaneIncrementalStrain(const InputParameters & parameters);
      25             : 
      26             : protected:
      27             :   virtual Real computeOutOfPlaneGradDisp() override;
      28             :   virtual Real computeOutOfPlaneGradDispOld() override;
      29             : 
      30             :   /// gets its subblock index for current element
      31       72448 :   unsigned int getCurrentSubblockIndex() const
      32             :   {
      33       72448 :     return _subblock_id_provider ? _subblock_id_provider->getSubblockIndex(*_current_elem) : 0;
      34             :   };
      35             : 
      36             :   /// A Userobject that carries the subblock ID for all elements
      37             :   const SubblockIndexProvider * const _subblock_id_provider;
      38             : 
      39             :   /// Whether out-of-plane strain scalar variables are coupled
      40             :   const bool _scalar_out_of_plane_strain_coupled;
      41             : 
      42             :   ///{@ Current and old values of the out-of-plane strain scalar variable
      43             :   std::vector<const VariableValue *> _scalar_out_of_plane_strain;
      44             :   std::vector<const VariableValue *> _scalar_out_of_plane_strain_old;
      45             :   ///@}
      46             : 
      47             :   /// Whether an out-of-plane strain variable is coupled
      48             :   const bool _out_of_plane_strain_coupled;
      49             : 
      50             :   ///{@ Current and old values of the out-of-plane strain variable
      51             :   const VariableValue & _out_of_plane_strain;
      52             :   const VariableValue & _out_of_plane_strain_old;
      53             :   ///@}
      54             : };

Generated by: LCOV version 1.14