https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
27void
29{
31
32 // Add the out-of-plane strain to BOTH the stabilized `_F` and the unstabilized
33 // `_F_ust` AFTER F-bar has run. F-bar's partials (`_d_F_stab_d_F_*`) therefore do
34 // NOT see this contribution -- strain_zz bypasses F-bar's non-local chain. The WPS
35 // kernel and the TL kernel's `computeQpJacobianOutOfPlaneStrain` use the
36 // "no-F-bar" pk1_jacobian variant to handle strain_zz perturbations correctly.
37 for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
38 {
39 _F[_qp](2, 2) += _out_of_plane_strain[_qp];
41 }
42}
registerMooseObject("SolidMechanicsApp", ComputeLagrangianWPSStrain)
Calculate strains to use the MOOSE materials with the Lagrangian kernels.
static InputParameters validParams()
MaterialProperty< RankTwoTensor > & _F_ust
The unstabilized (alpha-weighted) deformation gradient.
virtual void computeDeformationGradient()
Calculate the unstabilized and optionally the stabilized deformation gradients.
MaterialProperty< RankTwoTensor > & _F
static InputParameters validParams()
virtual void computeDeformationGradient() override
Calculate the unstabilized and optionally the stabilized deformation gradients.
ComputeLagrangianWPSStrain(const InputParameters &params)
const VariableValue & _out_of_plane_strain
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
unsigned int _qp
const QBase *const & _qrule