Documentation 6b54b78464
Loading...
Searching...
No Matches
CNEMOEulerVariable Class Reference

Main class for defining the variables of the NEMO Euler's solver. More...

#include <CNEMOEulerVariable.hpp>

Inheritance diagram for CNEMOEulerVariable:
[legend]

Classes

struct  CIndices
 

Public Member Functions

 CNEMOEulerVariable (su2double val_pressure, const su2double *val_massfrac, const su2double *val_mach, su2double val_temperature, su2double val_temperature_ve, unsigned long npoint, unsigned long ndim, unsigned long nvar, unsigned long nvalprim, unsigned long nvarprimgrad, const CConfig *config, CNEMOGas *fluidmodel)
 Constructor of the class.
 
su2double GetDensity_time_n (unsigned long iPoint) const final
 Get the density at time level n for dual-time stepping.
 
su2double GetDensity_time_n1 (unsigned long iPoint) const final
 Get the density at time level n-1 for dual-time stepping.
 
void SetSecondary (unsigned long iPoint, unsigned long iVar, su2double val_secondary) final
 Set the value of the primitive variables.
 
void SetSecondary (unsigned long iPoint, const su2double *val_secondary) final
 Set the value of the primitive variables.
 
void SetPrimitive_Aux (unsigned long iPoint, unsigned long iVar, su2double val_prim)
 Set the value of the primitive auxiliary variables - with mass fractions.
 
const MatrixType & GetPrimitive_Aux () const
 Get the primitive variables for all points.
 
su2double GetSecondary (unsigned long iPoint, unsigned long iVar) const final
 Get the primitive variables.
 
su2double * GetSecondary (unsigned long iPoint) final
 Get the primitive variables of the problem.
 
bool SetPrimVar (unsigned long iPoint, CFluidModel *FluidModel) override
 Set all the primitive variables for compressible flows.
 
bool Cons2PrimVar (su2double *U, su2double *V, su2double *dPdU, su2double *dTdU, su2double *dTvedU, su2double *val_eves, su2double *val_Cvves)
 Set all the primitive and secondary variables from the conserved vector.
 
void SetVelocity2 (unsigned long iPoint) final
 Set the norm 2 of the velocity.
 
su2double GetPressure (unsigned long iPoint) const final
 Get the flow pressure.
 
su2double GetSoundSpeed (unsigned long iPoint) const final
 Get the speed of the sound.
 
su2double GetEnthalpy (unsigned long iPoint) const final
 Get the enthalpy of the flow.
 
su2double GetDensity (unsigned long iPoint) const final
 Get the density of the flow.
 
su2double GetDensity (unsigned long iPoint, unsigned long val_Species) const final
 Get the specie density of the flow.
 
su2double GetEnergy (unsigned long iPoint) const final
 Get the energy of the flow.
 
su2double GetTemperature (unsigned long iPoint) const final
 Get the temperature of the flow.
 
su2double GetVelocity (unsigned long iPoint, unsigned long iDim) const final
 Get the velocity of the flow.
 
CMatrixView< const su2double > GetVelocityGradient (unsigned long iPoint) const final
 Get the velocity gradient.
 
su2double GetProjVel (unsigned long iPoint, const su2double *val_vector) const final
 Get the projected velocity in a unitary vector direction (compressible solver).
 
void SetVelocity (unsigned long iPoint) final
 Set the velocity vector from the solution.
 
void SetVelocity_Old (unsigned long iPoint, const su2double *val_velocity) final
 Set the velocity vector from the old solution.
 
su2double GetTemperature_ve (unsigned long iPoint) const final
 A virtual member.
 
bool SetTemperature_ve (unsigned long iPoint, su2double val_Tve) final
 Sets the vibrational electronic temperature of the flow.
 
su2double GetRhoCv_tr (unsigned long iPoint) const final
 Get the mixture specific heat at constant volume (trans.-rot.).
 
su2double GetRhoCv_ve (unsigned long iPoint) const final
 Get the mixture specific heat at constant volume (vib.-el.).
 
su2double * GetEve (unsigned long iPoint)
 Returns the stored value of Eve at the specified node.
 
su2double * GetCvve (unsigned long iPoint)
 Returns the value of Cvve at the specified node.
 
su2double * GetdPdU (unsigned long iPoint) final
 Set partial derivative of pressure w.r.t. density $\frac{\partial P}{\partial \rho_s}$.
 
su2double * GetdTdU (unsigned long iPoint) final
 Set partial derivative of temperature w.r.t. density $\frac{\partial T}{\partial \rho_s}$.
 
su2double * GetdTvedU (unsigned long iPoint) final
 Set partial derivative of vib.-el. temperature w.r.t. density $\frac{\partial T^{V-E}}{\partial \rho_s}$.
 
su2double GetMassFraction (unsigned long iPoint, unsigned long val_Species) const final
 Get the mass fraction $\rho_s / \rho $ of species s.
 
su2double GetGamma (unsigned long iPoint)
 Returns the stored value of Gamma at the specified node.
 
unsigned short GetRhosIndex () const
 Retrieves the value of the species density in the primitive variable vector.
 
unsigned short GetRhoIndex () const
 Retrieves the value of the total density in the primitive variable vector.
 
unsigned short GetPIndex () const
 Retrieves the value of the pressure in the primitive variable vector.
 
unsigned short GetTIndex () const
 Retrieves the value of the in temperature the primitive variable vector.
 
unsigned short GetTveIndex () const
 Retrieves the value of the vibe-elec temperature in the primitive variable vector.
 
unsigned short GetVelIndex () const
 Retrieves the value of the velocity in the primitive variable vector.
 
unsigned short GetHIndex () const
 Retrieves the value of the enthalpy in the primitive variable vector.
 
unsigned short GetAIndex () const
 Retrieves the value of the soundspeed in the primitive variable vector.
 
unsigned short GetRhoCvtrIndex () const
 Retrieves the value of the RhoCvtr in the primitive variable vector.
 
unsigned short GetRhoCvveIndex () const
 Retrieves the value of the RhoCvve in the primitive variable vector.
 
void SetVelSolutionVector (unsigned long iPoint, const su2double *val_vector) final
 Specify a vector to set the velocity components of the solution. Multiplied by density for compressible cases.
 
void SetVel_ResTruncError_Zero (unsigned long iPoint) final
 Set the momentum part of the truncation error to zero.
 
- Public Member Functions inherited from CFlowVariable
template<class T >
T UpdateNonPhysicalEdgeCounter (unsigned long iEdge, const T &isNonPhys) const
 Updates the non-physical counter of an edge.
 
su2double GetPrimitive (unsigned long iPoint, unsigned long iVar) const final
 Get a primitive variable.
 
su2double * GetPrimitive (unsigned long iPoint) final
 Get all the primitive variables of the problem.
 
const MatrixType & GetPrimitive () const final
 Get the primitive variables for all points.
 
void SetPrimitive (unsigned long iPoint, unsigned long iVar, su2double val_prim) final
 Set the value of the primitive variables.
 
void SetPrimitive (unsigned long iPoint, const su2double *val_prim) final
 Set the value of the primitive variables.
 
su2double GetVelocity2 (unsigned long iPoint) const final
 Get the squared norm of the velocity.
 
su2double GetGradient_Primitive (unsigned long iPoint, unsigned long iVar, unsigned long iDim) const final
 Get the value of the primitive variables gradient.
 
CMatrixView< su2double > GetGradient_Primitive (unsigned long iPoint, unsigned long iVarStart=0) final
 Get the value of the primitive variables gradient.
 
CVectorOfMatrix & GetGradient_Primitive () final
 Get the primitive variable gradients for all points.
 
const CVectorOfMatrix & GetGradient_Primitive () const final
 
CMatrixView< su2double > GetGradient_Reconstruction (unsigned long iPoint) final
 Get the array of the reconstruction variables gradient at a node.
 
CVectorOfMatrix & GetGradient_Reconstruction () final
 Get the reconstruction gradient for primitive variable at all points.
 
const CVectorOfMatrix & GetGradient_Reconstruction () const final
 
su2double GetLimiter_Primitive (unsigned long iPoint, unsigned long iVar) const final
 Get the value of the primitive variables gradient.
 
su2double * GetLimiter_Primitive (unsigned long iPoint) final
 Get the value of the primitive variables gradient.
 
MatrixType & GetLimiter_Primitive () final
 Get the primitive variables limiter.
 
const MatrixType & GetLimiter_Primitive () const final
 
unsigned long GetnPrimVarGrad () const
 Number of primitive variables that have a gradient/limiter column, from the start of the primitive row. Some convective schemes (see EulerNPrimVarGrad) size this smaller than the full primitive count.
 
su2double GetSolution_New (unsigned long iPoint, unsigned long iVar) const final
 Get the new solution of the problem (Classical RK4).
 
void AddSolution_New (unsigned long iPoint, unsigned long iVar, su2double val_solution) final
 Add a value to the new solution container for Classical RK4.
 
void SetSolution_New () final
 Set the new solution container for Classical RK4.
 
su2double GetHarmonicBalance_Source (unsigned long iPoint, unsigned long iVar) const final
 Get the harmonic balance source term.
 
