https://mooseframework.inl.gov
TotalLagrangianWeakPlaneStress.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.addClassDescription("Plane stress kernel to provide out-of-plane strain contribution.");
19  params.set<unsigned int>("component") = 0;
20  params.suppressParameter<unsigned int>("component");
21  params.suppressParameter<std::vector<VariableName>>("temperature");
22  params.suppressParameter<std::vector<MaterialPropertyName>>("eigenstrain_names");
23  params.suppressParameter<std::vector<VariableName>>("out_of_plane_strain");
24  return params;
25 }
26 
29 {
30 }
31 
32 Real
34 {
35  return _test[_i][_qp] * _pk1[_qp](2, 2);
36 }
37 
38 Real
40 {
41  return _test[_i][_qp] * _dpk1[_qp](2, 2, 2, 2) * _phi[_j][_qp];
42 }
43 
44 Real
46 {
47  for (auto beta : make_range(_ndisp))
48  if (jvar == _disp_nums[beta])
49  return _test[_i][_qp] * _dpk1[_qp].contractionIj(2, 2, gradTrial(beta));
50 
51  return 0;
52 }
const MaterialProperty< RankTwoTensor > & _pk1
The 1st Piola-Kirchhoff stress.
static InputParameters validParams()
T & set(const std::string &name, bool quiet_mode=false)
TotalLagrangianWeakPlaneStress(const InputParameters &parameters)
void suppressParameter(const std::string &name)
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
std::vector< unsigned int > _disp_nums
The displacement numbers.
const MaterialProperty< RankFourTensor > & _dpk1
The derivative of the PK1 stress with respect to the deformation gradient.
const unsigned int _ndisp
Total number of displacements/size of residual vector.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Enforce equilibrium with a total Lagrangian formulation.
registerMooseObject("SolidMechanicsApp", TotalLagrangianWeakPlaneStress)
IntRange< T > make_range(T beg, T end)
void addClassDescription(const std::string &doc_string)
virtual RankTwoTensor gradTrial(unsigned int component) override