www.mooseframework.org
NSSUPGEnergy.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 NSSUPGENERGY_H
8 #define NSSUPGENERGY_H
9 
10 #include "NSSUPGBase.h"
11 
12 // Forward Declarations
13 class NSSUPGEnergy;
14 
15 template <>
16 InputParameters validParams<NSSUPGEnergy>();
17 
22 class NSSUPGEnergy : public NSSUPGBase
23 {
24 public:
25  NSSUPGEnergy(const InputParameters & parameters);
26 
27 protected:
28  virtual Real computeQpResidual();
29  virtual Real computeQpJacobian();
30  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
31 
32 private:
33  // Single function for computing on and off-diagonal Jacobian
34  // entries in a single function. The input index is in Moose
35  // variable numbering.
36  Real computeJacobianHelper(unsigned var);
37 };
38 
39 #endif // NSSUPGENERGY_H
NSSUPGEnergy(const InputParameters &parameters)
Definition: NSSUPGEnergy.C:22
Real computeJacobianHelper(unsigned var)
Definition: NSSUPGEnergy.C:85
virtual Real computeQpJacobian()
Definition: NSSUPGEnergy.C:72
virtual Real computeQpResidual()
Definition: NSSUPGEnergy.C:25
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: NSSUPGEnergy.C:79
Compute residual and Jacobian terms form the SUPG terms in the energy equation.
Definition: NSSUPGEnergy.h:22
This class acts as a base class for stabilization kernels.
Definition: NSSUPGBase.h:23
InputParameters validParams< NSSUPGEnergy >()
Definition: NSSUPGEnergy.C:14