void SetHarmonicBalance_Source (unsigned long iPoint, unsigned long iVar, su2double val_source) final
 Set the harmonic balance source term.
 
su2double * GetVorticity (unsigned long iPoint) final
 Get the values of the vorticity (3 values also in 2D).
 
const su2double * GetVorticity (unsigned long iPoint) const final
 
su2double GetStrainMag (unsigned long iPoint) const final
 Get the magnitude of rate of strain.
 
su2activevector & GetStrainMag ()
 Get the entire vector of the rate of strain magnitude.
 
- Public Member Functions inherited from CVariable
 CVariable (const CVariable &)=delete
 
 CVariable (CVariable &&)=delete
 
CVariable & operator= (const CVariable &)=delete
 
CVariable & operator= (CVariable &&)=delete
 
 CVariable (unsigned long npoint, unsigned long nvar, const CConfig *config)
 
 CVariable (unsigned long npoint, unsigned long ndim, unsigned long nvar, const CConfig *config, bool adjoint=false)
 
virtual ~CVariable ()=default
 Destructor of the class.
 
unsigned long GetnAuxVar () const
 Get the number of auxiliary variables.
 
void SetSolution (unsigned long iPoint, const su2double *solution)
 Set the value of the solution, all variables.
 
void SetSolution (unsigned long iPoint, unsigned long iVar, su2double solution)
 Set the value of the solution, one variable.
 
void Add_DeltaSolution (unsigned long iPoint, unsigned long iVar, su2double solution)
 Add the value of the solution vector to the previous solution (incremental approach).
 
void SetNon_Physical (unsigned long iPoint, bool val_value)
 Set the value of the non-physical point.
 
bool GetNon_Physical (unsigned long iPoint)
 Get the value of the non-physical boolean at a point.
 
su2double GetSolution (unsigned long iPoint, unsigned long iVar) const
 Get the solution.
 
su2double GetSolution_Old (unsigned long iPoint, unsigned long iVar) const
 Get the old solution of the problem (Runge-Kutta method)
 
void SetSolution_Old (unsigned long iPoint, const su2double *solution_old)
 Set the value of the old solution.
 
void SetSolution_Old (unsigned long iPoint, unsigned long iVar, su2double solution_old)
 
void Set_OldSolution ()
 Set old variables to the value of the current variables.
 
void Set_Solution ()
 Set variables to the value of the old variables.
 
void Set_Solution_time_n ()
 Set the variable solution at time n.
 
void Set_Solution_time_n1 ()
 Set the variable solution at time n-1.
 
void Set_Solution_time_n (unsigned long iPoint, const su2double *val_sol)
 Set the variable solution at time n.
 
void Set_Solution_time_n1 (unsigned long iPoint, const su2double *val_sol)
 Set the variable solution at time n-1.
 
void Set_Solution_time_n (unsigned long iPoint, unsigned long iVar, su2double val_sol)
 Set the variable solution at time n.
 
void Set_Solution_time_n1 (unsigned long iPoint, unsigned long iVar, su2double val_sol)
 Set the variable solution at time n-1.
 
void AddSolution (unsigned long iPoint, unsigned long iVar, su2double solution)
 Add a value to the solution.
 
void AddSolution (unsigned long iPoint, const su2double *solution)
 Add a value to the solution.
 
virtual su2double GetRoe_Dissipation (unsigned long iPoint) const
 A virtual member.
 
virtual void SetRoe_Dissipation (unsigned long iPoint, su2double val_dissipation)
 A virtual member.
 
virtual void SetRoe_Dissipation_FD (unsigned long iPoint, su2double val_wall_dist)
 A virtual member.
 
virtual void SetRoe_Dissipation_NTS (unsigned long iPoint, su2double val_delta, su2double val_const_DES)
 A virtual member.
 
virtual su2double GetDES_LengthScale (unsigned long iPoint) const
 A virtual member.
 
virtual void SetDES_LengthScale (unsigned long iPoint, su2double val_des_lengthscale)
 A virtual member.
 
virtual su2double GetLES_Mode (unsigned long iPoint) const
 A virtual member.
 
virtual void SetLES_Mode (unsigned long iPoint, su2double val_les_mode)
 A virtual member.
 
virtual su2double GetLangevinSourceTerms (unsigned long iPoint, unsigned short iDim) const
 A virtual member.
 
virtual void SetLangevinSourceTerms (unsigned long iPoint, unsigned short iDim, su2double val_stochSource)
 A virtual member.
 
virtual void SetBesselIntegral (unsigned long iPoint, su2double val_integral)
 A virtual member.
 
virtual su2double GetBesselIntegral (unsigned long iPoint) const
 A virtual member.
 
void SetExternalZero ()
 Set external contributions to zero.
 
virtual void Set_External_To_DualTimeDer ()
 Set Dual-time derivative contributions to the external.
 
void Add_External (unsigned long iPoint, const su2double *val_sol)
 Add a value to the External vector.
 
void Set_ExternalExtra_To_SolutionExtra ()
 Store the adjoint solution of the extra adjoint into the external container.
 
void Add_ExternalExtra_To_SolutionExtra ()
 Add the external contribution to the solution for the extra adjoint solutions.
 
VectorType & GetSolutionExtra ()
 Return the extra adjoint solution.
 
const VectorType & GetSolutionExtra () const
 
void AddClippedSolution (unsigned long iPoint, unsigned long iVar, su2double solution, su2double lowerlimit, su2double upperlimit, su2double Sol2Conservative=1.0, su2double Sol2Conservative_old=1.0)
 Update the variables using a conservative format.
 
const MatrixType & GetSolution () const
 Get the entire solution of the problem.
 
MatrixType & GetSolution ()
 
su2double * GetSolution (unsigned long iPoint)
 Get the solution of the problem.
 
const MatrixType & GetUserDefinedSource () const
 Get the entire User Define Source of the problem.
 
MatrixType & GetUserDefinedSource ()
 
su2double * GetSolution_Old (unsigned long iPoint)
 Get the old solution of the problem (Runge-Kutta method)
 
const su2double * Get_External (unsigned long iPoint) const
 Get the external contributions of the problem.
 
const MatrixType & Get_External () const
 
su2double * GetSolution_time_n (unsigned long iPoint)
 Get the solution at time n.
 
MatrixType & GetSolution_time_n ()
 
su2double * GetSolution_time_n1 (unsigned long iPoint)
 Get the solution at time n-1.
 
MatrixType & GetSolution_time_n1 ()
 
void SetResidual_Old (unsigned long iPoint, const su2double *val_residual_old)
 Set the value of the old residual.
 
void AddResidual_Sum (unsigned long iPoint, const su2double *val_residual)
 Add a value to the summed residual vector.
 
void SetResidualSumZero (unsigned long iPoint)
 Set summed residual vector to zero value.
 
su2double * GetResidual_Sum (unsigned long iPoint)
 Get the value of the summed residual.
 
su2double * GetResidual_Old (unsigned long iPoint)
 Get the value of the old residual.
 
void GetResidual_Sum (unsigned long iPoint, su2double *val_residual) const
 Get the value of the summed residual.
 
void SetUnderRelaxation (unsigned long iPoint, su2double val_under_relaxation)
 Set the value of the under-relaxation parameter for the current control volume (CV).
 
su2double GetUnderRelaxation (unsigned long iPoint) const
 Get the value of the under-relaxation parameter for the current control volume (CV).
 
void SetLocalCFL (unsigned long iPoint, su2double val_cfl)
 Set the value of the local CFL number for the current control volume (CV).
 
su2double GetLocalCFL (unsigned long iPoint) const
 Get the value of the local CFL number for the current control volume (CV).
 
const MatrixType & GetAuxVar (void) const
 Get the entire Aux matrix of the problem.
 
su2double GetAuxVar (unsigned long iPoint, unsigned long iVar=0) const
 Get the Aux var value at Point i, variable j.
 
void SetAuxVar (unsigned long iPoint, unsigned long iVar, const su2double auxvar)
 Set auxiliary variables.
 
void SetAuxVarGradient (unsigned long iPoint, unsigned long iVar, unsigned long iDim, su2double value)
 Set value of auxillary gradients.
 
CVectorOfMatrix & GetAuxVarGradient (void)
 Get the gradient of the auxilary variables.
 
const CVectorOfMatrix & GetAuxVarGradient (void) const
 
su2double GetAuxVarGradient (unsigned long iPoint, unsigned long iVar, unsigned long iDim) const
 Get the value of the auxilliary gradient.
 
CMatrixView< su2double > GetAuxVarGradient (unsigned long iPoint)
 Get the value of the auxilliary gradient.
 
void AddRes_TruncError (unsigned long iPoint, const su2double *val_truncation_error)
 Add a value to the truncation error.
 
void SubtractRes_TruncError (unsigned long iPoint, const su2double *val_truncation_error)
 Subtract a value to the truncation error.
 
void SetRes_TruncErrorZero (unsigned long iPoint)
 Set the truncation error to zero.
 
void SetVal_ResTruncError_Zero (unsigned long iPoint, unsigned long iVar)
 Set the truncation error to zero.
 
