www.mooseframework.org
ComputeAxisymmetricRZSmallStrain.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 /****************************************************************/
7 
9 #include "FEProblem.h"
10 #include "MooseMesh.h"
11 
12 template <>
13 InputParameters
15 {
16  InputParameters params = validParams<Compute2DSmallStrain>();
17  params.addClassDescription("Compute a small strain in an Axisymmetric geometry");
18  return params;
19 }
20 
22  const InputParameters & parameters)
23  : Compute2DSmallStrain(parameters)
24 {
25 }
26 
27 void
29 {
30  if (getBlockCoordSystem() != Moose::COORD_RZ)
31  mooseError("The coordinate system must be set to RZ for Axisymmetric geometries.");
32 }
33 
34 Real
36 {
37  if (!MooseUtils::absoluteFuzzyEqual(_q_point[_qp](0), 0.0))
38  return (*_disp[0])[_qp] / _q_point[_qp](0);
39  else
40  return 0.0;
41 }
std::vector< const VariableValue * > _disp
InputParameters validParams< ComputeAxisymmetricRZSmallStrain >()
Compute2DSmallStrain defines a strain tensor, assuming small strains, in 2D geometries / simulations...
InputParameters validParams< Compute2DSmallStrain >()
ComputeAxisymmetricRZSmallStrain(const InputParameters &parameters)