www.mooseframework.org
ComputePlaneSmallStrain.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<Compute2DSmallStrain>();
14  params.addClassDescription("Compute a small strain under generalized plane strain assumptions "
15  "where the out of plane strain is generally nonzero.");
16  params.addCoupledVar("scalar_out_of_plane_strain",
17  "Scalar variable for generalized plane strain");
18  params.addCoupledVar("out_of_plane_strain", "Nonlinear variable for plane stress condition");
19 
20  return params;
21 }
22 
23 ComputePlaneSmallStrain::ComputePlaneSmallStrain(const InputParameters & parameters)
24  : Compute2DSmallStrain(parameters),
25  _scalar_out_of_plane_strain_coupled(isCoupledScalar("scalar_out_of_plane_strain")),
26  _scalar_out_of_plane_strain(_scalar_out_of_plane_strain_coupled
27  ? coupledScalarValue("scalar_out_of_plane_strain")
28  : _zero),
29  _out_of_plane_strain_coupled(isCoupled("out_of_plane_strain")),
30  _out_of_plane_strain(_out_of_plane_strain_coupled ? coupledValue("out_of_plane_strain") : _zero)
31 {
33  mooseError("Must define only one of out_of_plane_strain or scalar_out_of_plane_strain");
34 }
35 
36 Real
38 {
41  else
42  return _out_of_plane_strain[_qp];
43 }
ComputePlaneSmallStrain(const InputParameters &parameters)
Compute2DSmallStrain defines a strain tensor, assuming small strains, in 2D geometries / simulations...
const VariableValue & _out_of_plane_strain
InputParameters validParams< Compute2DSmallStrain >()
const VariableValue & _scalar_out_of_plane_strain
InputParameters validParams< ComputePlaneSmallStrain >()