void SetEnergy_ResTruncError_Zero (unsigned long iPoint)
 Set the velocity of the truncation error to zero.
 
su2double * GetResTruncError (unsigned long iPoint)
 Get the truncation error.
 
void GetResTruncError (unsigned long iPoint, su2double *val_trunc_error) const
 Get the truncation error.
 
void SetResTruncError (unsigned long iPoint, su2double *val_trunc_error)
 Set the truncation error.
 
void SetGradient (unsigned long iPoint, su2double **gradient)
 Set the gradient of the solution.
 
CVectorOfMatrix & GetGradient (void)
 Get the gradient of the entire solution.
 
const CVectorOfMatrix & GetGradient (void) const
 
CMatrixView< su2double > GetGradient (unsigned long iPoint)
 Get the value of the solution gradient.
 
su2double GetGradient (unsigned long iPoint, unsigned long iVar, unsigned long iDim) const
 Get the value of the solution gradient.
 
void AddRmatrix (unsigned long iPoint, unsigned long iDim, unsigned long jDim, su2double value)
 Add value to the Rmatrix for least squares gradient calculations.
 
su2double GetRmatrix (unsigned long iPoint, unsigned long iDim, unsigned long jDim) const
 Get the value of the Rmatrix entry for least squares gradient calculations.
 
C3DDoubleMatrix & GetRmatrix (void)
 Get the value Rmatrix for the entire domain.
 
MatrixType & GetLimiter (void)
 Get the slope limiter.
 
const MatrixType & GetLimiter (void) const
 
su2double * GetLimiter (unsigned long iPoint)
 Get the value of the slope limiter.
 
su2double GetLimiter (unsigned long iPoint, unsigned long iVar) const
 Get the value of the slope limiter.
 
MatrixType & GetSolution_Max ()
 Get the min solution.
 
const MatrixType & GetSolution_Max () const
 
MatrixType & GetSolution_Min ()
 Get the min solution.
 
const MatrixType & GetSolution_Min () const
 
void SetDelta_Time (unsigned long iPoint, su2double val_delta_time)
 Set the value of the time step.
 
su2double GetDelta_Time (unsigned long iPoint) const
 Get the value of the time step.
 
void SetMax_Lambda_Inv (unsigned long iPoint, su2double val_max_lambda)
 Set the value of the maximum eigenvalue for the inviscid terms of the PDE.
 
void SetMax_Lambda_Visc (unsigned long iPoint, su2double val_max_lambda)
 Set the value of the maximum eigenvalue for the viscous terms of the PDE.
 
void AddMax_Lambda_Inv (unsigned long iPoint, su2double val_max_lambda)
 Add a value to the maximum eigenvalue for the inviscid terms of the PDE.
 
void AddMax_Lambda_Visc (unsigned long iPoint, su2double val_max_lambda)
 Add a value to the maximum eigenvalue for the viscous terms of the PDE.
 
su2double GetMax_Lambda_Inv (unsigned long iPoint) const
 Get the value of the maximum eigenvalue for the inviscid terms of the PDE.
 
su2double GetMax_Lambda_Visc (unsigned long iPoint) const
 Get the value of the maximum eigenvalue for the viscous terms of the PDE.
 
void SetLambda (unsigned long iPoint, su2double val_lambda)
 Set the value of the spectral radius.
 
void AddLambda (unsigned long iPoint, su2double val_lambda)
 Add the value of the spectral radius.
 
su2double GetLambda (unsigned long iPoint) const
 Get the value of the spectral radius.
 
const VectorType & GetLambda () const
 
void SetSensor (unsigned long iPoint, su2double val_sensor)
 Set pressure sensor.
 
su2double GetSensor (unsigned long iPoint) const
 Get the pressure sensor.
 
const VectorType & GetSensor () const
 
void AddUnd_Lapl (unsigned long iPoint, unsigned long iVar, su2double val_und_lapl)
 Increment the value of the undivided laplacian of the solution.
 
void SetUnd_Lapl (unsigned long iPoint, unsigned long iVar, su2double val_und_lapl)
 Set a value to the undivided laplacian.
 
su2double * GetUndivided_Laplacian (unsigned long iPoint)
 Get the undivided laplacian of the solution.
 
su2double GetUndivided_Laplacian (unsigned long iPoint, unsigned long iVar) const
 Get the undivided laplacian of the solution.
 
const MatrixType & GetUndivided_Laplacian () const
 
virtual su2double * GetEnthalpys (unsigned long iPoint)
 Get the species enthalpy.
 
virtual su2double * GetForceProj_Vector (unsigned long iPoint)
 A virtual member.
 
virtual su2double * GetObjFuncSource (unsigned long iPoint)
 A virtual member.
 
virtual su2double GetEddyViscosity (unsigned long iPoint) const
 A virtual member.
 
virtual su2double GetBetaInc2 (unsigned long iPoint) const
 A virtual member.
 
virtual su2double GetLaminarViscosity (unsigned long iPoint) const
 A virtual member.
 
virtual su2double * GetDiffusionCoeff (unsigned long iPoint)
 A virtual member.
 
virtual su2double GetThermalConductivity (unsigned long iPoint) const
 A virtual member.
 
virtual su2double GetDiffusivity (unsigned long iPoint, unsigned short val_ivar) const
 A virtual member.
 
virtual su2double GetSpecificHeatCp (unsigned long iPoint) const
 A virtual member.
 
virtual su2double GetSpecificHeatCv (unsigned long iPoint) const
 A virtual member.
 
virtual su2double GetThermalConductivity_ve (unsigned long iPoint) const
 A virtual member.
 
virtual void SetGammaSep (unsigned long iPoint, su2double gamma_sep)
 A virtual member.
 
virtual void SetGammaEff (unsigned long iPoint)
 A virtual member.
 
virtual void SetForceProj_Vector (unsigned long iPoint, const su2double *val_ForceProj_Vector)
 A virtual member.
 
virtual void SetObjFuncSource (unsigned long iPoint, const su2double *val_SetObjFuncSource)
 A virtual member.
 
virtual su2double GetGammaBC (unsigned long iPoint) const
 A virtual member.
 
virtual void SetGammaBC (unsigned long iPoint, su2double val_gamma)
 A virtual member.
 
virtual void SetEddyViscosity (unsigned long iPoint, su2double eddy_visc)
 A virtual member.
 
virtual void SetEnthalpy (unsigned long iPoint)
 A virtual member.
 
virtual bool SetPrimVar (unsigned long iPoint, CConfig *config)
 A virtual member.
 
virtual bool SetPrimVar (unsigned long iPoint, CNEMOGas *fluidmodel)
 A virtual member.
 
virtual void SetSecondaryVar (unsigned long iPoint, CFluidModel *FluidModel)
 A virtual member.
 
virtual bool SetPrimVar (unsigned long iPoint, su2double SharpEdge_Distance, bool check, CConfig *config)
 A virtual member.
 
virtual bool SetPrimVar (unsigned long iPoint, su2double eddy_visc, su2double turb_ke, CConfig *config)
 A virtual member.
 
virtual bool SetPrimVar (unsigned long iPoint, su2double eddy_visc, su2double turb_ke, CFluidModel *FluidModel)
 A virtual member.
 
virtual bool SetPrimVar (unsigned long iPoint, su2double Density_Inf, CConfig *config)
 A virtual member.
 
virtual bool SetPrimVar (unsigned long iPoint, su2double Density_Inf, su2double Viscosity_Inf, su2double eddy_visc, su2double turb_ke, CConfig *config)
 A virtual member.
 
virtual void SetdPdrho_e (unsigned long iPoint, su2double dPdrho_e)
 A virtual member.
 
virtual void SetdPde_rho (unsigned long iPoint, su2double dPde_rho)
 A virtual member.
 
virtual void SetdTdrho_e (unsigned long iPoint, su2double dTdrho_e)
 A virtual member.
 
virtual void SetdTde_rho (unsigned long iPoint, su2double dTde_rho)
 A virtual member.
 
virtual void Setdmudrho_T (unsigned long iPoint, su2double dmudrho_T)
 A virtual member.
 
virtual void SetdmudT_rho (unsigned long iPoint, su2double dmudT_rho)
 A virtual member.
 
virtual void Setdktdrho_T (unsigned long iPoint, su2double dktdrho_T)
 A virtual member.
 
virtual void SetdktdT_rho (unsigned long iPoint, su2double dktdT_rho)
 A virtual member.
 
virtual bool SetDensity (unsigned long iPoint, su2double val_density)
 A virtual member.
 
virtual bool SetDensity (unsigned long iPoint)
 A virtual member.
 
virtual void SetPressure (unsigned long iPoint)
 A virtual member.
 
virtual void SetBetaInc2 (unsigned long iPoint, su2double val_betainc2)
 A virtual member.
 
virtual void SetPhi_Old (unsigned long iPoint, const su2double *val_phi)
 A virtual member.
 
virtual bool SetPressure (unsigned long iPoint, su2double Gamma)
 A virtual member.
 
virtual bool SetPressure (unsigned long iPoint, CConfig *config)
 A virtual member.
 
virtual bool SetPressure (unsigned long iPoint, su2double Gamma, su2double turb_ke)
 A virtual member.
 
