www.mooseframework.org
NSMomentumInviscidFlux.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 NSMOMENTUMINVISCIDFLUX_H
8 #define NSMOMENTUMINVISCIDFLUX_H
9 
10 #include "NSKernel.h"
11 
12 // ForwardDeclarations
14 
15 template <>
16 InputParameters validParams<NSMomentumInviscidFlux>();
17 
23 {
24 public:
25  NSMomentumInviscidFlux(const InputParameters & parameters);
26 
27 protected:
28  virtual Real computeQpResidual();
29  virtual Real computeQpJacobian();
30  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
31 
32  // Coupled variables
33  const VariableValue & _pressure;
34 
35  // Parameters
36  const unsigned int _component;
37 
38 private:
39  // To be used from both the on and off-diagonal
40  // computeQpJacobian functions. Variable numbering
41  // should be in the canonical ordering regardless of
42  // Moose's numbering.
43  Real computeJacobianHelper(unsigned int m);
44 };
45 
46 #endif
InputParameters validParams< NSMomentumInviscidFlux >()
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
Definition: NSKernel.h:27
const VariableValue & _pressure
The inviscid flux (convective + pressure terms) for the momentum conservation equations.
NSMomentumInviscidFlux(const InputParameters &parameters)
const unsigned int _component
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Real computeJacobianHelper(unsigned int m)