This class couples together all the variables for the compressible Navier-Stokes equations to allow them to be used in derived Kernel classes. More...
#include <NSKernel.h>
Public Member Functions | |
NSKernel (const InputParameters ¶meters) | |
Protected Member Functions | |
bool | isNSVariable (unsigned var) |
Helper functions for mapping Moose variable numberings into the "canonical" numbering for the compressible NS equations. More... | |
unsigned | mapVarNumber (unsigned var) |
Protected Attributes | |
const VariableValue & | _u_vel |
const VariableValue & | _v_vel |
const VariableValue & | _w_vel |
const VariableValue & | _rho |
const VariableValue & | _rho_u |
const VariableValue & | _rho_v |
const VariableValue & | _rho_w |
const VariableValue & | _rho_E |
const VariableGradient & | _grad_rho |
const VariableGradient & | _grad_rho_u |
const VariableGradient & | _grad_rho_v |
const VariableGradient & | _grad_rho_w |
const VariableGradient & | _grad_rho_E |
unsigned | _rho_var_number |
unsigned | _rhou_var_number |
unsigned | _rhov_var_number |
unsigned | _rhow_var_number |
unsigned | _rhoE_var_number |
const MaterialProperty< Real > & | _dynamic_viscosity |
const MaterialProperty< RealTensorValue > & | _viscous_stress_tensor |
const IdealGasFluidProperties & | _fp |
This class couples together all the variables for the compressible Navier-Stokes equations to allow them to be used in derived Kernel classes.
This prevents duplication of lines of code between e.g. the momentum and energy equations, since they have a lot in common.
Definition at line 29 of file NSKernel.h.
NSKernel::NSKernel | ( | const InputParameters & | parameters | ) |
Definition at line 41 of file NSKernel.C.
|
protected |
Helper functions for mapping Moose variable numberings into the "canonical" numbering for the compressible NS equations.
Definition at line 78 of file NSKernel.C.
Referenced by NSSUPGEnergy::computeJacobianHelper(), NSSUPGMass::computeJacobianHelper(), NSSUPGMomentum::computeJacobianHelper(), NSMassInviscidFlux::computeQpOffDiagJacobian(), NSEnergyInviscidFlux::computeQpOffDiagJacobian(), NSMomentumInviscidFluxWithGradP::computeQpOffDiagJacobian(), NSMomentumInviscidFlux::computeQpOffDiagJacobian(), NSEnergyViscousFlux::computeQpOffDiagJacobian(), NSMomentumViscousFlux::computeQpOffDiagJacobian(), and NSEnergyThermalFlux::computeQpOffDiagJacobian().
|
protected |
Definition at line 88 of file NSKernel.C.
Referenced by NSSUPGEnergy::computeJacobianHelper(), NSSUPGMass::computeJacobianHelper(), NSSUPGMomentum::computeJacobianHelper(), NSMassInviscidFlux::computeQpOffDiagJacobian(), NSMomentumInviscidFluxWithGradP::computeQpOffDiagJacobian(), NSMomentumInviscidFlux::computeQpOffDiagJacobian(), NSEnergyViscousFlux::computeQpOffDiagJacobian(), NSMomentumViscousFlux::computeQpOffDiagJacobian(), and NSEnergyThermalFlux::computeQpOffDiagJacobian().
|
protected |
Definition at line 61 of file NSKernel.h.
|
protected |
Definition at line 65 of file NSKernel.h.
Referenced by NSSUPGEnergy::computeJacobianHelper(), NSSUPGMomentum::computeJacobianHelper(), NSMomentumInviscidFlux::computeJacobianHelper(), NSEnergyInviscidFlux::computeQpJacobian(), NSEnergyInviscidFlux::computeQpOffDiagJacobian(), NSSUPGMomentum::computeQpResidual(), and NSSUPGEnergy::computeQpResidual().
|
protected |
Definition at line 47 of file NSKernel.h.
Referenced by NSEnergyThermalFlux::NSEnergyThermalFlux(), and NSMomentumInviscidFluxWithGradP::NSMomentumInviscidFluxWithGradP().
|
protected |
Definition at line 51 of file NSKernel.h.
Referenced by NSEnergyThermalFlux::NSEnergyThermalFlux(), and NSMomentumInviscidFluxWithGradP::NSMomentumInviscidFluxWithGradP().
|
protected |
Definition at line 48 of file NSKernel.h.
Referenced by NSEnergyThermalFlux::NSEnergyThermalFlux(), and NSMomentumInviscidFluxWithGradP::NSMomentumInviscidFluxWithGradP().
|
protected |
Definition at line 49 of file NSKernel.h.
Referenced by NSEnergyThermalFlux::NSEnergyThermalFlux(), and NSMomentumInviscidFluxWithGradP::NSMomentumInviscidFluxWithGradP().
|
protected |
Definition at line 50 of file NSKernel.h.
Referenced by NSEnergyThermalFlux::NSEnergyThermalFlux(), and NSMomentumInviscidFluxWithGradP::NSMomentumInviscidFluxWithGradP().
|
protected |
Definition at line 40 of file NSKernel.h.
Referenced by NSEnergyViscousFlux::computeQpOffDiagJacobian(), NSGravityForce::computeQpResidual(), and NSEnergyInviscidFlux::computeQpResidual().
|
protected |
Definition at line 44 of file NSKernel.h.
|
protected |
Definition at line 41 of file NSKernel.h.
Referenced by NSEnergyViscousFlux::computeQpOffDiagJacobian(), and NSMassInviscidFlux::computeQpResidual().
|
protected |
Definition at line 42 of file NSKernel.h.
Referenced by NSEnergyViscousFlux::computeQpOffDiagJacobian(), and NSMassInviscidFlux::computeQpResidual().
|
protected |
Definition at line 54 of file NSKernel.h.
Referenced by NSSUPGMass::computeQpJacobian(), NSGravityForce::computeQpOffDiagJacobian(), NSEnergyInviscidFlux::computeQpOffDiagJacobian(), NSMomentumInviscidFluxWithGradP::computeQpOffDiagJacobian(), isNSVariable(), and mapVarNumber().
|
protected |
Definition at line 43 of file NSKernel.h.
Referenced by NSEnergyViscousFlux::computeQpOffDiagJacobian(), and NSMassInviscidFlux::computeQpResidual().
|
protected |
Definition at line 58 of file NSKernel.h.
Referenced by NSSUPGEnergy::computeQpJacobian(), NSMomentumInviscidFluxWithGradP::computeQpOffDiagJacobian(), isNSVariable(), and mapVarNumber().
|
protected |
Definition at line 55 of file NSKernel.h.
Referenced by NSSUPGMomentum::computeQpJacobian(), NSEnergyInviscidFlux::computeQpOffDiagJacobian(), NSMomentumInviscidFluxWithGradP::computeQpOffDiagJacobian(), isNSVariable(), and mapVarNumber().
|
protected |
Definition at line 56 of file NSKernel.h.
Referenced by NSSUPGMomentum::computeQpJacobian(), NSEnergyInviscidFlux::computeQpOffDiagJacobian(), NSMomentumInviscidFluxWithGradP::computeQpOffDiagJacobian(), isNSVariable(), and mapVarNumber().
|
protected |
Definition at line 57 of file NSKernel.h.
Referenced by NSSUPGMomentum::computeQpJacobian(), NSEnergyInviscidFlux::computeQpOffDiagJacobian(), NSMomentumInviscidFluxWithGradP::computeQpOffDiagJacobian(), isNSVariable(), and mapVarNumber().
|
protected |
Definition at line 36 of file NSKernel.h.
Referenced by NSSUPGEnergy::computeJacobianHelper(), NSSUPGMomentum::computeJacobianHelper(), NSMomentumInviscidFlux::computeJacobianHelper(), NSEnergyInviscidFlux::computeQpJacobian(), NSMomentumInviscidFluxWithGradP::computeQpJacobian(), NSEnergyInviscidFlux::computeQpOffDiagJacobian(), NSMomentumInviscidFluxWithGradP::computeQpOffDiagJacobian(), NSEnergyInviscidFlux::computeQpResidual(), NSMomentumInviscidFluxWithGradP::computeQpResidual(), NSSUPGMomentum::computeQpResidual(), NSEnergyViscousFlux::computeQpResidual(), NSMomentumInviscidFlux::computeQpResidual(), and NSSUPGEnergy::computeQpResidual().
|
protected |
Definition at line 37 of file NSKernel.h.
Referenced by NSSUPGEnergy::computeJacobianHelper(), NSSUPGMomentum::computeJacobianHelper(), NSMomentumInviscidFlux::computeJacobianHelper(), NSEnergyInviscidFlux::computeQpJacobian(), NSMomentumInviscidFluxWithGradP::computeQpJacobian(), NSEnergyInviscidFlux::computeQpOffDiagJacobian(), NSMomentumInviscidFluxWithGradP::computeQpOffDiagJacobian(), NSEnergyInviscidFlux::computeQpResidual(), NSMomentumInviscidFluxWithGradP::computeQpResidual(), NSSUPGMomentum::computeQpResidual(), NSEnergyViscousFlux::computeQpResidual(), NSMomentumInviscidFlux::computeQpResidual(), and NSSUPGEnergy::computeQpResidual().
|
protected |
Definition at line 62 of file NSKernel.h.
Referenced by NSEnergyViscousFlux::computeQpOffDiagJacobian(), NSEnergyViscousFlux::computeQpResidual(), and NSMomentumViscousFlux::computeQpResidual().
|
protected |
Definition at line 38 of file NSKernel.h.
Referenced by NSSUPGEnergy::computeJacobianHelper(), NSSUPGMomentum::computeJacobianHelper(), NSMomentumInviscidFlux::computeJacobianHelper(), NSEnergyInviscidFlux::computeQpJacobian(), NSMomentumInviscidFluxWithGradP::computeQpJacobian(), NSEnergyInviscidFlux::computeQpOffDiagJacobian(), NSMomentumInviscidFluxWithGradP::computeQpOffDiagJacobian(), NSEnergyInviscidFlux::computeQpResidual(), NSMomentumInviscidFluxWithGradP::computeQpResidual(), NSSUPGMomentum::computeQpResidual(), NSEnergyViscousFlux::computeQpResidual(), NSMomentumInviscidFlux::computeQpResidual(), and NSSUPGEnergy::computeQpResidual().