www.mooseframework.org
NSGravityPower.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 NSGRAVITYPOWER_H
8 #define NSGRAVITYPOWER_H
9 
10 #include "Kernel.h"
11 
12 // Forward Declarations
13 class NSGravityPower;
14 
15 template <>
16 InputParameters validParams<NSGravityPower>();
17 
18 class NSGravityPower : public Kernel
19 {
20 public:
21  NSGravityPower(const InputParameters & parameters);
22 
23 protected:
24  virtual Real computeQpResidual();
25  virtual Real computeQpJacobian();
26  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
27 
28  unsigned int _momentum_var;
29  const VariableValue & _momentum;
30 
31  const Real _acceleration;
32 };
33 
34 #endif // NSGRAVITYPOWER_H
InputParameters validParams< NSGravityPower >()
virtual Real computeQpResidual()
const Real _acceleration
unsigned int _momentum_var
NSGravityPower(const InputParameters &parameters)
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
virtual Real computeQpJacobian()
const VariableValue & _momentum