www.mooseframework.org
NSSUPGBase.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "NSKernel.h"
13 
14 // Forward Declarations
15 class NSSUPGBase;
16 
17 template <>
18 InputParameters validParams<NSSUPGBase>();
19 
25 class NSSUPGBase : public NSKernel
26 {
27 public:
28  NSSUPGBase(const InputParameters & parameters);
29 
30 protected:
31  // Material properties
32  const MaterialProperty<RealTensorValue> & _viscous_stress_tensor;
33  const MaterialProperty<Real> & _dynamic_viscosity;
34  const MaterialProperty<Real> & _thermal_conductivity;
35 
36  // SUPG-related material properties.
37  const MaterialProperty<Real> & _hsupg;
38  const MaterialProperty<Real> & _tauc;
39  const MaterialProperty<Real> & _taum;
40  const MaterialProperty<Real> & _taue;
41  const MaterialProperty<std::vector<Real>> & _strong_residuals;
42 
43  // Momentum equation inviscid flux matrices
44  const MaterialProperty<std::vector<RealTensorValue>> & _calA;
45 
46  // "velocity column" matrices
47  const MaterialProperty<std::vector<RealTensorValue>> & _calC;
48 
49  // Energy equation inviscid flux matrices
50  const MaterialProperty<std::vector<std::vector<RealTensorValue>>> & _calE;
51 
52  // "Old" (from previous timestep) coupled variable values.
53  // const VariableValue & _rho_old;
54  // const VariableValue & _rho_u_old;
55  // const VariableValue & _rho_v_old;
56  // const VariableValue & _rho_w_old;
57  // const VariableValue & _rho_e_old;
58 
59  // The derivative of "udot" wrt u for each of the momentum variables.
60  // This is always 1/dt unless you are using BDF2...
61  const VariableValue & _d_rhodot_du;
62  const VariableValue & _d_rhoudot_du;
63  const VariableValue & _d_rhovdot_du;
64  const VariableValue & _d_rhowdot_du;
65  const VariableValue & _d_rhoEdot_du;
66 
67  // Temperature is need to compute speed of sound
68  const VariableValue & _temperature;
69 
70  // Enthalpy aux variable
71  const VariableValue & _enthalpy;
72 };
73 
NSSUPGBase::_temperature
const VariableValue & _temperature
Definition: NSSUPGBase.h:68
NSSUPGBase::_calE
const MaterialProperty< std::vector< std::vector< RealTensorValue > > > & _calE
Definition: NSSUPGBase.h:50
NSSUPGBase::_enthalpy
const VariableValue & _enthalpy
Definition: NSSUPGBase.h:71
NSSUPGBase::_taum
const MaterialProperty< Real > & _taum
Definition: NSSUPGBase.h:39
validParams< NSSUPGBase >
InputParameters validParams< NSSUPGBase >()
Definition: NSSUPGBase.C:19
NSSUPGBase::_calA
const MaterialProperty< std::vector< RealTensorValue > > & _calA
Definition: NSSUPGBase.h:44
NSSUPGBase
This class acts as a base class for stabilization kernels.
Definition: NSSUPGBase.h:25
NSSUPGBase::_d_rhoudot_du
const VariableValue & _d_rhoudot_du
Definition: NSSUPGBase.h:62
NSSUPGBase::_calC
const MaterialProperty< std::vector< RealTensorValue > > & _calC
Definition: NSSUPGBase.h:47
NSSUPGBase::_strong_residuals
const MaterialProperty< std::vector< Real > > & _strong_residuals
Definition: NSSUPGBase.h:41
NSSUPGBase::_viscous_stress_tensor
const MaterialProperty< RealTensorValue > & _viscous_stress_tensor
Definition: NSSUPGBase.h:32
NSSUPGBase::_d_rhodot_du
const VariableValue & _d_rhodot_du
Definition: NSSUPGBase.h:61
NSKernel
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
Definition: NSKernel.h:29
NSSUPGBase::_thermal_conductivity
const MaterialProperty< Real > & _thermal_conductivity
Definition: NSSUPGBase.h:34
NSSUPGBase::_d_rhoEdot_du
const VariableValue & _d_rhoEdot_du
Definition: NSSUPGBase.h:65
NSKernel.h
NSSUPGBase::_d_rhowdot_du
const VariableValue & _d_rhowdot_du
Definition: NSSUPGBase.h:64
NSSUPGBase::_hsupg
const MaterialProperty< Real > & _hsupg
Definition: NSSUPGBase.h:37
NSSUPGBase::NSSUPGBase
NSSUPGBase(const InputParameters &parameters)
Definition: NSSUPGBase.C:28
NSSUPGBase::_taue
const MaterialProperty< Real > & _taue
Definition: NSSUPGBase.h:40
NSSUPGBase::_tauc
const MaterialProperty< Real > & _tauc
Definition: NSSUPGBase.h:38
NSSUPGBase::_dynamic_viscosity
const MaterialProperty< Real > & _dynamic_viscosity
Definition: NSSUPGBase.h:33
NSSUPGBase::_d_rhovdot_du
const VariableValue & _d_rhovdot_du
Definition: NSSUPGBase.h:63