Skip to content

Commit ef67b3a

Browse files
authored
Merge branch 'develop' into tab_removal
2 parents 3bc55bb + fa44fcb commit ef67b3a

36 files changed

Lines changed: 618 additions & 652 deletions

Common/src/CConfig.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3536,8 +3536,8 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_
35363536
}
35373537

35383538
if (nemo){
3539-
if (Kind_ConvNumScheme_Flow == SPACE_CENTERED || Kind_Upwind_Flow == ROE || Kind_Upwind_Flow == MSW || Kind_Upwind_Flow == AUSMPWPLUS)
3540-
SU2_MPI::Error("Only AUSM and AUSMPLUSUP2 upwind schemes are operational for NEMO. Feel free to fix the others!", CURRENT_FUNCTION);
3539+
if (Kind_Upwind_Flow == AUSMPWPLUS)
3540+
SU2_MPI::Error("AUSMPW+ is extremely unstable. Feel free to fix me!", CURRENT_FUNCTION);
35413541
}
35423542

35433543
if(GetBoolTurbomachinery()){

SU2_CFD/include/fluid/CMutationTCLib.hpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,34 +71,34 @@ class CMutationTCLib : public CNEMOGas {
7171
vector<su2double>& GetSpeciesCvTraRot() final;
7272

7373
/*!
74-
* \brief Get species V-E specific heats at constant volume.
74+
* \brief Compute species V-E specific heats at constant volume.
7575
*/
76-
vector<su2double>& GetSpeciesCvVibEle() final;
76+
vector<su2double>& ComputeSpeciesCvVibEle() final;
7777

7878
/*!
79-
* \brief Get mixture energies (total internal energy and vibrational energy).
79+
* \brief Compute mixture energies (total internal energy and vibrational energy).
8080
*/
81-
vector<su2double>& GetMixtureEnergies() final;
81+
vector<su2double>& ComputeMixtureEnergies() final;
8282

8383
/*!
84-
* \brief Get vector of species V-E energy.
84+
* \brief Compute vector of species V-E energy.
8585
*/
86-
vector<su2double>& GetSpeciesEve(su2double val_T) final;
86+
vector<su2double>& ComputeSpeciesEve(su2double val_T) final;
8787

8888
/*!
89-
* \brief Get species net production rates.
89+
* \brief Compute species net production rates.
9090
*/
91-
vector<su2double>& GetNetProductionRates() final;
91+
vector<su2double>& ComputeNetProductionRates() final;
9292

9393
/*!
94-
* \brief Get vibrational energy source term.
94+
* \brief Compute vibrational energy source term.
9595
*/
96-
su2double GetEveSourceTerm() final;
96+
su2double ComputeEveSourceTerm() final;
9797

9898
/*!
99-
* \brief Get species enthalpies.
99+
* \brief Compute species enthalpies.
100100
*/
101-
vector<su2double>& GetSpeciesEnthalpy(su2double val_T, su2double val_Tve, su2double *val_eves) final;
101+
vector<su2double>& ComputeSpeciesEnthalpy(su2double val_T, su2double val_Tve, su2double *val_eves) final;
102102

103103
/*!
104104
* \brief Get species diffusion coefficients.
@@ -116,9 +116,9 @@ class CMutationTCLib : public CNEMOGas {
116116
vector<su2double>& GetThermalConductivities() final;
117117

118118
/*!
119-
* \brief Get translational and vibrational temperatures vector.
119+
* \brief Compute translational and vibrational temperatures vector.
120120
*/
121-
vector<su2double>& GetTemperatures(vector<su2double>& val_rhos, su2double rhoE, su2double rhoEve, su2double rhoEvel) final;
121+
vector<su2double>& ComputeTemperatures(vector<su2double>& val_rhos, su2double rhoE, su2double rhoEve, su2double rhoEvel) final;
122122

123123
/*!
124124
* \brief Get species molar mass.

SU2_CFD/include/fluid/CNEMOGas.hpp

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -113,34 +113,34 @@ class CNEMOGas : public CFluidModel {
113113
virtual const vector<su2double>& GetSpeciesCvTraRot() = 0;
114114

115115
/*!
116-
* \brief Get species V-E specific heats at constant volume.
116+
* \brief Compute species V-E specific heats at constant volume.
117117
*/
118-
virtual vector<su2double>& GetSpeciesCvVibEle() = 0;
118+
virtual vector<su2double>& ComputeSpeciesCvVibEle() = 0;
119119

120120
/*!
121-
* \brief Get mixture energies (total internal energy and vibrational energy).
121+
* \brief Compute mixture energies (total internal energy and vibrational energy).
122122
*/
123-
virtual vector<su2double>& GetMixtureEnergies() = 0;
123+
virtual vector<su2double>& ComputeMixtureEnergies() = 0;
124124

125125
/*!
126-
* \brief Get species net production rates.
126+
* \brief Compute species net production rates.
127127
*/
128-
virtual vector<su2double>& GetNetProductionRates() = 0;
128+
virtual vector<su2double>& ComputeNetProductionRates() = 0;
129129

130130
/*!
131-
* \brief Get vibrational energy source term.
131+
* \brief Compute vibrational energy source term.
132132
*/
133-
virtual su2double GetEveSourceTerm() { return 0; }
133+
virtual su2double ComputeEveSourceTerm() { return 0; }
134134

135135
/*!
136-
* \brief Get vector of species V-E energy.
136+
* \brief Compute vector of species V-E energy.
137137
*/
138-
virtual vector<su2double>& GetSpeciesEve(su2double val_T) = 0;
138+
virtual vector<su2double>& ComputeSpeciesEve(su2double val_T) = 0;
139139

140140
/*!
141-
* \brief Get species enthalpies.
141+
* \brief Compute species enthalpies.
142142
*/
143-
virtual vector<su2double>& GetSpeciesEnthalpy(su2double val_T, su2double val_Tve, su2double *val_eves) = 0;
143+
virtual vector<su2double>& ComputeSpeciesEnthalpy(su2double val_T, su2double val_Tve, su2double *val_eves) = 0;
144144

145145
/*!
146146
* \brief Get species diffusion coefficients.
@@ -158,25 +158,30 @@ class CNEMOGas : public CFluidModel {
158158
virtual vector<su2double>& GetThermalConductivities() = 0;
159159

160160
/*!
161-
* \brief Get translational and vibrational temperatures vector.
161+
* \brief Compute translational and vibrational temperatures vector.
162162
*/
163-
virtual vector<su2double>& GetTemperatures(vector<su2double>& val_rhos, su2double rhoEmix, su2double rhoEve, su2double rhoEvel) = 0;
163+
virtual vector<su2double>& ComputeTemperatures(vector<su2double>& val_rhos, su2double rhoEmix, su2double rhoEve, su2double rhoEvel) = 0;
164164

165165
/*!
166-
* \brief Get speed of sound.
166+
* \brief Compute speed of sound.
167167
*/
168168
su2double ComputeSoundSpeed();
169169

170170
/*!
171-
* \brief Get pressure.
171+
* \brief Compute pressure.
172172
*/
173173
su2double ComputePressure();
174174

175175
/*!
176-
* \brief Get gas constant.
176+
* \brief Compute gas constant.
177177
*/
178178
su2double ComputeGasConstant();
179179

180+
/*!
181+
* \brief Compute ratio of specific heats (Gamma).
182+
*/
183+
su2double ComputeGamma();
184+
180185
/*!
181186
* \brief Get derivative of pressure w.r.t. conservative variables.
182187
*/
@@ -208,19 +213,19 @@ class CNEMOGas : public CFluidModel {
208213
inline void SetEves(vector<su2double>& val_eves) { eves = val_eves; }
209214

210215
/*!
211-
* \brief Get rhoCvtr.
216+
* \brief Compute rhoCvtr.
212217
*/
213-
inline su2double GetrhoCvtr() {
218+
inline su2double ComputerhoCvtr() {
214219
rhoCvtr = 0.0;
215220
for (iSpecies = 0; iSpecies < nHeavy; iSpecies++)
216221
rhoCvtr += rhos[iSpecies]*Cvtrs[iSpecies];
217222
return rhoCvtr;
218223
}
219224

220225
/*!
221-
* \brief Get rhoCvtr.
226+
* \brief Compute rhoCvve.
222227
*/
223-
su2double GetrhoCvve();
228+
su2double ComputerhoCvve();
224229

225230
/*!
226231
* \brief Get species molar mass.

SU2_CFD/include/fluid/CUserDefinedTCLib.hpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -103,34 +103,34 @@ class CUserDefinedTCLib : public CNEMOGas {
103103
vector<su2double>& GetSpeciesCvTraRot() final;
104104

105105
/*!
106-
* \brief Get species V-E specific heats at constant volume.
106+
* \brief Compute species V-E specific heats at constant volume.
107107
*/
108-
vector<su2double>& GetSpeciesCvVibEle() final;
108+
vector<su2double>& ComputeSpeciesCvVibEle() final;
109109

110110
/*!
111-
* \brief Get mixture energies (total internal energy and vibrational energy).
111+
* \brief Compute mixture energies (total internal energy and vibrational energy).
112112
*/
113-
vector<su2double>& GetMixtureEnergies() final;
113+
vector<su2double>& ComputeMixtureEnergies() final;
114114

115115
/*!
116-
* \brief Get vector of species V-E energy.
116+
* \brief Compute species V-E energy.
117117
*/
118-
vector<su2double>& GetSpeciesEve(su2double val_T) final;
118+
vector<su2double>& ComputeSpeciesEve(su2double val_T) final;
119119

120120
/*!
121-
* \brief Get species net production rates.
121+
* \brief Compute species net production rates.
122122
*/
123-
vector<su2double>& GetNetProductionRates() final;
123+
vector<su2double>& ComputeNetProductionRates() final;
124124

125125
/*!
126-
* \brief Get vibrational energy source term.
126+
* \brief Compute vibrational energy source term.
127127
*/
128-
su2double GetEveSourceTerm() final;
128+
su2double ComputeEveSourceTerm() final;
129129

130130
/*!
131-
* \brief Get species enthalpies.
131+
* \brief Compute species enthalpies.
132132
*/
133-
vector<su2double>& GetSpeciesEnthalpy(su2double val_T, su2double val_Tve, su2double *val_eves) final;
133+
vector<su2double>& ComputeSpeciesEnthalpy(su2double val_T, su2double val_Tve, su2double *val_eves) final;
134134

135135
/*!
136136
* \brief Get species diffusion coefficients.
@@ -148,9 +148,9 @@ class CUserDefinedTCLib : public CNEMOGas {
148148
vector<su2double>& GetThermalConductivities() final;
149149

150150
/*!
151-
* \brief Get translational and vibrational temperatures vector.
151+
* \brief Compute translational and vibrational temperatures vector.
152152
*/
153-
vector<su2double>& GetTemperatures(vector<su2double>& val_rhos, su2double rhoEmix, su2double rhoEve, su2double rhoEvel) final;
153+
vector<su2double>& ComputeTemperatures(vector<su2double>& val_rhos, su2double rhoEmix, su2double rhoEve, su2double rhoEvel) final;
154154

155155
private:
156156

@@ -164,7 +164,7 @@ class CUserDefinedTCLib : public CNEMOGas {
164164
* \param[out] A - Reference to coefficient array.
165165
* \param[in] val_reaction - Reaction number indicator.
166166
*/
167-
void GetKeqConstants(unsigned short val_Reaction);
167+
void ComputeKeqConstants(unsigned short val_Reaction);
168168

169169
/*!
170170
* \brief Get species diffusion coefficients with Wilke/Blottner/Eucken transport model.

SU2_CFD/include/numerics/CNumerics.hpp

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,16 +1509,48 @@ class CNumerics {
15091509
*/
15101510
static void tql2(su2double **V, su2double *d, su2double *e, unsigned short n);
15111511

1512+
/*!
1513+
* \brief Set the pressure derivatives.
1514+
* \param[in] val_dPdU_i - pressure derivatives at i.
1515+
* \param[in] val_dPdU_j - pressure derivatives at j.
1516+
*/
15121517
virtual inline void SetdPdU(su2double *val_dPdU_i, su2double *val_dPdU_j) { }
15131518

1519+
/*!
1520+
* \brief Set the temperature derivatives.
1521+
* \param[in] val_dTdU_i - temperature derivatives at i.
1522+
* \param[in] val_dTdU_j - temperature derivatives at j.
1523+
*/
15141524
virtual inline void SetdTdU(su2double *val_dTdU_i, su2double *val_dTdU_j) { }
15151525

1526+
/*!
1527+
* \brief Set the vib-el temperture derivatives.
1528+
* \param[in] val_dTvedU_i - t_ve derivatives at i.
1529+
* \param[in] val_dTvedU_j - t_ve derivatives at j.
1530+
*/
15161531
virtual inline void SetdTvedU(su2double *val_dTvedU_i, su2double *val_dTvedU_j) { }
15171532

1533+
/*!
1534+
* \brief Set the vib-elec energy.
1535+
* \param[in] val_Eve_i - vib-el energy at i.
1536+
* \param[in] val_Eve_j - vib-el energy at j.
1537+
*/
15181538
virtual inline void SetEve(su2double *val_Eve_i, su2double *val_Eve_j) { }
15191539

1540+
/*!
1541+
* \brief Set the vib-elec specific heat.
1542+
* \param[in] val_Cvve_i - Cvve at i.
1543+
* \param[in] val_Cvve_j - Cvve at j.
1544+
*/
15201545
virtual inline void SetCvve(su2double *val_Cvve_i, su2double *val_Cvve_j) { }
15211546

1547+
/*!
1548+
* \brief Set the ratio of specific heats.
1549+
* \param[in] val_Gamma_i - Gamma at i.
1550+
* \param[in] val_Gamma_j - Gamma at j.
1551+
*/
1552+
virtual inline void SetGamma(su2double val_Gamma_i, su2double val_Gamma_j) { }
1553+
15221554
};
15231555

15241556
/*!

SU2_CFD/include/numerics/NEMO/CNEMONumerics.hpp

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class CNEMONumerics : public CNumerics {
5050
su2double *dPdU_i, *dPdU_j;
5151
su2double *dTdU_i, *dTdU_j;
5252
su2double *dTvedU_i, *dTvedU_j;
53+
su2double Gamma_i, Gamma_j;
5354

5455
vector<su2double> hs;
5556
su2double *eve_i, *eve_j, *Cvve_i, *Cvve_j;
@@ -185,17 +186,50 @@ class CNEMONumerics : public CNumerics {
185186
* \param[out] val_invp_tensor - Pointer to inverse of the P matrix.
186187
*/
187188
void GetPMatrix_inv(const su2double *U, const su2double *V, const su2double *val_dPdU,
188-
const su2double *val_normal, const su2double *l, const su2double *m,
189-
su2double **val_invp_tensor) const;
189+
const su2double *val_normal, const su2double *l, const su2double *m,
190+
su2double **val_invp_tensor) const;
190191

192+
193+
/*!
194+
* \brief Set the pressure derivatives.
195+
* \param[in] val_dPdU_i - pressure derivatives at i.
196+
* \param[in] val_dPdU_j - pressure derivatives at j.
197+
*/
191198
inline void SetdPdU(su2double *val_dPdU_i, su2double *val_dPdU_j) final { dPdU_i = val_dPdU_i; dPdU_j = val_dPdU_j; }
192-
199+
200+
/*!
201+
* \brief Set the temperature derivatives.
202+
* \param[in] val_dTdU_i - temperature derivatives at i.
203+
* \param[in] val_dTdU_j - temperature derivatives at j.
204+
*/
193205
inline void SetdTdU(su2double *val_dTdU_i, su2double *val_dTdU_j) final { dTdU_i = val_dTdU_i; dTdU_j = val_dTdU_j; }
194206

207+
/*!
208+
* \brief Set the vib-el temperature derivatives.
209+
* \param[in] val_dTvedU_i - t_ve derivatives at i.
210+
* \param[in] val_dTvedU_j - t_ve derivatives at j.
211+
*/
195212
inline void SetdTvedU(su2double *val_dTvedU_i, su2double *val_dTvedU_j) final { dTvedU_i = val_dTvedU_i; dTvedU_j = val_dTvedU_j; }
196213

214+
/*!
215+
* \brief Set the vib-el energy.
216+
* \param[in] val_Eve_i - vib-el energy at i.
217+
* \param[in] val_Eve_j - vib-el energy at j.
218+
*/
197219
inline void SetEve(su2double *val_Eve_i, su2double *val_Eve_j) final {eve_i = val_Eve_i; eve_j = val_Eve_j; }
198220

221+
/*!
222+
* \brief Set the Cvve.
223+
* \param[in] val_Cvve_i - cvve at i.
224+
* \param[in] val_Cvve_j - cvve at j.
225+
*/
199226
inline void SetCvve(su2double *val_Cvve_i, su2double *val_Cvve_j) final {Cvve_i = val_Cvve_i; Cvve_j = val_Cvve_j; }
200227

228+
/*!
229+
* \brief Set the ratio of specific heats.
230+
* \param[in] val_Gamma_i - Gamma at i.
231+
* \param[in] val_Gamma_j - Gamma at j.
232+
*/
233+
inline void SetGamma(su2double val_Gamma_i, su2double val_Gamma_j) final {Gamma_i = val_Gamma_i; Gamma_j = val_Gamma_j; }
234+
201235
};

SU2_CFD/include/numerics/NEMO/NEMO_sources.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class CSource_NEMO : public CNEMONumerics {
7878
* \param[in] val_reaction - Reaction number indicator.
7979
* \param[in] config - Definition of the particular problem.
8080
*/
81-
void GetKeqConstants(su2double *A, unsigned short val_reaction, CConfig *config);
81+
void ComputeKeqConstants(su2double *A, unsigned short val_reaction, CConfig *config);
8282

8383
/*!
8484
* \brief Residual of the translational to vibrational energy.

SU2_CFD/include/numerics/NEMO/convection/ausmplusup2.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class CUpwAUSMPLUSUP2_NEMO : public CNEMONumerics {
4545
su2double mL, mR, mLP, mRM, mF, pLP, pRM, pFi, pF, Phi;
4646
su2double CstarL, CstarR, ChatL, ChatR, aF, rhoF, MFsq, Mrefsq, Mp, fa;
4747
su2double Kp, sigma, alpha, beta, param1, mfP, mfM;
48-
su2double Gamma_i, Gamma_j;
4948
su2double rhoCvtr_i, rhoCvtr_j, rhoCvve_i, rhoCvve_j;
5049

5150
/*--- Roe Only ---*/

SU2_CFD/include/numerics/NEMO/convection/ausmpwplus.hpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,16 @@
3434
* \brief Class for solving an approximate Riemann AUSM.
3535
* \ingroup ConvDiscr
3636
* \author F. Palacios, W.Maier, C. Garbacz
37-
* \version 7.0.6 "Falcon"
37+
* \version 7.0.8 "Falcon"
3838
*/
3939
class CUpwAUSMPWplus_NEMO : public CNEMONumerics {
4040
private:
41+
4142
su2double *FcL, *FcR;
42-
su2double *dmLdL, *dmLdR, *dmRdL, *dmRdR;
43-
su2double *dmLPdL, *dmLPdR, *dmRMdL, *dmRMdR;
44-
su2double *dmbLPdL, *dmbLPdR, *dmbRMdL, *dmbRMdR;
45-
su2double *dpLPdL, *dpLPdR, *dpRMdL, *dpRMdR;
46-
su2double *dHnL, *dHnR;
47-
su2double *daL, *daR;
48-
su2double *dPdU_i, *dPdU_j;
43+
44+
su2double ProjVel_i, ProjVel_j;
45+
su2double rhoCvtr_i, rhoCvtr_j, rhoCvve_i, rhoCvve_j;
46+
4947

5048
public:
5149

0 commit comments

Comments
 (0)