12#include "libmesh/quadrature.h"
19 "Compute a strain increment and rotation increment for finite strains in 2D geometries.");
21 MooseEnum outOfPlaneDirection(
"x y z",
"z");
23 "out_of_plane_direction", outOfPlaneDirection,
"The direction of the out-of-plane strain.");
29 _out_of_plane_direction(getParam<
MooseEnum>(
"out_of_plane_direction"))
36 for (
unsigned int i = 0; i < 3; ++i)
45 _disp[i] = &coupledValue(
"displacements", i);
46 _grad_disp[i] = &coupledGradient(
"displacements", i);
60 Real ave_dfgrd_det = 0.0;
62 for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
85 (*_def_grad_mid)[_qp].setToIdentity();
86 (*_def_grad_mid)[_qp] += 0.5 * (
A + Fbar);
98 _Fhat[_qp] =
A * Fbar.inverse();
99 _Fhat[_qp].addIa(1.0);
104 ave_Fhat +=
_Fhat[_qp] * _JxW[_qp] * _coord[_qp];
117 for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
122 _Fhat[_qp] *= std::cbrt(ave_Fhat.det() /
_Fhat[_qp].det());
135 mooseError(
"For 2D simulations where the out-of-plane direction is x or y the number of "
136 "supplied displacements must be three.");
138 mooseError(
"For 2D simulations where the out-of-plane direction is z the number of supplied "
139 "displacements must be two.");
void mooseError(Args &&... args)
void initialSetup() override
const unsigned int _out_of_plane_direction
static InputParameters validParams()
virtual void displacementIntegrityCheck() override
virtual void computeProperties() override
virtual Real computeOutOfPlaneGradDispOld()=0
Computes the old out-of-plane component of the displacement gradient; as a virtual function,...
virtual Real computeOutOfPlaneGradDisp()=0
Computes the current out-of-plane component of the displacement gradient; as a virtual function,...
Compute2DFiniteStrain(const InputParameters ¶meters)
ComputeFiniteStrain defines a strain increment and rotation increment, for finite strains.
static InputParameters validParams()
const bool _use_hw
Flag if using HughesWinget method.
virtual void computeQpStrain()
std::vector< RankTwoTensor > _Fhat
Incremental deformation gradient.
std::vector< const VariableGradient * > _grad_disp_old
MaterialProperty< RankTwoTensor > & _deformation_gradient
std::vector< const VariableGradient * > _grad_disp
Gradient of displacements.
std::vector< const VariableValue * > _disp
Displacement variables.
const Real & _current_elem_volume
unsigned int _ndisp
Coupled displacement variables.
const bool _volumetric_locking_correction
static RankTwoTensorTempl initializeFromRows(const libMesh::TypeVector< T > &row0, const libMesh::TypeVector< T > &row1, const libMesh::TypeVector< T > &row2)