www.mooseframework.org
Gravity.h
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 #ifndef GRAVITY_H
8 #define GRAVITY_H
9 
10 #include "Kernel.h"
11 
12 class Function;
13 class Gravity;
14 
15 template <>
16 InputParameters validParams<Gravity>();
17 
22 class Gravity : public Kernel
23 {
24 public:
25  Gravity(const InputParameters & parameters);
26 
27  virtual ~Gravity() {}
28 
29 protected:
30  virtual Real computeQpResidual();
31 
32  const MaterialProperty<Real> & _density;
33 
34  Real _value;
35  Function & _function;
36  // _alpha parameter for HHT time integration scheme
37  const Real _alpha;
38 };
39 
40 #endif // GRAVITY_H
Real _value
Definition: Gravity.h:34
Function & _function
Definition: Gravity.h:35
Gravity(const InputParameters &parameters)
Definition: Gravity.C:25
InputParameters validParams< Gravity >()
Definition: Gravity.C:12
Gravity computes the body force (force/volume) given the acceleration of gravity (value) and the dens...
Definition: Gravity.h:22
const MaterialProperty< Real > & _density
Definition: Gravity.h:32
const Real _alpha
Definition: Gravity.h:37
virtual Real computeQpResidual()
Definition: Gravity.C:35
virtual ~Gravity()
Definition: Gravity.h:27