33#include "../fluid/CNEMOGas.hpp"
34#include "../../../Common/include/toolboxes/geometry_toolbox.hpp"
47 template <
class IndexType>
66 inline IndexType
CpTotal()
const {
return std::numeric_limits<IndexType>::max();}
120 su2double val_temperature_ve,
unsigned long npoint,
122 unsigned long nvar,
unsigned long nvalprim,
158 Secondary(iPoint,iVar) = val_secondary[iVar];
274 for (
unsigned long iDim = 0; iDim <
nDim; iDim++)
285 for (
unsigned long iDim = 0; iDim <
nDim; iDim++) {
296 for (
unsigned long iDim = 0; iDim <
nDim; iDim++){
428 for (
unsigned long iDim = 0; iDim <
nDim; iDim++)
Class for defining the common variables of flow solvers.
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Class for defining the common variables of flow solvers.
Definition CFlowVariable.hpp:38
CVectorOfMatrix Gradient_Primitive
Gradient of the primitive variables.
Definition CFlowVariable.hpp:42
MatrixType Primitive
Primitive variables.
Definition CFlowVariable.hpp:41
VectorType Velocity2
Squared norm of velocity.
Definition CFlowVariable.hpp:48
Main class for defining the Thermo-Physical Model.
Definition CFluidModel.hpp:47
Class to represent a matrix (without owning the data, this just wraps a pointer).
Definition container_decorators.hpp:40
Main class for defining the variables of the NEMO Euler's solver.
Definition CNEMOEulerVariable.hpp:43
su2double GetGamma(unsigned long iPoint)
Returns the stored value of Gamma at the specified node.
Definition CNEMOEulerVariable.hpp:366
unsigned long RHO_INDEX
Definition CNEMOEulerVariable.hpp:97
su2double GetVelocity(unsigned long iPoint, unsigned long iDim) const final
Get the velocity of the flow.
Definition CNEMOEulerVariable.hpp:257
unsigned short GetRhoCvtrIndex() const
Retrieves the value of the RhoCvtr in the primitive variable vector.
Definition CNEMOEulerVariable.hpp:415
unsigned short GetRhosIndex() const
Retrieves the value of the species density in the primitive variable vector.
Definition CNEMOEulerVariable.hpp:375
const CIndices< unsigned long > indices
Definition CNEMOEulerVariable.hpp:71
bool ionization
Presence of charged species in gas mixture.
Definition CNEMOEulerVariable.hpp:73
const MatrixType & GetPrimitive_Aux() const
Get the primitive variables for all points.
Definition CNEMOEulerVariable.hpp:173
unsigned short GetPIndex() const
Retrieves the value of the pressure in the primitive variable vector.
Definition CNEMOEulerVariable.hpp:385
void SetPrimitive_Aux(unsigned long iPoint, unsigned long iVar, su2double val_prim)
Set the value of the primitive auxiliary variables - with mass fractions.
Definition CNEMOEulerVariable.hpp:167
static constexpr size_t MAXNVAR
Definition CNEMOEulerVariable.hpp:45
void SetVelocity2(unsigned long iPoint) final
Set the norm 2 of the velocity.
Definition CNEMOEulerVariable.cpp:128
unsigned long A_INDEX
Definition CNEMOEulerVariable.hpp:97
CNEMOGas * fluidmodel
Index definition for NEMO pritimive variables.
Definition CNEMOEulerVariable.hpp:93
unsigned long RHOCVTR_INDEX
Definition CNEMOEulerVariable.hpp:97
unsigned long H_INDEX
Definition CNEMOEulerVariable.hpp:97
unsigned long RHOCVVE_INDEX
Definition CNEMOEulerVariable.hpp:97
unsigned short GetVelIndex() const
Retrieves the value of the velocity in the primitive variable vector.
Definition CNEMOEulerVariable.hpp:400
void SetVelocity(unsigned long iPoint) final
Set the velocity vector from the solution.
Definition CNEMOEulerVariable.hpp:283
MatrixType Secondary
Primitive variables (T, vx, vy, vz, P, rho, h, c) in compressible flows.
Definition CNEMOEulerVariable.hpp:82
su2double GetEnthalpy(unsigned long iPoint) const final
Get the enthalpy of the flow.
Definition CNEMOEulerVariable.hpp:226
su2double GetMassFraction(unsigned long iPoint, unsigned long val_Species) const final
Get the mass fraction of species s.
Definition CNEMOEulerVariable.hpp:359
void SetVelocity_Old(unsigned long iPoint, const su2double *val_velocity) final
Set the velocity vector from the old solution.
Definition CNEMOEulerVariable.hpp:295
unsigned long T_INDEX
Definition CNEMOEulerVariable.hpp:96
su2double * GetEve(unsigned long iPoint)
Returns the stored value of Eve at the specified node.
Definition CNEMOEulerVariable.hpp:332
MatrixType dPdU
Partial derivative of pressure w.r.t. conserved variables.
Definition CNEMOEulerVariable.hpp:86
unsigned long EDDY_VISC_INDEX
Definition CNEMOEulerVariable.hpp:98
su2double GetTemperature(unsigned long iPoint) const final
Get the temperature of the flow.
Definition CNEMOEulerVariable.hpp:250
CVectorOfMatrix Gradient_Secondary
Gradient of the primitive variables (T, vx, vy, vz, P, rho).
Definition CNEMOEulerVariable.hpp:83
su2double GetDensity_time_n1(unsigned long iPoint) const final
Get the density at time level n-1 for dual-time stepping.
Definition CNEMOEulerVariable.hpp:137
void SetVel_ResTruncError_Zero(unsigned long iPoint) final
Set the momentum part of the truncation error to zero.
Definition CNEMOEulerVariable.hpp:436
su2double GetSecondary(unsigned long iPoint, unsigned long iVar) const final
Get the primitive variables.
Definition CNEMOEulerVariable.hpp:180
unsigned short GetAIndex() const
Retrieves the value of the soundspeed in the primitive variable vector.
Definition CNEMOEulerVariable.hpp:410
su2double GetDensity(unsigned long iPoint, unsigned long val_Species) const final
Get the specie density of the flow.
Definition CNEMOEulerVariable.hpp:238
unsigned long TVE_INDEX
Definition CNEMOEulerVariable.hpp:96
unsigned long P_INDEX
Definition CNEMOEulerVariable.hpp:96
MatrixType Cvves
Specific heat of vib-el mode w.r.t. species.
Definition CNEMOEulerVariable.hpp:90
unsigned short GetHIndex() const
Retrieves the value of the enthalpy in the primitive variable vector.
Definition CNEMOEulerVariable.hpp:405
bool SetTemperature_ve(unsigned long iPoint, su2double val_Tve) final
Sets the vibrational electronic temperature of the flow.
Definition CNEMOEulerVariable.hpp:312
unsigned short GetTveIndex() const
Retrieves the value of the vibe-elec temperature in the primitive variable vector.
Definition CNEMOEulerVariable.hpp:395
unsigned long LAM_VISC_INDEX
Definition CNEMOEulerVariable.hpp:98
su2double GetRhoCv_ve(unsigned long iPoint) const final
Get the mixture specific heat at constant volume (vib.-el.).
Definition CNEMOEulerVariable.hpp:326
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 compressib...
Definition CNEMOEulerVariable.hpp:427
unsigned long VEL_INDEX
Definition CNEMOEulerVariable.hpp:96
su2double GetEnergy(unsigned long iPoint) const final
Get the energy of the flow.
Definition CNEMOEulerVariable.hpp:244
const bool implicit
Implicit flag.
Definition CNEMOEulerVariable.hpp:101
su2double * GetdTdU(unsigned long iPoint) final
Set partial derivative of temperature w.r.t. density .
Definition CNEMOEulerVariable.hpp:347
unsigned short GetRhoIndex() const
Retrieves the value of the total density in the primitive variable vector.
Definition CNEMOEulerVariable.hpp:380
MatrixType dTvedU
Partial derivative of vib.-el. temperature w.r.t. conserved variables.
Definition CNEMOEulerVariable.hpp:88
su2double GetProjVel(unsigned long iPoint, const su2double *val_vector) const final
Get the projected velocity in a unitary vector direction (compressible solver).
Definition CNEMOEulerVariable.hpp:272
su2double GetDensity(unsigned long iPoint) const final
Get the density of the flow.
Definition CNEMOEulerVariable.hpp:232
bool SetPrimVar(unsigned long iPoint, CFluidModel *FluidModel) override
Set all the primitive variables for compressible flows.
Definition CNEMOEulerVariable.cpp:140
su2double GetRhoCv_tr(unsigned long iPoint) const final
Get the mixture specific heat at constant volume (trans.-rot.).
Definition CNEMOEulerVariable.hpp:319
su2double * GetdPdU(unsigned long iPoint) final
Set partial derivative of pressure w.r.t. density .
Definition CNEMOEulerVariable.hpp:342
VectorType Gamma
Ratio of specific heats.
Definition CNEMOEulerVariable.hpp:91
su2double GetTemperature_ve(unsigned long iPoint) const final
A virtual member.
Definition CNEMOEulerVariable.hpp:305
su2double * GetCvve(unsigned long iPoint)
Returns the value of Cvve at the specified node.
Definition CNEMOEulerVariable.hpp:337
MatrixType eves
energy of vib-el mode w.r.t. species.
Definition CNEMOEulerVariable.hpp:89
su2double * GetSecondary(unsigned long iPoint) final
Get the primitive variables of the problem.
Definition CNEMOEulerVariable.hpp:186
bool monoatomic
Presence of single species gas.
Definition CNEMOEulerVariable.hpp:74
su2double Tve_Freestream
Freestream vib-el temperature.
Definition CNEMOEulerVariable.hpp:100
unsigned long RHOS_INDEX
Definition CNEMOEulerVariable.hpp:96
su2double GetSoundSpeed(unsigned long iPoint) const final
Get the speed of the sound.
Definition CNEMOEulerVariable.hpp:220
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.
Definition CNEMOEulerVariable.cpp:168
MatrixType Precond_Beta
Low Mach number preconditioner value, Beta.
Definition CNEMOEulerVariable.hpp:76
void SetSecondary(unsigned long iPoint, const su2double *val_secondary) final
Set the value of the primitive variables.
Definition CNEMOEulerVariable.hpp:156
unsigned long nSpecies
Definition CNEMOEulerVariable.hpp:98
unsigned short GetRhoCvveIndex() const
Retrieves the value of the RhoCvve in the primitive variable vector.
Definition CNEMOEulerVariable.hpp:420
MatrixType Primitive_Aux
Primitive auxiliary variables (Y_s, T, Tve, ...) in compressible flows.
Definition CNEMOEulerVariable.hpp:79
su2double GetDensity_time_n(unsigned long iPoint) const final
Get the density at time level n for dual-time stepping.
Definition CNEMOEulerVariable.hpp:130
CMatrixView< const su2double > GetVelocityGradient(unsigned long iPoint) const final
Get the velocity gradient.
Definition CNEMOEulerVariable.hpp:263
MatrixType dTdU
Partial derivative of temperature w.r.t. conserved variables.
Definition CNEMOEulerVariable.hpp:87
unsigned short GetTIndex() const
Retrieves the value of the in temperature the primitive variable vector.
Definition CNEMOEulerVariable.hpp:390
su2double * GetdTvedU(unsigned long iPoint) final
Set partial derivative of vib.-el. temperature w.r.t. density .
Definition CNEMOEulerVariable.hpp:352
su2double GetPressure(unsigned long iPoint) const final
Get the flow pressure.
Definition CNEMOEulerVariable.hpp:214
void SetSecondary(unsigned long iPoint, unsigned long iVar, su2double val_secondary) final
Set the value of the primitive variables.
Definition CNEMOEulerVariable.hpp:149
Class for defining the 2T (trans-rotational and vibro-electronic) nonequilibrium gas model.
Definition CNEMOGas.hpp:38
MatrixType Solution
Solution of the problem.
Definition CVariable.hpp:55
MatrixType & GetSolution_time_n1()
Definition CVariable.hpp:568
unsigned long nSecondaryVar
Number of secondary variables.
Definition CVariable.hpp:111
MatrixType Solution_Old
Old solution of the problem R-K.
Definition CVariable.hpp:56
MatrixType & GetSolution_time_n()
Definition CVariable.hpp:560
MatrixType Res_TruncError
Truncation error for multigrid cycle.
Definition CVariable.hpp:91
unsigned long nDim
Number of dimension of the problem.
Definition CVariable.hpp:107
passivedouble su2double
Definition code_config.hpp:181
FORCEINLINE ARRAY_T pow(const ARRAY_T &a, const ARRAY_T &b)
Definition special_vectorization.hpp:179
@ V
Menter k-w SST model with vorticity production terms.
IndexType Velocity() const
Definition CEulerVariable.hpp:57
Definition CNEMOEulerVariable.hpp:48
IndexType ThermalConductivity() const
Definition CNEMOEulerVariable.hpp:67
IndexType Velocity() const
Definition CNEMOEulerVariable.hpp:56
IndexType EddyViscosity() const
Definition CNEMOEulerVariable.hpp:64
IndexType Enthalpy() const
Definition CNEMOEulerVariable.hpp:59
IndexType NDim() const
Definition CNEMOEulerVariable.hpp:51
IndexType Temperature_ve() const
Definition CNEMOEulerVariable.hpp:55
IndexType CpTotal() const
Definition CNEMOEulerVariable.hpp:66
IndexType SpeciesDensities() const
Definition CNEMOEulerVariable.hpp:53
IndexType SoundSpeed() const
Definition CNEMOEulerVariable.hpp:60
CIndices(IndexType ndim, IndexType nspecies)
Definition CNEMOEulerVariable.hpp:50
IndexType Temperature() const
Definition CNEMOEulerVariable.hpp:54
IndexType RhoCvtr() const
Definition CNEMOEulerVariable.hpp:61
const IndexType nDim
Definition CNEMOEulerVariable.hpp:49
IndexType Pressure() const
Definition CNEMOEulerVariable.hpp:57
const IndexType nSpecies
Definition CNEMOEulerVariable.hpp:49
IndexType RhoCvve() const
Definition CNEMOEulerVariable.hpp:62
IndexType NSpecies() const
Definition CNEMOEulerVariable.hpp:52
IndexType Density() const
Definition CNEMOEulerVariable.hpp:58
IndexType LaminarViscosity() const
Definition CNEMOEulerVariable.hpp:63