https://mooseframework.inl.gov
ComputeLagrangianWPSStrain.C
Go to the documentation of this file.
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 
11 
13 
16 {
18  params.addRequiredCoupledVar("out_of_plane_strain", "The out-of-plane strain");
19  return params;
20 }
21 
23  : ComputeLagrangianStrain(params), _out_of_plane_strain(coupledValue("out_of_plane_strain"))
24 {
25 }
26 
27 void
29 {
31 
32  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
33  _F[_qp](2, 2) += _out_of_plane_strain[_qp];
34 }
MaterialProperty< RankTwoTensor > & _F
const QBase *const & _qrule
virtual void computeDeformationGradient() override
Calculate the unstabilized and optionally the stabilized deformation gradients.
ComputeLagrangianWPSStrain(const InputParameters &params)
const VariableValue & _out_of_plane_strain
virtual void computeDeformationGradient()
Calculate the unstabilized and optionally the stabilized deformation gradients.
unsigned int _qp
registerMooseObject("SolidMechanicsApp", ComputeLagrangianWPSStrain)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
Calculate strains to use the MOOSE materials with the Lagrangian kernels.
static InputParameters validParams()
static InputParameters validParams()