Skip to content

Commit 985bd3c

Browse files
moving Energy flag to CIncNSVariable and making it constant
1 parent b109542 commit 985bd3c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

SU2_CFD/include/variables/CIncEulerVariable.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ class CIncEulerVariable : public CFlowVariable {
7373
Streamwise_Periodic_RecoveredTemperature; /*!< \brief Recovered/Physical temperature [K] for streamwise periodic flow. */
7474
su2double TemperatureLimits[2]; /*!< \brief Temperature limits [K]. */
7575
su2double TemperatureInc = 0.0; /*!< \brief Temperature [K] imposed when energy equation is switch off. */
76-
bool Energy; /*!< \brief Flag for Energy equation in incompressible flows. */
7776
public:
7877
/*!
7978
* \brief Constructor of the class.

SU2_CFD/include/variables/CIncNSVariable.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class CIncNSVariable final : public CIncEulerVariable {
4040
private:
4141
VectorType Tau_Wall; /*!< \brief Magnitude of the wall shear stress from a wall function. */
4242
VectorType DES_LengthScale;
43+
const bool Energy; /*!< \brief Flag for Energy equation in incompressible flows. */
4344

4445
public:
4546
/*!

SU2_CFD/src/variables/CIncNSVariable.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030

3131
CIncNSVariable::CIncNSVariable(su2double pressure, const su2double *velocity, su2double enthalpy,
3232
unsigned long npoint, unsigned long ndim, unsigned long nvar, const CConfig *config) :
33-
CIncEulerVariable(pressure, velocity, enthalpy, npoint, ndim, nvar, config) {
33+
CIncEulerVariable(pressure, velocity, enthalpy, npoint, ndim, nvar, config),
34+
Energy(config->GetEnergy_Equation()) {
3435

3536
Vorticity.resize(nPoint,3);
3637
StrainMag.resize(nPoint);
@@ -46,7 +47,6 @@ CIncNSVariable::CIncNSVariable(su2double pressure, const su2double *velocity, su
4647
AuxVar.resize(nPoint,nAuxVar) = su2double(0.0);
4748
Grad_AuxVar.resize(nPoint,nAuxVar,nDim);
4849
}
49-
Energy = config->GetEnergy_Equation();
5050
if(!Energy) TemperatureInc = config->GetInc_Temperature_Init();
5151
}
5252

0 commit comments

Comments
 (0)