virtual bool SetSoundSpeed (unsigned long iPoint, su2double soundspeed2)
 A virtual member.
 
virtual bool SetTemperature (unsigned long iPoint, su2double Gas_Constant)
 A virtual member.
 
virtual bool SetTemperature (unsigned long iPoint, CConfig *config)
 A virtual member.
 
virtual void SetPrimitive (unsigned long iPoint, CConfig *config)
 A virtual member.
 
virtual void SetThermalCoeff (unsigned long iPoint, CConfig *config)
 Set the thermal coefficient.
 
virtual void SetStress_FEM (unsigned long iPoint, unsigned long iVar, su2double val_stress)
 A virtual member.
 
virtual void AddStress_FEM (unsigned long iPoint, unsigned long iVar, su2double val_stress)
 A virtual member.
 
virtual const su2double * GetStress_FEM (unsigned long iPoint) const
 A virtual member.
 
virtual void SetVonMises_Stress (unsigned long iPoint, su2double val_stress)
 A virtual member.
 
virtual su2double GetVonMises_Stress (unsigned long iPoint) const
 A virtual member.
 
virtual void Add_SurfaceLoad_Res (unsigned long iPoint, const su2double *val_surfForce)
 A virtual member.
 
virtual su2double Get_SurfaceLoad_Res (unsigned long iPoint, unsigned long iVar) const
 A virtual member.
 
virtual void Clear_SurfaceLoad_Res ()
 A virtual member.
 
virtual void Set_SurfaceLoad_Res_n ()
 A virtual member.
 
virtual su2double Get_SurfaceLoad_Res_n (unsigned long iPoint, unsigned long iVar) const
 A virtual member.
 
virtual void Add_BodyForces_Res (unsigned long iPoint, const su2double *val_bodyForce)
 A virtual member.
 
virtual su2double Get_BodyForces_Res (unsigned long iPoint, unsigned long iVar) const
 A virtual member.
 
virtual void Clear_BodyForces_Res (unsigned long iPoint)
 A virtual member.
 
virtual void Set_FlowTraction (unsigned long iPoint, const su2double *val_flowTraction)
 A virtual member.
 
virtual void Add_FlowTraction (unsigned long iPoint, const su2double *val_flowTraction)
 A virtual member.
 
virtual su2double Get_FlowTraction (unsigned long iPoint, unsigned long iVar) const
 A virtual member.
 
virtual void Set_FlowTraction_n ()
 A virtual member.
 
virtual su2double Get_FlowTraction_n (unsigned long iPoint, unsigned long iVar) const
 A virtual member.
 
virtual void Set_isVertex (unsigned long iPoint, bool isVertex)
 A virtual member.
 
virtual bool Get_isVertex (unsigned long iPoint) const
 A virtual member.
 
virtual void SetLaminarViscosity (unsigned long iPoint, su2double laminarViscosity)
 A virtual member.
 
virtual void SetLaminarViscosity (unsigned long iPoint, CConfig *config)
 A virtual member.
 
virtual void SetThermalConductivity (unsigned long iPoint, su2double thermalConductivity)
 A virtual member.
 
virtual void SetThermalConductivity (unsigned long iPoint, CConfig *config)
 A virtual member.
 
virtual void SetSpecificHeatCp (unsigned long iPoint, su2double Cp)
 A virtual member.
 
virtual void SetSpecificHeatCv (unsigned long iPoint, su2double Cv)
 A virtual member.
 
virtual void SetVelSolutionDVector (unsigned long iPoint)
 A virtual member.
 
virtual void SetBlendingFunc (unsigned long iPoint, su2double val_viscosity, su2double val_dist, su2double val_density, TURB_TRANS_MODEL trans_model)
 Set the blending function for the blending of k-w and k-eps.
 
virtual su2double GetF1blending (unsigned long iPoint) const
 Get the first blending function of the SST model.
 
virtual su2double GetF2blending (unsigned long iPoint) const
 Get the second blending function of the SST model.
 
virtual su2double GetCrossDiff (unsigned long iPoint) const
 Get the value of the cross diffusion of tke and omega.
 
virtual su2double GetmuT (unsigned long iPoint) const
 Get the value of the eddy viscosity.
 
virtual su2double GetIntermittency (unsigned long iPoint) const
 Get the value of the intermittency.
 
virtual void SetIntermittency (unsigned long iPoint, su2double val_Intermittency)
 Set the intermittency.
 
virtual su2double GetIntermittencySep (unsigned long iPoint) const
 Get the value of the separation intermittency.
 
virtual void SetIntermittencySep (unsigned long iPoint, su2double val_Intermittency_sep)
 Set the separation intermittency (gamma_sep).
 
virtual su2double GetIntermittencyEff (unsigned long iPoint) const
 Get the value of the effective intermittency.
 
virtual void SetIntermittencyEff (unsigned long iPoint, su2double val_Intermittency_eff)
 Set the effective intermittency (gamma_eff).
 
virtual void SetmuT (unsigned long iPoint, su2double val_muT)
 Set the value of the eddy viscosity.
 
virtual void SetTurbIndex (unsigned long iPoint, su2double val_turb_index)
 Set the value of the turbulence index.
 
virtual su2double GetTurbIndex (unsigned long iPoint) const
 Get the value of the turbulence index.
 
virtual void SetEddyViscSens (unsigned long iPoint, const su2double *val_EddyViscSens, unsigned long numTotalVar)
 Set the Eddy Viscosity Sensitivity of the problem.
 
virtual su2double * GetEddyViscSens (unsigned long iPoint)
 Get the Eddy Viscosity Sensitivity of the problem.
 
virtual void SetSolution_Direct (unsigned long iPoint, const su2double *solution_direct)
 A virtual member. Set the direct solution for the adjoint solver.
 
virtual su2double * GetSolution_Direct (unsigned long iPoint)
 A virtual member. Get the direct solution for the adjoint solver.
 
virtual void SetGeometry_Direct (unsigned long iPoint, const su2double *val_coordinate_direct)
 A virtual member. Set the restart geometry (coordinate of the converged solution)
 
virtual su2double * GetGeometry_Direct (unsigned long iPoint)
 A virtual member. Get the restart geometry (coordinate of the converged solution).
 
virtual su2double GetGeometry_Direct (unsigned long iPoint, unsigned long iDim) const
 A virtual member. Get the restart geometry (coordinate of the converged solution).
 
virtual su2double GetSolution_Geometry (unsigned long iPoint, unsigned long iVar) const
 A virtual member. Get the geometry solution.
 
virtual void SetSolution_Geometry (unsigned long iPoint, const su2double *solution_geometry)
 A virtual member. Set the value of the mesh solution (adjoint).
 
virtual void SetSolution_Geometry (unsigned long iPoint, unsigned long iVar, su2double solution_geometry)
 A virtual member. Set the value of the mesh solution (adjoint).
 
virtual void Set_OldSolution_Geometry ()
 A virtual member. Set the value of the old geometry solution (adjoint).
 
virtual su2double Get_OldSolution_Geometry (unsigned long iPoint, unsigned long iDim) const
 A virtual member. Get the value of the old geometry solution (adjoint).
 
virtual su2double Get_BGSSolution (unsigned long iPoint, unsigned long iVar) const
 Get BGS solution to compute the BGS residual (difference between BGS and BGS_k).
 
virtual void Set_BGSSolution_k ()
 Set the value of the solution in the previous BGS subiteration.
 
virtual void Restore_BGSSolution_k ()
 Restore the previous BGS subiteration to solution.
 
virtual void Set_BGSSolution_k (unsigned long iPoint, unsigned long iVar, su2double val_var)
 Set the value of the solution in the previous BGS subiteration.
 
virtual su2double Get_BGSSolution_k (unsigned long iPoint, unsigned long iVar) const
 Get the value of the solution in the previous BGS subiteration.
 
virtual void SetSolution_Vel (unsigned long iPoint, const su2double *solution)
 Set the value of the velocity (Structural Analysis).
 
virtual void SetSolution_Vel (unsigned long iPoint, unsigned long iVar, su2double solution_vel)
 
virtual void SetSolution_Vel_time_n (unsigned long iPoint, const su2double *solution_vel_time_n)
 Set the value of the velocity (Structural Analysis) at time n.
 
virtual void SetSolution_Vel_time_n (unsigned long iPoint, unsigned long iVar, su2double solution_vel_time_n)
 
su2double GetSolution_time_n (unsigned long iPoint, unsigned long iVar) const
 Get the solution at time n.
 
su2double GetSolution_time_n1 (unsigned long iPoint, unsigned long iVar) const
 Get the solution at time n-1.
 
virtual su2double GetSolution_Vel (unsigned long iPoint, unsigned long iVar) const
 Get the velocity (Structural Analysis).
 
virtual su2double * GetSolution_Vel (unsigned long iPoint)
 Get the velocity (Structural Analysis).
 
virtual su2double GetSolution_Vel_time_n (unsigned long iPoint, unsigned long iVar) const
 Get the velocity of the nodes (Structural Analysis) at time n.
 
virtual su2double * GetSolution_Vel_time_n (unsigned long iPoint)
 Get the velocity of the nodes (Structural Analysis) at time n.
 
