www.mooseframework.org
DynamicTensorMechanicsAction.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 #include "Factory.h"
9 #include "FEProblem.h"
10 #include "Parser.h"
11 
12 template <>
13 InputParameters
15 {
16  InputParameters params = validParams<TensorMechanicsAction>();
17  params.addClassDescription("Set up dynamic stress divergence kernels");
18  params.addParam<MaterialPropertyName>("zeta",
19  0.0,
20  "Name of material property or a constant real "
21  "number defining the zeta parameter for the "
22  "Rayleigh damping.");
23  params.addParam<Real>("alpha", 0, "alpha parameter for HHT time integration");
24  params.addParam<bool>("static_initialization",
25  false,
26  "Set to true get the system to "
27  "equillibrium under gravity by running a "
28  "quasi-static analysis (by solving Ku = F) "
29  "in the first time step.");
30  return params;
31 }
32 
34  : TensorMechanicsAction(params)
35 {
36 }
37 
38 std::string
40 {
41  // choose kernel type based on coordinate system
42  if (_coord_system == Moose::COORD_XYZ)
43  return "DynamicStressDivergenceTensors";
44  else
45  mooseError("Unsupported coordinate system");
46 }
DynamicTensorMechanicsAction(const InputParameters &params)
InputParameters validParams< DynamicTensorMechanicsAction >()
InputParameters validParams< TensorMechanicsAction >()
Moose::CoordinateSystemType _coord_system