45 template <
class IndexType>
50 inline IndexType
NSpecies()
const {
return 0; }
51 inline IndexType
Pressure()
const {
return 0; }
52 inline IndexType
Velocity()
const {
return 1; }
56 inline IndexType
Beta()
const {
return nDim+4; }
65 inline IndexType
SpeciesDensities()
const {
return std::numeric_limits<IndexType>::max(); }
66 inline IndexType
Temperature_ve()
const {
return std::numeric_limits<IndexType>::max(); }
94 unsigned long npoint,
unsigned long ndim,
unsigned long nvar,
const CConfig *config);
108 return val_density <= 0.0;
117 for (
unsigned long iDim = 0; iDim <
nDim; iDim++) {
129 return (val_temperature <= val_temp_limits[0]) || (val_temperature >= val_temp_limits[1]);
202 for (
unsigned long iDim = 0; iDim <
nDim; iDim++)
212 for (
unsigned long iDim = 0; iDim <
nDim; iDim++)
221 for (
unsigned long iDim = 0; iDim <
nDim; iDim++)
Res_TruncError(iPoint,iDim+1) = 0.0;
297 for (
unsigned long iDim = 0; iDim <
nDim; iDim++)
Solution(iPoint, iDim+1) = val_vector[iDim];
Class for defining the common variables of flow solvers.
size_t size() const noexcept
Definition C2DContainer.hpp:222
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 for defining the variables of the incompressible Euler solver.
Definition CIncEulerVariable.hpp:41
su2double TemperatureLimits[2]
Temperature limits [K].
Definition CIncEulerVariable.hpp:76
CMatrixView< const su2double > GetVelocityGradient(unsigned long iPoint) const final
Get the velocity gradient.
Definition CIncEulerVariable.hpp:191
bool GetStrongBC(unsigned long iPoint) const final
Get the BC flag of the point.
Definition CIncEulerVariable.hpp:343
bool SetTemperature(unsigned long iPoint, su2double val_temperature, const su2double *val_temp_limits)
Set the value of the temperature for incompressible flows with energy equation.
Definition CIncEulerVariable.hpp:127
BoolVectorType strongBC
Flag for boundary conditions to indicate if a strong BC has been applied, currently only used to keep...
Definition CIncEulerVariable.hpp:79
su2double GetStreamwise_Periodic_RecoveredPressure(unsigned long iPoint) const final
Get the recovered pressure for streamwise periodic flow.
Definition CIncEulerVariable.hpp:269
void SetVel_ResTruncError_Zero(unsigned long iPoint) final
Set the momentum part of the truncation error to zero.
Definition CIncEulerVariable.hpp:220
VectorType Density_time_n1
Density at time n-1 for dual-time stepping.
Definition CIncEulerVariable.hpp:75
su2double GetDensity_time_n(unsigned long iPoint) const final
Get the density at time level n for dual-time stepping.
Definition CIncEulerVariable.hpp:305
VectorType Streamwise_Periodic_RecoveredPressure
Recovered/Physical pressure [Pa] for streamwise periodic flow.
Definition CIncEulerVariable.hpp:72
su2double GetProjVel(unsigned long iPoint, const su2double *val_vector) const final
Get the projected velocity in a unitary vector direction (compressible solver).
Definition CIncEulerVariable.hpp:200
void SetEnthalpy(unsigned long iPoint, su2double val_enthalpy)
Set the value of the enthalpy for incompressible flows with energy equation.
Definition CIncEulerVariable.hpp:136
void SetBetaInc2(unsigned long iPoint, su2double betainc2) final
Set the value of the beta coeffient for incompressible flows.
Definition CIncEulerVariable.hpp:144
static constexpr size_t MAXNVAR
Definition CIncEulerVariable.hpp:43
void SetVelSolutionVector(unsigned long iPoint, const su2double *val_vector) final
Specify a vector to set the velocity components of the solution.
Definition CIncEulerVariable.hpp:296
void SetDensity_time_n1(unsigned long iPoint, su2double val_density)
Set the density at time level n-1 for dual-time stepping.
Definition CIncEulerVariable.hpp:330
su2double GetTemperature(unsigned long iPoint) const final
Get the temperature of the flow.
Definition CIncEulerVariable.hpp:170
void SetSpecificHeatCp(unsigned long iPoint, su2double val_Cp) final
Set the specific heat Cp.
Definition CIncEulerVariable.hpp:232
void SetStreamwise_Periodic_RecoveredTemperature(unsigned long iPoint, su2double val_temperature) final
Set the recovered temperature for streamwise periodic flow.
Definition CIncEulerVariable.hpp:278
VectorType Streamwise_Periodic_RecoveredTemperature
Recovered/Physical temperature [K] for streamwise periodic flow.
Definition CIncEulerVariable.hpp:73
su2double GetPressure(unsigned long iPoint) const final
Get the flow pressure.
Definition CIncEulerVariable.hpp:152
void SetVelocity(unsigned long iPoint) final
Set the value of the density for the incompressible flows.
Definition CIncEulerVariable.hpp:115
su2double GetEnthalpy(unsigned long iPoint) const final
Get the enthalpy of the flow.
Definition CIncEulerVariable.hpp:176
void SetStrongBC(unsigned long iPoint)
Set the BC flag to true of the point.
Definition CIncEulerVariable.hpp:336
su2double GetStreamwise_Periodic_RecoveredTemperature(unsigned long iPoint) const final
Get the recovered temperature for streamwise periodic flow.
Definition CIncEulerVariable.hpp:287
su2double GetDensity(unsigned long iPoint) const final
Get the density of the flow.
Definition CIncEulerVariable.hpp:164
void SetVelocity_Old(unsigned long iPoint, const su2double *val_velocity) final
Set the velocity vector from the old solution.
Definition CIncEulerVariable.hpp:211
su2double GetBetaInc2(unsigned long iPoint) const final
Get the value of beta squared for the incompressible flow.
Definition CIncEulerVariable.hpp:158
su2double GetSpecificHeatCp(unsigned long iPoint) const final
Get the specific heat at constant P of the flow.
Definition CIncEulerVariable.hpp:247
void ResetStrongBC(unsigned long iPoint)
Set the BC flag to false of the point.
Definition CIncEulerVariable.hpp:349
su2double GetDensity_time_n1(unsigned long iPoint) const final
Get the density at time level n-1 for dual-time stepping.
Definition CIncEulerVariable.hpp:314
su2double GetVelocity(unsigned long iPoint, unsigned long iDim) const final
Get the velocity of the flow.
Definition CIncEulerVariable.hpp:183
bool SetPrimVar(unsigned long iPoint, CFluidModel *FluidModel) final
Set all the primitive variables for incompressible flows.
Definition CIncEulerVariable.cpp:82
void SetStreamwise_Periodic_RecoveredPressure(unsigned long iPoint, su2double val_pressure) final
Set the recovered pressure for streamwise periodic flow.
Definition CIncEulerVariable.hpp:260
su2double GetSpecificHeatCv(unsigned long iPoint) const final
Get the specific heat at constant V of the flow.
Definition CIncEulerVariable.hpp:253
void SetPressure(unsigned long iPoint) final
Set the value of the pressure.
Definition CIncEulerVariable.hpp:100
void SetSpecificHeatCv(unsigned long iPoint, su2double val_Cv) final
Set the specific heat Cv.
Definition CIncEulerVariable.hpp:239
bool SetDensity(unsigned long iPoint, su2double val_density) final
Set the value of the density for the incompressible flows.
Definition CIncEulerVariable.hpp:106
VectorType Density_time_n
Density at time n for dual-time stepping.
Definition CIncEulerVariable.hpp:74
void SetDensity_time_n(unsigned long iPoint, su2double val_density)
Set the density at time level n for dual-time stepping.
Definition CIncEulerVariable.hpp:323
const CIndices< unsigned long > indices
Definition CIncEulerVariable.hpp:70
Class to represent a matrix (without owning the data, this just wraps a pointer).
Definition container_decorators.hpp:40
MatrixType Solution
Solution of the problem.
Definition CVariable.hpp:55
MatrixType Solution_Old
Old solution of the problem R-K.
Definition CVariable.hpp:56
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
IndexType CpTotal() const
Definition CEulerVariable.hpp:65
IndexType Velocity() const
Definition CEulerVariable.hpp:57
IndexType Density() const
Definition CEulerVariable.hpp:59
IndexType Enthalpy() const
Definition CEulerVariable.hpp:60
IndexType Pressure() const
Definition CEulerVariable.hpp:58
IndexType Temperature() const
Definition CEulerVariable.hpp:56
Definition CIncEulerVariable.hpp:46
IndexType CpTotal() const
Definition CIncEulerVariable.hpp:61
IndexType NSpecies() const
Definition CIncEulerVariable.hpp:50
IndexType NDim() const
Definition CIncEulerVariable.hpp:49
IndexType Temperature() const
Definition CIncEulerVariable.hpp:53
IndexType Beta() const
Definition CIncEulerVariable.hpp:56
IndexType Velocity() const
Definition CIncEulerVariable.hpp:52
IndexType Density() const
Definition CIncEulerVariable.hpp:54
IndexType Enthalpy() const
Definition CIncEulerVariable.hpp:55
CIndices(IndexType ndim, IndexType)
Definition CIncEulerVariable.hpp:48
IndexType LaminarViscosity() const
Definition CIncEulerVariable.hpp:58
IndexType SpeciesDensities() const
Definition CIncEulerVariable.hpp:65
IndexType EddyViscosity() const
Definition CIncEulerVariable.hpp:59
IndexType ThermalConductivity() const
Definition CIncEulerVariable.hpp:60
const IndexType nDim
Definition CIncEulerVariable.hpp:47
IndexType Pressure() const
Definition CIncEulerVariable.hpp:51
IndexType SoundSpeed() const
Definition CIncEulerVariable.hpp:57
IndexType Temperature_ve() const
Definition CIncEulerVariable.hpp:66
IndexType CvTotal() const
Definition CIncEulerVariable.hpp:62