virtual void SetSolution_Accel (unsigned long iPoint, const su2double *solution_accel)
 Set the value of the acceleration (Structural Analysis).
 
virtual void SetSolution_Accel (unsigned long iPoint, unsigned long iVar, su2double solution_accel)
 
virtual void SetSolution_Accel_time_n (unsigned long iPoint, const su2double *solution_accel_time_n)
 Set the value of the acceleration (Structural Analysis) at time n.
 
virtual void SetSolution_Accel_time_n (unsigned long iPoint, unsigned long iVar, su2double solution_accel_time_n)
 
virtual su2double GetSolution_Accel (unsigned long iPoint, unsigned long iVar) const
 Get the acceleration (Structural Analysis).
 
virtual su2double * GetSolution_Accel (unsigned long iPoint)
 Get the solution of the problem.
 
virtual su2double GetSolution_Accel_time_n (unsigned long iPoint, unsigned long iVar) const
 Get the acceleration of the nodes (Structural Analysis) at time n.
 
virtual su2double * GetSolution_Accel_time_n (unsigned long iPoint)
 Get the solution at time n.
 
virtual void SetSolution_Vel_Pred (unsigned long iPoint, const su2double *val_solution_pred)
 A virtual member. Set the value of the velocity solution predictor.
 
virtual void SetSolution_Pred (unsigned long iPoint, const su2double *solution_pred)
 A virtual member. Set the value of the old solution.
 
virtual const su2double * GetSolution_Vel_Pred (unsigned long iPoint) const
 A virtual member. Get the velocity solution predictor.
 
virtual const su2double * GetSolution_Pred (unsigned long iPoint) const
 A virtual member. Get the solution at time n.
 
virtual void SetSolution_Pred_Old (unsigned long iPoint, const su2double *solution_pred_Old)
 A virtual member. Set the value of the old solution.
 
virtual const su2double * GetSolution_Pred_Old (unsigned long iPoint) const
 A virtual member. Get the solution at time n.
 
virtual void SetReference_Geometry (unsigned long iPoint, unsigned long iVar, su2double ref_geometry)
 A virtual member.
 
virtual const su2double * GetReference_Geometry (unsigned long iPoint) const
 A virtual member.
 
virtual void SetPrestretch (unsigned long iPoint, unsigned long iVar, su2double val_prestretch)
 A virtual member.
 
virtual const su2double * GetPrestretch (unsigned long iPoint) const
 A virtual member.
 
virtual su2double GetPrestretch (unsigned long iPoint, unsigned long iVar) const
 A virtual member.
 
virtual su2double GetMesh_Coord (unsigned long iPoint, unsigned long iDim) const
 A virtual member. Get the value of the undeformed coordinates.
 
virtual const su2double * GetMesh_Coord (unsigned long iPoint) const
 A virtual member. Get the undeformed coordinates.
 
virtual const MatrixType * GetMesh_Coord () const
 A virtual member. Get the undeformed coordinates for the entire domain.
 
virtual void SetMesh_Coord (unsigned long iPoint, unsigned long iDim, su2double val_coord)
 A virtual member. Set the value of the undeformed coordinates.
 
virtual su2double GetWallDistance (unsigned long iPoint) const
 A virtual member. Get the value of the wall distance in reference coordinates.
 
virtual void SetWallDistance (unsigned long iPoint, su2double val_dist)
 A virtual member. Set the value of the wall distance in reference coordinates.
 
virtual void Register_MeshCoord ()
 A virtual member. Register the reference coordinates of the mesh.
 
virtual void GetAdjoint_MeshCoord (unsigned long iPoint, su2double *adj_mesh)
 A virtual member. Recover the value of the adjoint of the mesh coordinates.
 
virtual su2double GetBound_Disp (unsigned long iPoint, unsigned long iDim) const
 A virtual member. Get the value of the displacement imposed at the boundary.
 
virtual su2double GetBound_Vel (unsigned long iPoint, unsigned long iDim) const
 A virtual member. Get the value of the velocity imposed at the boundary.
 
virtual void SetBound_Disp (unsigned long iPoint, const su2double *val_BoundDisp)
 A virtual member. Set the boundary displacement.
 
virtual void SetBound_Vel (unsigned long iPoint, const su2double *val_BoundVel)
 A virtual member. Set the boundary velocity.
 
virtual void SetBound_Disp (unsigned long iPoint, unsigned long iDim, const su2double val_BoundDisp)
 A virtual member. Set the boundary displacement.
 
virtual void SetBound_Vel (unsigned long iPoint, unsigned long iDim, const su2double val_BoundVel)
 A virtual member. Set the boundary velocity.
 
virtual const su2double * GetBoundDisp_Direct (unsigned long iPoint) const
 A virtual member. Get the value of the displacement imposed at the boundary.
 
virtual void SetBoundDisp_Direct (unsigned long iPoint, const su2double *val_BoundDisp)
 A virtual member. Set the solution for the boundary displacements.
 
virtual void SetBoundDisp_Sens (unsigned long iPoint, const su2double *val_sens)
 Set the value of the sensitivity with respect to the undeformed coordinates.
 
virtual su2double GetBoundDisp_Sens (unsigned long iPoint, unsigned long iDim) const
 A virtual member. Get the value of the sensitivity with respect to the undeformed coordinates.
 
virtual void Register_BoundDisp ()
 A virtual member. Register the boundary displacements of the mesh.
 
virtual void GetAdjoint_BoundDisp (unsigned long iPoint, su2double *adj_disp) const
 A virtual member. Recover the value of the adjoint of the boundary displacements.
 
virtual void RegisterFlowTraction (bool reset)
 A virtual member.
 
virtual su2double ExtractFlowTractionSensitivity (unsigned long iPoint, unsigned long iDim) const
 A virtual member.
 
void RegisterSolution (bool input)
 Register the variables in the solution array as input/output variable.
 
void RegisterSolution_time_n ()
 Register the variables in the solution_time_n array as input/output variable.
 
void RegisterSolution_time_n1 ()
 Register the variables in the solution_time_n1 array as input/output variable.
 
void RegisterUserDefinedSource ()
 Register the variables in the user defined source array as input/output variable.
 
void SetAdjointSolution (unsigned long iPoint, const su2double *adj_sol)
 Set the adjoint values of the solution.
 
void GetAdjointSolution (unsigned long iPoint, su2double *adj_sol) const
 Get the adjoint values of the solution.
 
void GetAdjointSolution_time_n (unsigned long iPoint, su2double *adj_sol) const
 
void GetAdjointSolution_time_n1 (unsigned long iPoint, su2double *adj_sol) const
 
virtual void SetSensitivity (unsigned long iPoint, unsigned long iDim, su2double val)
 Set the sensitivity at the node.
 
virtual su2double GetSensitivity (unsigned long iPoint, unsigned long iDim) const
 Get the Sensitivity at the node.
 
virtual const MatrixType & GetSensitivity () const
 
virtual void SetTau_Wall (unsigned long iPoint, su2double tau_wall)
 
virtual su2double GetTau_Wall (unsigned long iPoint) const
 
virtual void SetVortex_Tilting (unsigned long iPoint, CMatrixView< const su2double > PrimGrad_Flow, const su2double *Vorticity, su2double LaminarViscosity)
 
virtual su2double GetVortex_Tilting (unsigned long iPoint) const
 
virtual void SetStreamwise_Periodic_RecoveredPressure (unsigned long iPoint, su2double val_pressure)
 A virtual member: Set the recovered pressure for streamwise periodic flow.
 
virtual su2double GetStreamwise_Periodic_RecoveredPressure (unsigned long iPoint) const
 A virtual member: Get the recovered pressure for streamwise periodic flow.
 
virtual void SetStreamwise_Periodic_RecoveredTemperature (unsigned long iPoint, su2double val_temperature)
 A virtual member: Set the recovered temperature for streamwise periodic flow.
 
virtual su2double GetStreamwise_Periodic_RecoveredTemperature (unsigned long iPoint) const
 A virtual member: Get the recovered temperature for streamwise periodic flow.
 
virtual const su2double * GetRadiative_SourceTerm (unsigned long iPoint) const
 Virtual member: Set the Radiative source term at the node.
 
virtual void SetRadiative_SourceTerm (unsigned long iPoint, unsigned long iVar, su2double val_RadSourceTerm)
 Virtual member: Set the Radiative source term at the node.
 
virtual bool GetVol_HeatSource (unsigned long iPoint) const
 Get whether a volumetric heat source is to be introduced in point iPoint.
 
virtual void SetFlowTractionSensitivity (unsigned long iPoint, unsigned long iDim, su2double val)
 Set the FSI force sensitivity at the node.
 
virtual su2double GetFlowTractionSensitivity (unsigned long iPoint, unsigned long iDim) const
 Get the FSI force sensitivity at the node.
 
virtual void SetSourceTerm_DispAdjoint (unsigned long iPoint, unsigned long iDim, su2double val)
 Set the source term applied into the displacement adjoint coming from external solvers.
 
virtual void SetSourceTerm_VelAdjoint (unsigned long iPoint, unsigned long iDim, su2double val)
 
