www.mooseframework.org
NSKernel.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 NSKERNEL_H
8 #define NSKERNEL_H
9 
10 #include "Kernel.h"
11 
12 // Forward Declarations
13 class NSKernel;
15 
16 template <>
17 InputParameters validParams<NSKernel>();
18 
27 class NSKernel : public Kernel
28 {
29 public:
30  NSKernel(const InputParameters & parameters);
31 
32 protected:
33  // Coupled variables
34  const VariableValue & _u_vel;
35  const VariableValue & _v_vel;
36  const VariableValue & _w_vel;
37 
38  const VariableValue & _rho;
39  const VariableValue & _rho_u;
40  const VariableValue & _rho_v;
41  const VariableValue & _rho_w;
42  const VariableValue & _rho_E;
43 
44  // Gradients
45  const VariableGradient & _grad_rho;
46  const VariableGradient & _grad_rho_u;
47  const VariableGradient & _grad_rho_v;
48  const VariableGradient & _grad_rho_w;
49  const VariableGradient & _grad_rho_E;
50 
51  // Variable numberings
52  unsigned _rho_var_number;
53  unsigned _rhou_var_number;
54  unsigned _rhov_var_number;
55  unsigned _rhow_var_number;
56  unsigned _rhoE_var_number;
57 
58  // Integrated BC can use Mat. properties...
59  const MaterialProperty<Real> & _dynamic_viscosity;
60  const MaterialProperty<RealTensorValue> & _viscous_stress_tensor; // Includes _dynamic_viscosity
61 
62  // Fluid properties
64 
69  bool isNSVariable(unsigned var);
70  unsigned mapVarNumber(unsigned var);
71 };
72 
73 #endif // NSKERNEL_H
const VariableValue & _rho_u
Definition: NSKernel.h:39
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
Definition: NSKernel.h:27
const IdealGasFluidProperties & _fp
Definition: NSKernel.h:63
const VariableValue & _w_vel
Definition: NSKernel.h:36
const VariableValue & _rho
Definition: NSKernel.h:38
const VariableGradient & _grad_rho_w
Definition: NSKernel.h:48
const MaterialProperty< Real > & _dynamic_viscosity
Definition: NSKernel.h:59
const VariableValue & _rho_E
Definition: NSKernel.h:42
unsigned _rhov_var_number
Definition: NSKernel.h:54
unsigned _rho_var_number
Definition: NSKernel.h:52
const VariableValue & _rho_v
Definition: NSKernel.h:40
InputParameters validParams< NSKernel >()
Definition: NSKernel.C:20
const VariableGradient & _grad_rho
Definition: NSKernel.h:45
unsigned _rhow_var_number
Definition: NSKernel.h:55
bool isNSVariable(unsigned var)
Helper functions for mapping Moose variable numberings into the "canonical" numbering for the compres...
Definition: NSKernel.C:76
const VariableGradient & _grad_rho_u
Definition: NSKernel.h:46
const MaterialProperty< RealTensorValue > & _viscous_stress_tensor
Definition: NSKernel.h:60
unsigned _rhoE_var_number
Definition: NSKernel.h:56
const VariableGradient & _grad_rho_v
Definition: NSKernel.h:47
const VariableValue & _u_vel
Definition: NSKernel.h:34
const VariableValue & _v_vel
Definition: NSKernel.h:35
const VariableGradient & _grad_rho_E
Definition: NSKernel.h:49
const VariableValue & _rho_w
Definition: NSKernel.h:41
Ideal gas fluid properties.
NSKernel(const InputParameters &parameters)
Definition: NSKernel.C:39
unsigned mapVarNumber(unsigned var)
Definition: NSKernel.C:86
unsigned _rhou_var_number
Definition: NSKernel.h:53