www.mooseframework.org
Compute1DIncrementalStrain.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 
12 #include "libmesh/quadrature.h"
13 
16 {
18  params.addClassDescription("Compute strain increment for small strains in 1D problems.");
19 
20  return params;
21 }
22 
24  : ComputeIncrementalSmallStrain(parameters)
25 {
26 }
27 
28 void
30 {
31  // Deformation gradient calculation for 1D problems
33  (*_grad_disp[0])[_qp], (*_grad_disp[1])[_qp], (*_grad_disp[2])[_qp]);
34 
35  // Old Deformation gradient
37  (*_grad_disp_old[0])[_qp], (*_grad_disp_old[1])[_qp], (*_grad_disp_old[2])[_qp]);
38 
39  // Compute the displacement gradient dUy/dy and dUz/dz value for 1D problems
40  A(1, 1) = computeGradDispYY();
41  A(2, 2) = computeGradDispZZ();
42 
43  Fbar(1, 1) = computeGradDispYYOld();
44  Fbar(2, 2) = computeGradDispZZOld();
45 
46  // Gauss point deformation gradient
48  _deformation_gradient[_qp].addIa(1.0);
49 
50  A -= Fbar; // very nearly A = gradU - gradUold, adapted to cylindrical coords
51 
52  total_strain_increment = 0.5 * (A + A.transpose());
53 }
MaterialProperty< RankTwoTensor > & _deformation_gradient
virtual Real computeGradDispYYOld()=0
Computes the old dUy/dY; as a virtual function, this function is overwritten for the specific geometr...
virtual Real computeGradDispZZOld()=0
Computes the old dUz/dZ; as a virtual function, this function is overwritten for the specific geometr...
static RankTwoTensorTempl initializeFromRows(const libMesh::TypeVector< Real > &row0, const libMesh::TypeVector< Real > &row1, const libMesh::TypeVector< Real > &row2)
virtual Real computeGradDispZZ()=0
Computes the current dUz/dZ; as a virtual function, this function is overwritten for the specific geo...
Compute1DIncrementalStrain(const InputParameters &parameters)
void computeTotalStrainIncrement(RankTwoTensor &total_strain_increment) override
Computes the current and old deformation gradients with the assumptions for axisymmetric 1D problems...
static InputParameters validParams()
ComputeIncrementalSmallStrain defines a strain increment and rotation increment (=1), for small strains.
std::vector< const VariableGradient * > _grad_disp_old
void addClassDescription(const std::string &doc_string)
virtual Real computeGradDispYY()=0
Computes the current dUy/dY; as a virtual function, this function is overwritten for the specific geo...
std::vector< const VariableGradient * > _grad_disp
Gradient of displacements.