virtual su2double GetSourceTerm_DispAdjoint (unsigned long iPoint, unsigned long iDim) const
 Get the source term applied into the displacement adjoint coming from external solvers.
 
virtual su2double GetSourceTerm_VelAdjoint (unsigned long iPoint, unsigned long iDim) const
 
virtual void SetEntropy (unsigned long iPoint, su2double entropy)
 Set fluid entropy.
 
virtual su2double GetEntropy (unsigned long iPoint) const
 Get fluid entropy.
 
virtual void SetDataExtrapolation (unsigned long iPoint, unsigned short extrapolation)
 Set dataset extrapolation instance.
 
virtual unsigned short GetDataExtrapolation (unsigned long iPoint) const
 Get dataset extrapolation instance.
 
virtual void SetNewtonSolverIterations (unsigned long iPoint, unsigned long nIter)
 Set the number of iterations required by a Newton solver used by the fluid model.
 
virtual unsigned long GetNewtonSolverIterations (unsigned long iPoint) const
 Get the number of iterations required by a Newton solver used by the fluid model.
 
virtual void SetLookupScalar (unsigned long iPoint, su2double val_lookup_scalar, unsigned short val_ivar)
 LUT premixed flamelet: virtual functions for the speciesflameletvariable LUT.
 
virtual void SetScalarSource (unsigned long iPoint, unsigned short val_ivar, su2double val_source)
 
virtual void SetTableMisses (unsigned long iPoint, unsigned short misses)
 
virtual unsigned short GetTableMisses (unsigned long iPoint) const
 
virtual const su2double * GetScalarSources (unsigned long iPoint) const
 
virtual const su2double * GetScalarLookups (unsigned long iPoint) const
 
virtual su2double GetMomCoeff (unsigned long iPoint)
 
virtual void SetMomCoeff (unsigned long iPoint, su2double val_Mom_Coeff)
 
virtual bool GetStrongBC (unsigned long iPoint) const
 Get whether a strong boundary condition was applied to the point, which for the pressure-based solver means its momentum row was deleted and carries no A_p.
 
virtual su2double GetMomentumCorrection (unsigned long iPoint, unsigned short iDim)
 
virtual void SetMomentumCorrection (unsigned long iPoint, unsigned short iDim, su2double val_mom)
 
virtual su2double GetHbyACorrection (unsigned long iPoint, unsigned short iDim)
 
virtual void SetHbyACorrection (unsigned long iPoint, unsigned short iDim, su2double val_HbyAcorrection)
 

Static Public Attributes

static constexpr size_t MAXNVAR = 25
 

Protected Attributes

const CIndices< unsigned long > indices
 
bool ionization
 Presence of charged species in gas mixture.
 
bool monoatomic = false
 Presence of single species gas.
 
MatrixType Precond_Beta
 Low Mach number preconditioner value, Beta.
 
MatrixType Primitive_Aux
 Primitive auxiliary variables (Y_s, T, Tve, ...) in compressible flows.
 
MatrixType Secondary
 Primitive variables (T, vx, vy, vz, P, rho, h, c) in compressible flows.
 
CVectorOfMatrix Gradient_Secondary
 Gradient of the primitive variables (T, vx, vy, vz, P, rho).
 
MatrixType dPdU
 Partial derivative of pressure w.r.t. conserved variables.
 
MatrixType dTdU
 Partial derivative of temperature w.r.t. conserved variables.
 
MatrixType dTvedU
 Partial derivative of vib.-el. temperature w.r.t. conserved variables.
 
MatrixType eves
 energy of vib-el mode w.r.t. species.
 
MatrixType Cvves
 Specific heat of vib-el mode w.r.t. species.
 
VectorType Gamma
 Ratio of specific heats.
 
CNEMOGas * fluidmodel
 Index definition for NEMO pritimive variables.
 
unsigned long RHOS_INDEX
 
unsigned long T_INDEX
 
unsigned long TVE_INDEX
 
unsigned long VEL_INDEX
 
unsigned long P_INDEX
 
unsigned long RHO_INDEX
 
unsigned long H_INDEX
 
unsigned long A_INDEX
 
unsigned long RHOCVTR_INDEX
 
unsigned long RHOCVVE_INDEX
 
unsigned long LAM_VISC_INDEX
 
unsigned long EDDY_VISC_INDEX
 
unsigned long nSpecies
 
su2double Tve_Freestream
 Freestream vib-el temperature.
 
const bool implicit
 Implicit flag.
 
- Protected Attributes inherited from CFlowVariable
MatrixType Primitive
 Primitive variables.
 
CVectorOfMatrix Gradient_Primitive
 Gradient of the primitive variables.
 
CVectorOfMatrix & Gradient_Reconstruction
 Reference to the gradient of the primitive variables for MUSCL reconstruction for the convective term.
 
CVectorOfMatrix Gradient_Aux
 Auxiliary structure to store a second gradient for reconstruction, if required.
 
MatrixType Limiter_Primitive
 Limiter of the primitive variables.
 
VectorType Velocity2
 Squared norm of velocity.
 
MatrixType Solution_New
 New solution container for Classical RK4.
 
MatrixType HB_Source
 harmonic balance source term.
 
MatrixType Vorticity
 Vorticity of the flow field.
 
VectorType StrainMag
 Magnitude of rate of strain tensor.
 
- Protected Attributes inherited from CVariable
MatrixType Solution
 Solution of the problem.
 
MatrixType Solution_Old
 Old solution of the problem R-K.
 
MatrixType UserDefinedSource
 User Defined Source of the problem.
 
MatrixType External
 External (outer) contribution in discrete adjoint multizone problems.
 
su2vector< bool > Non_Physical
 Non-physical points in the solution (force first order).
 
su2vector< unsigned short > Non_Physical_Counter
 Number of consecutive iterations that a point has been treated first-order. After a specified number of successful reconstructions, the point can be returned to second-order.
 
VectorType UnderRelaxation
 Value of the under-relaxation parameter local to the control volume.
 
VectorType LocalCFL
 Value of the CFL number local to the control volume.
 
MatrixType Solution_time_n
 Solution of the problem at time n for dual-time stepping technique.
 
MatrixType Solution_time_n1
 Solution of the problem at time n-1 for dual-time stepping technique.
 
VectorType Delta_Time
 Time step.
 
CVectorOfMatrix Gradient
 Gradient of the solution of the problem.
 
C3DDoubleMatrix Rmatrix
 Geometry-based matrix for weighted least squares gradient calculations.
 
MatrixType Limiter
 Limiter of the solution of the problem.
 
MatrixType Solution_Max
 Max solution for limiter computation.
 
MatrixType Solution_Min
 Min solution for limiter computation.
 
MatrixType AuxVar
 Auxiliary variable for gradient computation.
 
CVectorOfMatrix Grad_AuxVar
 Gradient of the auxiliary variables of the problem.
 
VectorType Max_Lambda_Inv
 Maximun inviscid eingenvalue.
 
VectorType Max_Lambda_Visc
 Maximun viscous eingenvalue.
 
VectorType Lambda
 Value of the eingenvalue.
 
VectorType Sensor
 Pressure sensor for high order central scheme and Roe dissipation.
 
MatrixType Undivided_Laplacian
 Undivided laplacian of the solution.
 
MatrixType Res_TruncError
 Truncation error for multigrid cycle.
 
MatrixType Residual_Old
 Auxiliary structure for residual smoothing.
 
MatrixType Residual_Sum
 Auxiliary structure for residual smoothing.
 
MatrixType Solution_BGS_k
 Old solution container for BGS iterations.
 
su2matrix< AD::Identifier > AD_InputIndex
 Indices of Solution variables in the adjoint vector before solver iteration.
 
su2matrix< AD::Identifier > AD_OutputIndex
 Indices of Solution variables in the adjoint vector after solver iteration.
 
VectorType SolutionExtra
 Stores adjoint solution for extra solution variables. Currently only streamwise periodic pressure-drop for massflow prescribed flows.
 
