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 "ComputeIncrementalStrainBase.h" 13 : #include "FactorizedRankTwoTensor.h" 14 : 15 : /** 16 : * ComputeFiniteStrain defines a strain increment and rotation increment, for finite strains. 17 : */ 18 : class ComputeFiniteStrain : public ComputeIncrementalStrainBase 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : ComputeFiniteStrain(const InputParameters & parameters); 24 : 25 : void computeProperties() override; 26 : 27 111601 : CreateMooseEnumClass(DecompMethod, TaylorExpansion, EigenSolution, HughesWinget); 28 : static MooseEnum decompositionType(); 29 : 30 : protected: 31 : virtual void computeQpStrain(); 32 : virtual void computeQpIncrements(RankTwoTensor & e, RankTwoTensor & r); 33 : 34 : /// Incremental deformation gradient 35 : std::vector<RankTwoTensor> _Fhat; 36 : 37 : /// Method for determining rotation and strain increments 38 : const DecompMethod _decomposition_method; 39 : 40 : /// Flag if using HughesWinget method 41 : const bool _use_hw; 42 : 43 : /// For HughesWinget kinematics 44 : MaterialProperty<RankTwoTensor> * _def_grad_mid; 45 : MaterialProperty<RankTwoTensor> * _f_bar; 46 : };