www.mooseframework.org
ComputeIncrementalSmallStrain.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
11 #include "Assembly.h"
12 #include "libmesh/quadrature.h"
13 
15 
18 {
20  params.addClassDescription(
21  "Compute a strain increment and rotation increment for small strains.");
22  return params;
23 }
24 
26  : ComputeIncrementalStrainBase(parameters)
27 {
28 }
29 
30 void
32 {
33  Real volumetric_strain = 0.0;
34  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
35  {
36  RankTwoTensor total_strain_increment;
37  computeTotalStrainIncrement(total_strain_increment);
38 
39  _strain_increment[_qp] = total_strain_increment;
40 
42  volumetric_strain += total_strain_increment.trace() * _JxW[_qp] * _coord[_qp];
43  }
45  volumetric_strain /= _current_elem_volume;
46 
47  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
48  {
49  Real trace = _strain_increment[_qp].trace();
51  {
52  _strain_increment[_qp](0, 0) += (volumetric_strain - trace) / 3.0;
53  _strain_increment[_qp](1, 1) += (volumetric_strain - trace) / 3.0;
54  _strain_increment[_qp](2, 2) += (volumetric_strain - trace) / 3.0;
55  }
56 
58 
59  // Remove the Eigen strain increment
61 
62  // strain rate
63  if (_dt > 0)
65  else
66  _strain_rate[_qp].zero();
67 
68  // Update strain in intermediate configuration: rotations are not needed
70 
71  // incremental small strain does not include rotation
72  _rotation_increment[_qp].setToIdentity();
73  }
74 }
75 
76 void
78 {
79  // Deformation gradient
81  (*_grad_disp[0])[_qp], (*_grad_disp[1])[_qp], (*_grad_disp[2])[_qp]);
82 
83  // Old Deformation gradient
85  (*_grad_disp_old[0])[_qp], (*_grad_disp_old[1])[_qp], (*_grad_disp_old[2])[_qp]);
86 
88  _deformation_gradient[_qp].addIa(1.0);
89 
90  A -= Fbar; // A = grad_disp - grad_disp_old
91 
92  total_strain_increment = 0.5 * (A + A.transpose());
93 }
const Real & _current_elem_volume
const MaterialProperty< RankTwoTensor > & _total_strain_old
MaterialProperty< RankTwoTensor > & _deformation_gradient
const MooseArray< Real > & _JxW
MaterialProperty< RankTwoTensor > & _strain_increment
static RankTwoTensorTempl initializeFromRows(const libMesh::TypeVector< Real > &row0, const libMesh::TypeVector< Real > &row1, const libMesh::TypeVector< Real > &row2)
registerMooseObject("SolidMechanicsApp", ComputeIncrementalSmallStrain)
MaterialProperty< RankTwoTensor > & _mechanical_strain
virtual void computeTotalStrainIncrement(RankTwoTensor &total_strain_increment)
Computes the current and old deformation gradients and passes back the total strain increment tensor...
MaterialProperty< RankTwoTensor > & _strain_rate
void subtractEigenstrainIncrementFromStrain(RankTwoTensor &strain)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ComputeIncrementalSmallStrain defines a strain increment and rotation increment (=1), for small strains.
const MaterialProperty< RankTwoTensor > & _mechanical_strain_old
std::vector< const VariableGradient * > _grad_disp_old
void addClassDescription(const std::string &doc_string)
ComputeIncrementalStrainBase is the base class for strain tensors using incremental formulations...
const bool _volumetric_locking_correction
MaterialProperty< RankTwoTensor > & _rotation_increment
const MooseArray< Real > & _coord
ComputeIncrementalSmallStrain(const InputParameters &parameters)
MaterialProperty< RankTwoTensor > & _total_strain
std::vector< const VariableGradient * > _grad_disp
Gradient of displacements.