68 CFlowVariable(
unsigned long npoint,
unsigned long ndim,
unsigned long nvar,
unsigned long nprimvar,
69 unsigned long nprimvargrad,
const CConfig* config);
130 for (
unsigned long iVar = 0; iVar <
nPrimVar; iVar++)
Primitive(iPoint, iVar) = val_prim[iVar];
Declaration and inlines of the parent class for defining problem variables, function definitions in f...
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
su2double GetVelocity2(unsigned long iPoint) const final
Get the squared norm of the velocity.
Definition CFlowVariable.hpp:138
void AddSolution_New(unsigned long iPoint, unsigned long iVar, su2double val_solution) final
Add a value to the new solution container for Classical RK4.
Definition CFlowVariable.hpp:231
MatrixType Solution_New
New solution container for Classical RK4.
Definition CFlowVariable.hpp:50
su2double GetHarmonicBalance_Source(unsigned long iPoint, unsigned long iVar) const final
Get the harmonic balance source term.
Definition CFlowVariable.hpp:246
virtual su2double GetDensity_time_n(unsigned long iPoint) const =0
Get the density at time level n for dual-time stepping.
const MatrixType & GetLimiter_Primitive() const final
Definition CFlowVariable.hpp:206
const CVectorOfMatrix & GetGradient_Primitive() const final
Definition CFlowVariable.hpp:166
unsigned long GetnPrimVarGrad() const
Number of primitive variables that have a gradient/limiter column, from the start of the primitive ro...
Definition CFlowVariable.hpp:213
su2double GetGradient_Primitive(unsigned long iPoint, unsigned long iVar, unsigned long iDim) const final
Get the value of the primitive variables gradient.
Definition CFlowVariable.hpp:147
CVectorOfMatrix & Gradient_Reconstruction
Reference to the gradient of the primitive variables for MUSCL reconstruction for the convective term...
Definition CFlowVariable.hpp:43
void SetHarmonicBalance_Source(unsigned long iPoint, unsigned long iVar, su2double val_source) final
Set the harmonic balance source term.
Definition CFlowVariable.hpp:256
virtual su2double GetDensity_time_n1(unsigned long iPoint) const =0
Get the density at time level n-1 for dual-time stepping.
su2activevector & GetStrainMag()
Get the entire vector of the rate of strain magnitude.
Definition CFlowVariable.hpp:279
const CVectorOfMatrix & GetGradient_Reconstruction() const final
Definition CFlowVariable.hpp:182
const su2double * GetVorticity(unsigned long iPoint) const final
Definition CFlowVariable.hpp:266
MatrixType Vorticity
Vorticity of the flow field.
Definition CFlowVariable.hpp:55
const MatrixType & GetPrimitive() const final
Get the primitive variables for all points.
Definition CFlowVariable.hpp:110
void SetSolution_New() final
Set the new solution container for Classical RK4.
Definition CFlowVariable.cpp:102
MatrixType & GetLimiter_Primitive() final
Get the primitive variables limiter.
Definition CFlowVariable.hpp:205
void SetPrimitive(unsigned long iPoint, const su2double *val_prim) final
Set the value of the primitive variables.
Definition CFlowVariable.hpp:129
CMatrixView< su2double > GetGradient_Primitive(unsigned long iPoint, unsigned long iVarStart=0) final
Get the value of the primitive variables gradient.
Definition CFlowVariable.hpp:157
su2double GetPrimitive(unsigned long iPoint, unsigned long iVar) const final
Get a primitive variable.
Definition CFlowVariable.hpp:95
MatrixType HB_Source
harmonic balance source term.
Definition CFlowVariable.hpp:51
su2double * GetVorticity(unsigned long iPoint) final
Get the values of the vorticity (3 values also in 2D).
Definition CFlowVariable.hpp:265
CMatrixView< su2double > GetGradient_Reconstruction(unsigned long iPoint) final
Get the array of the reconstruction variables gradient at a node.
Definition CFlowVariable.hpp:173
CVectorOfMatrix & GetGradient_Reconstruction() final
Get the reconstruction gradient for primitive variable at all points.
Definition CFlowVariable.hpp:181
CVectorOfMatrix Gradient_Aux
Auxiliary structure to store a second gradient for reconstruction, if required.
Definition CFlowVariable.hpp:46
su2vector< int8_t > NonPhysicalEdgeCounter
Non-physical reconstruction counter for each edge.
Definition CFlowVariable.hpp:72
su2double * GetLimiter_Primitive(unsigned long iPoint) final
Get the value of the primitive variables gradient.
Definition CFlowVariable.hpp:199
su2double GetSolution_New(unsigned long iPoint, unsigned long iVar) const final
Get the new solution of the problem (Classical RK4).
Definition CFlowVariable.hpp:221
void SetPrimitive(unsigned long iPoint, unsigned long iVar, su2double val_prim) final
Set the value of the primitive variables.
Definition CFlowVariable.hpp:119
su2double GetStrainMag(unsigned long iPoint) const final
Get the magnitude of rate of strain.
Definition CFlowVariable.hpp:273
MatrixType Limiter_Primitive
Limiter of the primitive variables.
Definition CFlowVariable.hpp:47
T UpdateNonPhysicalEdgeCounter(unsigned long iEdge, const T &isNonPhys) const
Updates the non-physical counter of an edge.
Definition CFlowVariable.hpp:80
CVectorOfMatrix Gradient_Primitive
Gradient of the primitive variables.
Definition CFlowVariable.hpp:42
su2double * GetPrimitive(unsigned long iPoint) final
Get all the primitive variables of the problem.
Definition CFlowVariable.hpp:104
su2double GetLimiter_Primitive(unsigned long iPoint, unsigned long iVar) const final
Get the value of the primitive variables gradient.
Definition CFlowVariable.hpp:190
MatrixType Primitive
Primitive variables.
Definition CFlowVariable.hpp:41
CVectorOfMatrix & GetGradient_Primitive() final
Get the primitive variable gradients for all points.
Definition CFlowVariable.hpp:165
VectorType StrainMag
Magnitude of rate of strain tensor.
Definition CFlowVariable.hpp:56
VectorType Velocity2
Squared norm of velocity.
Definition CFlowVariable.hpp:48
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.
Definition CVariable.hpp:50
unsigned long nPrimVar
Number of primitive variables.
Definition CVariable.hpp:109
unsigned long nPrimVarGrad
Number of primitives for which a gradient is computed.
Definition CVariable.hpp:110
passivedouble su2double
Definition code_config.hpp:181