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 "ADCompute2DFiniteStrain.h" 13 : #include "SubblockIndexProvider.h" 14 : 15 : /** 16 : * ADComputePlaneFiniteStrain defines strain increment and rotation 17 : * increment for finite strain under 2D planar assumptions. 18 : */ 19 : class ADComputePlaneFiniteStrain : public ADCompute2DFiniteStrain 20 : { 21 : public: 22 : static InputParameters validParams(); 23 : 24 : ADComputePlaneFiniteStrain(const InputParameters & parameters); 25 : 26 : protected: 27 : virtual ADReal computeOutOfPlaneGradDisp() override; 28 : virtual Real computeOutOfPlaneGradDispOld() override; 29 : 30 : /// gets its subblock index for current element 31 0 : unsigned int getCurrentSubblockIndex() const 32 : { 33 0 : 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 ADVariableValue *> _scalar_out_of_plane_strain; 44 : std::vector<const VariableValue *> _scalar_out_of_plane_strain_old; 45 : ///@} 46 : 47 : /// Whether out-of-plane strain variables are coupled 48 : const bool _out_of_plane_strain_coupled; 49 : 50 : ///{@ Current and old values of the out-of-plane strain variable 51 : const ADVariableValue & _out_of_plane_strain; 52 : const VariableValue & _out_of_plane_strain_old; 53 : ///@} 54 : };