www.mooseframework.org
InertialForce.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 INERTIALFORCE_H
8 #define INERTIALFORCE_H
9 
10 #include "Kernel.h"
11 #include "Material.h"
12 
13 // Forward Declarations
14 class InertialForce;
15 
16 template <>
17 InputParameters validParams<InertialForce>();
18 
19 class InertialForce : public Kernel
20 {
21 public:
22  InertialForce(const InputParameters & parameters);
23 
24 protected:
25  virtual Real computeQpResidual();
26 
27  virtual Real computeQpJacobian();
28 
29 private:
30  const MaterialProperty<Real> & _density;
31  const VariableValue & _u_old;
32  const VariableValue & _vel_old;
33  const VariableValue & _accel_old;
34  const Real _beta;
35  const Real _gamma;
36  const MaterialProperty<Real> & _eta;
37  const Real _alpha;
38 };
39 
40 #endif // INERTIALFORCE_H
const VariableValue & _u_old
Definition: InertialForce.h:31
const VariableValue & _vel_old
Definition: InertialForce.h:32
virtual Real computeQpJacobian()
Definition: InertialForce.C:66
const VariableValue & _accel_old
Definition: InertialForce.h:33
const Real _beta
Definition: InertialForce.h:34
InertialForce(const InputParameters &parameters)
Definition: InertialForce.C:37
const MaterialProperty< Real > & _density
Definition: InertialForce.h:30
const MaterialProperty< Real > & _eta
Definition: InertialForce.h:36
const Real _gamma
Definition: InertialForce.h:35
virtual Real computeQpResidual()
Definition: InertialForce.C:51
InputParameters validParams< InertialForce >()
Definition: InertialForce.C:12
const Real _alpha
Definition: InertialForce.h:37