VectorType ExternalExtra
 External storage for the adjoint value (i.e. for the OF mainly.
 
VectorType SolutionExtra_BGS_k
 Intermediate storage, enables cross term extraction as that is also pushed to Solution.
 
unsigned long nPoint = 0
 Number of points in the domain.
 
unsigned long nDim = 0
 Number of dimension of the problem.
 
unsigned long nVar = 0
 Number of variables of the problem.
 
unsigned long nPrimVar = 0
 Number of primitive variables.
 
unsigned long nPrimVarGrad = 0
 Number of primitives for which a gradient is computed.
 
unsigned long nSecondaryVar = 0
 Number of secondary variables.
 
unsigned long nAuxVar = 0
 Number of auxiliary variables.
 

Additional Inherited Members

- Public Attributes inherited from CFlowVariable
su2vector< int8_t > NonPhysicalEdgeCounter
 Non-physical reconstruction counter for each edge.
 
- Protected Types inherited from CVariable
using VectorType = C2DContainer< unsigned long, su2double, StorageType::ColumnMajor, 64, DynamicSize, 1 >
 
using MatrixType = C2DContainer< unsigned long, su2double, StorageType::RowMajor, 64, DynamicSize, DynamicSize >
 
- Protected Member Functions inherited from CFlowVariable
 CFlowVariable (unsigned long npoint, unsigned long ndim, unsigned long nvar, unsigned long nprimvar, unsigned long nprimvargrad, const CConfig *config)
 Constructor of the class.
 
- Protected Member Functions inherited from CVariable
 CVariable ()=default
 
void RegisterContainer (bool input, su2activematrix &variable, su2matrix< AD::Identifier > *ad_index=nullptr)
 
void RegisterContainer (bool input, su2activematrix &variable, su2matrix< AD::Identifier > &ad_index)
 
void RegisterContainer (bool input, su2activevector &variable, su2vector< AD::Identifier > *ad_index=nullptr)
 
- Static Protected Member Functions inherited from CVariable
static void AssertOverride ()
 
- Static Protected Attributes inherited from CVariable
static const VectorType EmptyVector {}
 

Detailed Description

Main class for defining the variables of the NEMO Euler's solver.

Note
Primitive variables (rhos_s, T, Tve, vx, vy, vw, P, rho, h, a, rhoCvtr, rhoCvve)
Author
S. R. Copeland, F. Palacios, W. Maier, C. Garbacz

Constructor & Destructor Documentation

◆ CNEMOEulerVariable()

CNEMOEulerVariable::CNEMOEulerVariable ( su2double  val_pressure,
const su2double *  val_massfrac,
const su2double *  val_mach,
su2double  val_temperature,
su2double  val_temperature_ve,
unsigned long  npoint,
unsigned long  ndim,
unsigned long  nvar,
unsigned long  nvalprim,
unsigned long  nvarprimgrad,
const CConfig *  config,
CNEMOGas *  fluidmodel 
)

Constructor of the class.

Parameters
[in]val_pressure- Value of the flow pressure (initialization value).
[in]val_massfrac- Value of the mass fraction (initialization value).
[in]val_mach- Value of the Mach number (initialization value).
[in]val_temperature- Value of the flow temperature (initialization value).
[in]val_temperature_ve- Value of the flow temperature_ve (initialization value).
[in]npoint- Number of points/nodes/vertices in the domain.
[in]val_nDim- Number of dimensions of the problem.
[in]val_nVar- Number of conserved variables.
[in]val_nVarPrim- Number of primitive variables.
[in]val_nVarPrimGrad- Number of primitive gradient variables.
[in]config- Definition of the particular problem.

Member Function Documentation

◆ Cons2PrimVar()

bool CNEMOEulerVariable::Cons2PrimVar ( su2double *  U,
su2double *  V,
su2double *  dPdU,
su2double *  dTdU,
su2double *  dTvedU,
su2double *  val_eves,
su2double *  val_Cvves 
)

Set all the primitive and secondary variables from the conserved vector.

◆ GetAIndex()

unsigned short CNEMOEulerVariable::GetAIndex ( ) const
inline

Retrieves the value of the soundspeed in the primitive variable vector.

◆ GetCvve()

su2double * CNEMOEulerVariable::GetCvve ( unsigned long  iPoint)
inline

Returns the value of Cvve at the specified node.

◆ GetDensity() [1/2]

su2double CNEMOEulerVariable::GetDensity ( unsigned long  iPoint) const
inlinefinalvirtual

Get the density of the flow.

Returns
Value of the density of the flow.

Reimplemented from CVariable.

◆ GetDensity() [2/2]

su2double CNEMOEulerVariable::GetDensity ( unsigned long  iPoint,
unsigned long  val_Species 
) const
inlinefinalvirtual

Get the specie density of the flow.

Returns
Value of the specie density of the flow.

Reimplemented from CVariable.

◆ GetDensity_time_n()

su2double CNEMOEulerVariable::GetDensity_time_n ( unsigned long  iPoint) const
inlinefinalvirtual

Get the density at time level n for dual-time stepping.

Parameters
[in]iPoint- Point index.
Returns
Density at time level n.

Implements CFlowVariable.

◆ GetDensity_time_n1()

su2double CNEMOEulerVariable::GetDensity_time_n1 ( unsigned long  iPoint) const
inlinefinalvirtual

Get the density at time level n-1 for dual-time stepping.

Parameters
[in]iPoint- Point index.
Returns
Density at time level n-1.

Implements CFlowVariable.

◆ GetdPdU()

su2double * CNEMOEulerVariable::GetdPdU ( unsigned long  iPoint)
inlinefinalvirtual

Set partial derivative of pressure w.r.t. density $\frac{\partial P}{\partial \rho_s}$.

Reimplemented from CVariable.

◆ GetdTdU()

su2double * CNEMOEulerVariable::GetdTdU ( unsigned long  iPoint)
inlinefinalvirtual

Set partial derivative of temperature w.r.t. density $\frac{\partial T}{\partial \rho_s}$.

Reimplemented from CVariable.

◆ GetdTvedU()

su2double * CNEMOEulerVariable::GetdTvedU ( unsigned long  iPoint)
inlinefinalvirtual

Set partial derivative of vib.-el. temperature w.r.t. density $\frac{\partial T^{V-E}}{\partial \rho_s}$.

Reimplemented from CVariable.

◆ GetEnergy()

su2double CNEMOEulerVariable::GetEnergy ( unsigned long  iPoint) const
inlinefinalvirtual

Get the energy of the flow.

Returns
Value of the energy of the flow.

Reimplemented from CVariable.

◆ GetEnthalpy()

su2double CNEMOEulerVariable::GetEnthalpy ( unsigned long  iPoint) const
inlinefinalvirtual

Get the enthalpy of the flow.

Returns
Value of the enthalpy of the flow.

Reimplemented from CVariable.

◆ GetEve()

su2double * CNEMOEulerVariable::GetEve ( unsigned long  iPoint)
inline

Returns the stored value of Eve at the specified node.

◆ GetGamma()

su2double CNEMOEulerVariable::GetGamma ( unsigned long  iPoint)
inline

Returns the stored value of Gamma at the specified node.

◆ GetHIndex()

unsigned short CNEMOEulerVariable::GetHIndex ( ) const
inline

Retrieves the value of the enthalpy in the primitive variable vector.

◆ GetMassFraction()

su2double CNEMOEulerVariable::GetMassFraction ( unsigned long  iPoint,
unsigned long  val_Species 
) const
inlinefinalvirtual

Get the mass fraction $\rho_s / \rho $ of species s.

Parameters
[in]val_Species- Index of species s.
Returns
Value of the mass fraction of species s.

Reimplemented from CVariable.

◆ GetPIndex()

unsigned short CNEMOEulerVariable::GetPIndex ( ) const
inline

Retrieves the value of the pressure in the primitive variable vector.

◆ GetPressure()

su2double CNEMOEulerVariable::GetPressure ( unsigned long  iPoint) const
inlinefinalvirtual

Get the flow pressure.

Returns
Value of the flow pressure.

Reimplemented from CVariable.

◆ GetPrimitive_Aux()

const MatrixType & CNEMOEulerVariable::GetPrimitive_Aux ( void  ) const
inline

Get the primitive variables for all points.

Returns
Reference to primitives.

◆ GetProjVel()

su2double CNEMOEulerVariable::GetProjVel ( unsigned long  iPoint,
const su2double *  val_vector 
) const
inlinefinalvirtual

Get the projected velocity in a unitary vector direction (compressible solver).

Parameters
[in]val_vector- Direction of projection.
Returns
Value of the projected velocity.

Reimplemented from CVariable.

◆ GetRhoCv_tr()

su2double CNEMOEulerVariable::GetRhoCv_tr ( unsigned long  iPoint) const
inlinefinalvirtual

Get the mixture specific heat at constant volume (trans.-rot.).

Returns
$\rho C^{t-r}_{v} $

Reimplemented from CVariable.

◆ GetRhoCv_ve()

su2double CNEMOEulerVariable::GetRhoCv_ve ( unsigned long  iPoint) const
inlinefinalvirtual

Get the mixture specific heat at constant volume (vib.-el.).

Returns
$\rho C^{v-e}_{v} $

Reimplemented from CVariable.

◆ GetRhoCvtrIndex()

unsigned short CNEMOEulerVariable::GetRhoCvtrIndex ( ) const
inline

Retrieves the value of the RhoCvtr in the primitive variable vector.

◆ GetRhoCvveIndex()

unsigned short CNEMOEulerVariable::GetRhoCvveIndex ( ) const
inline

Retrieves the value of the RhoCvve in the primitive variable vector.

◆ GetRhoIndex()

unsigned short CNEMOEulerVariable::GetRhoIndex ( ) const
inline

Retrieves the value of the total density in the primitive variable vector.

◆ GetRhosIndex()

unsigned short CNEMOEulerVariable::GetRhosIndex ( ) const
inline

Retrieves the value of the species density in the primitive variable vector.

◆ GetSecondary() [1/2]

su2double * CNEMOEulerVariable::GetSecondary ( unsigned long  iPoint)
inlinefinalvirtual

Get the primitive variables of the problem.

Returns
Pointer to the primitive variable vector.

Reimplemented from CVariable.

◆ GetSecondary() [2/2]

su2double CNEMOEulerVariable::GetSecondary ( unsigned long  iPoint,
unsigned long  iVar 
) const
inlinefinalvirtual

Get the primitive variables.

Parameters
[in]iVar- Index of the variable.
Returns
Value of the primitive variable for the index iVar.

Reimplemented from CVariable.

◆ GetSoundSpeed()

su2double CNEMOEulerVariable::GetSoundSpeed ( unsigned long  iPoint) const
inlinefinalvirtual

Get the speed of the sound.

Returns
Value of speed of the sound.

Reimplemented from CVariable.

◆ GetTemperature()

su2double CNEMOEulerVariable::GetTemperature ( unsigned long  iPoint) const
inlinefinalvirtual

Get the temperature of the flow.

Returns
Value of the temperature of the flow.

Reimplemented from CVariable.

◆ GetTemperature_ve()

su2double CNEMOEulerVariable::GetTemperature_ve ( unsigned long  iPoint) const
inlinefinalvirtual

A virtual member.

Returns
Value of the vibrational-electronic temperature.

Reimplemented from CVariable.

◆ GetTIndex()

unsigned short CNEMOEulerVariable::GetTIndex ( ) const
inline

Retrieves the value of the in temperature the primitive variable vector.

◆ GetTveIndex()

unsigned short CNEMOEulerVariable::GetTveIndex ( ) const
inline

Retrieves the value of the vibe-elec temperature in the primitive variable vector.

◆ GetVelIndex()

unsigned short CNEMOEulerVariable::GetVelIndex ( ) const
inline

Retrieves the value of the velocity in the primitive variable vector.

◆ GetVelocity()

su2double CNEMOEulerVariable::GetVelocity ( unsigned long  iPoint,
unsigned long  iDim 
) const
inlinefinalvirtual

Get the velocity of the flow.

Parameters
[in]iDim- Index of the dimension.
Returns
Value of the velocity for the dimension iDim.

Reimplemented from CVariable.

◆ GetVelocityGradient()

CMatrixView< const su2double > CNEMOEulerVariable::GetVelocityGradient ( unsigned long  iPoint) const
inlinefinalvirtual

Get the velocity gradient.

Returns
Value of the velocity gradient.

Reimplemented from CVariable.

◆ SetPrimitive_Aux()

void CNEMOEulerVariable::SetPrimitive_Aux ( unsigned long  iPoint,
unsigned long  iVar,
su2double  val_prim 
)
inline

Set the value of the primitive auxiliary variables - with mass fractions.

Parameters
[in]iVar- Index of the variable.
[in]iVar- Index of the variable.
Returns
Set the value of the primitive variable for the index iVar.

◆ SetPrimVar()

bool CNEMOEulerVariable::SetPrimVar ( unsigned long  iPoint,
CFluidModel *  FluidModel 
)
overridevirtual

Set all the primitive variables for compressible flows.

Reimplemented from CVariable.

Reimplemented in CNEMONSVariable.

◆ SetSecondary() [1/2]

void CNEMOEulerVariable::SetSecondary ( unsigned long  iPoint,
const su2double *  val_secondary 
)
inlinefinalvirtual

Set the value of the primitive variables.

Parameters
[in]val_prim- Primitive variables.
Returns
Set the value of the primitive variable for the index iVar.

Reimplemented from CVariable.

◆ SetSecondary() [2/2]

void CNEMOEulerVariable::SetSecondary ( unsigned long  iPoint,
unsigned long  iVar,
su2double  val_secondary 
)
inlinefinalvirtual

Set the value of the primitive variables.

Parameters
[in]iVar- Index of the variable.
[in]iVar- Index of the variable.
Returns
Set the value of the primitive variable for the index iVar.

Reimplemented from CVariable.

◆ SetTemperature_ve()

bool CNEMOEulerVariable::SetTemperature_ve ( unsigned long  iPoint,
su2double  val_Tve 
)
inlinefinalvirtual

Sets the vibrational electronic temperature of the flow.

Returns
Value of the temperature of the flow.

Reimplemented from CVariable.

◆ SetVel_ResTruncError_Zero()

void CNEMOEulerVariable::SetVel_ResTruncError_Zero ( unsigned long  iPoint)
inlinefinalvirtual

Set the momentum part of the truncation error to zero.

Parameters
[in]iPoint- Point index.

Reimplemented from CVariable.

◆ SetVelocity()

void CNEMOEulerVariable::SetVelocity ( unsigned long  iPoint)
inlinefinalvirtual

Set the velocity vector from the solution.

Parameters
[in]val_velocity- Pointer to the velocity.

Reimplemented from CVariable.

◆ SetVelocity2()

void CNEMOEulerVariable::SetVelocity2 ( unsigned long  iPoint)
finalvirtual

Set the norm 2 of the velocity.

Returns
Norm 2 of the velocity vector.

Reimplemented from CVariable.

◆ SetVelocity_Old()

void CNEMOEulerVariable::SetVelocity_Old ( unsigned long  iPoint,
const su2double *  val_velocity 
)
inlinefinalvirtual

Set the velocity vector from the old solution.

Parameters
[in]val_velocity- Pointer to the velocity.

Reimplemented from CVariable.

◆ SetVelSolutionVector()

void CNEMOEulerVariable::SetVelSolutionVector ( unsigned long  iPoint,
const su2double *  val_vector 
)
inlinefinalvirtual

Specify a vector to set the velocity components of the solution. Multiplied by density for compressible cases.

Parameters
[in]iPoint- Point index.
[in]val_vector- Pointer to the vector.

Reimplemented from CVariable.

Member Data Documentation

◆ A_INDEX

unsigned long CNEMOEulerVariable::A_INDEX
protected

◆ Cvves

MatrixType CNEMOEulerVariable::Cvves
protected

Specific heat of vib-el mode w.r.t. species.

◆ dPdU

MatrixType CNEMOEulerVariable::dPdU
protected

Partial derivative of pressure w.r.t. conserved variables.

◆ dTdU

MatrixType CNEMOEulerVariable::dTdU
protected

Partial derivative of temperature w.r.t. conserved variables.

◆ dTvedU

MatrixType CNEMOEulerVariable::dTvedU
protected

Partial derivative of vib.-el. temperature w.r.t. conserved variables.

◆ EDDY_VISC_INDEX

unsigned long CNEMOEulerVariable::EDDY_VISC_INDEX
protected

◆ eves

MatrixType CNEMOEulerVariable::eves
protected

energy of vib-el mode w.r.t. species.

◆ fluidmodel

CNEMOGas* CNEMOEulerVariable::fluidmodel
protected

Index definition for NEMO pritimive variables.

◆ Gamma

VectorType CNEMOEulerVariable::Gamma
protected

Ratio of specific heats.

◆ Gradient_Secondary

CVectorOfMatrix CNEMOEulerVariable::Gradient_Secondary
protected

Gradient of the primitive variables (T, vx, vy, vz, P, rho).

◆ H_INDEX

unsigned long CNEMOEulerVariable::H_INDEX
protected

◆ implicit

const bool CNEMOEulerVariable::implicit
protected

Implicit flag.

◆ indices

const CIndices<unsigned long> CNEMOEulerVariable::indices
protected

◆ ionization

bool CNEMOEulerVariable::ionization
protected

Presence of charged species in gas mixture.

◆ LAM_VISC_INDEX

unsigned long CNEMOEulerVariable::LAM_VISC_INDEX
protected

◆ MAXNVAR

constexpr size_t CNEMOEulerVariable::MAXNVAR = 25
staticconstexpr

◆ monoatomic

bool CNEMOEulerVariable::monoatomic = false
protected

Presence of single species gas.

◆ nSpecies

unsigned long CNEMOEulerVariable::nSpecies
protected

◆ P_INDEX

unsigned long CNEMOEulerVariable::P_INDEX
protected

◆ Precond_Beta

MatrixType CNEMOEulerVariable::Precond_Beta
protected

Low Mach number preconditioner value, Beta.

◆ Primitive_Aux

MatrixType CNEMOEulerVariable::Primitive_Aux
protected

Primitive auxiliary variables (Y_s, T, Tve, ...) in compressible flows.

◆ RHO_INDEX

unsigned long CNEMOEulerVariable::RHO_INDEX
protected

◆ RHOCVTR_INDEX

unsigned long CNEMOEulerVariable::RHOCVTR_INDEX
protected

◆ RHOCVVE_INDEX

unsigned long CNEMOEulerVariable::RHOCVVE_INDEX
protected

◆ RHOS_INDEX

unsigned long CNEMOEulerVariable::RHOS_INDEX
protected

◆ Secondary

MatrixType CNEMOEulerVariable::Secondary
protected

Primitive variables (T, vx, vy, vz, P, rho, h, c) in compressible flows.

◆ T_INDEX

unsigned long CNEMOEulerVariable::T_INDEX
protected

◆ Tve_Freestream

su2double CNEMOEulerVariable::Tve_Freestream
protected

Freestream vib-el temperature.

◆ TVE_INDEX

unsigned long CNEMOEulerVariable::TVE_INDEX
protected

◆ VEL_INDEX

unsigned long CNEMOEulerVariable::VEL_INDEX
protected

The documentation for this class was generated from the following files: