www.mooseframework.org
Functions
Gravity.C File Reference

Go to the source code of this file.

Functions

template<>
InputParameters validParams< Gravity > ()
 

Function Documentation

template<>
InputParameters validParams< Gravity > ( )

Definition at line 12 of file Gravity.C.

13 {
14  InputParameters params = validParams<Kernel>();
15  params.addClassDescription("Apply gravity. Value is in units of acceleration.");
16  params.addParam<bool>("use_displaced_mesh", true, "Displaced mesh defaults to true");
17  params.set<Real>("value") = 0.0;
18  // A ConstantFunction of "1" is supplied as the default
19  params.addParam<FunctionName>(
20  "function", "1", "A function that describes the gravitational force");
21  params.addParam<Real>("alpha", 0.0, "alpha parameter required for HHT time integration scheme");
22  return params;
23 }