www.mooseframework.org
NSSUPGMomentum.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 NSSUPGMOMENTUM_H
8 #define NSSUPGMOMENTUM_H
9 
10 #include "NSSUPGBase.h"
11 
12 // Forward Declarations
13 class NSSUPGMomentum;
14 
15 template <>
16 InputParameters validParams<NSSUPGMomentum>();
17 
22 class NSSUPGMomentum : public NSSUPGBase
23 {
24 public:
25  NSSUPGMomentum(const InputParameters & parameters);
26 
27 protected:
28  virtual Real computeQpResidual();
29  virtual Real computeQpJacobian();
30  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
31 
32  // This kernel is to be used for the x, y, and z momentum equations.
33  // The _component parameter tells you which equation you are currently
34  // solving.
35  unsigned int _component;
36 
37 private:
38  // Single function for computing on and off-diagonal Jacobian
39  // entries in a single function. The input index is in Moose
40  // variable numbering.
41  Real computeJacobianHelper(unsigned int var);
42 };
43 
44 #endif // NSSUPGMOMENTUM_H
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
virtual Real computeQpJacobian()
InputParameters validParams< NSSUPGMomentum >()
NSSUPGMomentum(const InputParameters &parameters)
Compute residual and Jacobian terms form the SUPG terms in the momentum equation. ...
Real computeJacobianHelper(unsigned int var)
virtual Real computeQpResidual()
unsigned int _component
This class acts as a base class for stabilization kernels.
Definition: NSSUPGBase.h:23