www.mooseframework.org
NSMomentumInviscidFluxWithGradP.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 NSMOMENTUMINVISCIDFLUXWITHGRADP_H
8 #define NSMOMENTUMINVISCIDFLUXWITHGRADP_H
9 
10 #include "NSKernel.h"
11 #include "NSPressureDerivs.h"
12 
13 // ForwardDeclarations
15 
16 template <>
18 
20 {
21 public:
22  NSMomentumInviscidFluxWithGradP(const InputParameters & parameters);
23 
24 protected:
25  virtual Real computeQpResidual();
26  virtual Real computeQpJacobian();
27  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
28 
29  // Coupled gradients
30  const VariableGradient & _grad_p;
31 
32  // Parameters
33  const unsigned int _component;
34 
35 private:
36  // Computes the Jacobian contribution due to the pressure term,
37  // by summing over the appropriate Hessian row.
38  Real pressureQpJacobianHelper(unsigned var_number);
39 
40  // Single vector to refer to all gradients. We have to store
41  // pointers since you can't have a vector<Foo&>. Initialized in
42  // the ctor.
43  std::vector<const VariableGradient *> _gradU;
44 
45  // An object for computing pressure derivatives.
46  // Constructed via a reference to ourself
48 
49  // Declare ourselves friend to the helper class.
50  template <class U>
51  friend class NSPressureDerivs;
52 };
53 
54 #endif // NSMOMENTUMINVISCIDFLUXWITHGRADP_H
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
Definition: NSKernel.h:27
InputParameters validParams< NSMomentumInviscidFluxWithGradP >()
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
NSMomentumInviscidFluxWithGradP(const InputParameters &parameters)
std::vector< const VariableGradient * > _gradU
NSPressureDerivs< NSMomentumInviscidFluxWithGradP > _pressure_derivs