www.mooseframework.org
ComputePlaneIncrementalStrain.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<Compute2DIncrementalStrain>();
14  params.addClassDescription(
15  "Compute strain increment for small strain under 2D planar assumptions.");
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 
24  : Compute2DIncrementalStrain(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  _scalar_out_of_plane_strain_old(_scalar_out_of_plane_strain_coupled
30  ? coupledScalarValueOld("scalar_out_of_plane_strain")
31  : _zero),
32  _out_of_plane_strain_coupled(isCoupled("out_of_plane_strain")),
33  _out_of_plane_strain(_out_of_plane_strain_coupled ? coupledValue("out_of_plane_strain")
34  : _zero),
35  _out_of_plane_strain_old(_out_of_plane_strain_coupled ? coupledValueOld("out_of_plane_strain")
36  : _zero)
37 {
39  mooseError("Must define only one of out_of_plane_strain or scalar_out_of_plane_strain");
40 }
41 
42 Real
44 {
47  else
48  return _out_of_plane_strain[_qp];
49 }
50 
51 Real
53 {
56  else
57  return _out_of_plane_strain_old[_qp];
58 }
InputParameters validParams< Compute2DIncrementalStrain >()
virtual Real computeGradDispZZ()
Computes the current out-of-plane displacement gradient; as a virtual function, this function is over...
virtual Real computeGradDispZZOld()
Computes the old out-of-plane displacement gradient; as a virtual function, this function is overwrit...
Compute2DIncrementalStrain defines a strain increment only for incremental strains in 2D geometries...
ComputePlaneIncrementalStrain(const InputParameters &parameters)
InputParameters validParams< ComputePlaneIncrementalStrain >()
const VariableValue & _scalar_out_of_plane_strain_old