Skip to content

Commit c2f5cfa

Browse files
committed
merge in develop, remove/comment unused variables, update some version #s
1 parent 6068344 commit c2f5cfa

9 files changed

Lines changed: 29 additions & 88 deletions

File tree

SU2_CFD/include/numerics/NEMO/NEMO_diffusion.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* \brief Class for computing viscous term using the average of gradients.
3535
* \ingroup ViscDiscr
3636
* \author S.R. Copeland, W. Maier, C. Garbacz
37-
* \version 7.0.6 "falcon"
37+
* \version 7.0.8 "Blackbird"
3838
*/
3939
class CAvgGrad_NEMO : public CNEMONumerics {
4040
private:

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,17 @@
3434
* \brief Class for solving an approximate Riemann AUSM.
3535
* \ingroup ConvDiscr
3636
* \author F. Palacios, S.R. Copeland, W. Maier, C. Garbacz
37-
* \version 7.0.6 'Falcon'
37+
* \version 7.0.8 'Blackbird'
3838
*/
3939
class CUpwAUSM_NEMO : public CNEMONumerics {
4040
private:
41-
su2double *FcL, *FcR, *FcLR;
42-
su2double *dmLP, *dmRM, *dpLP, *dpRM;
43-
su2double *daL, *daR;
41+
su2double *FcL, *FcR;
42+
//su2double *FcLR;
43+
//su2double *dmLP, *dmRM, *dpLP, *dpRM;
44+
//su2double *daL, *daR;
4445
su2double ProjVel_i, ProjVel_j;
45-
su2double sq_vel, Proj_ModJac_Tensor_ij;
46+
su2double sq_vel;
47+
//su2double Proj_ModJac_Tensor_ij;
4648

4749
public:
4850

@@ -64,4 +66,4 @@ class CUpwAUSM_NEMO : public CNEMONumerics {
6466
* \param[in] config - Definition of the particular problem.
6567
*/
6668
ResidualType<> ComputeResidual(const CConfig* config) final;
67-
};
69+
};

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,14 @@
3838
class CUpwAUSMPLUSUP2_NEMO : public CNEMONumerics {
3939
private:
4040
su2double *FcL, *FcR, *FcLR;
41-
su2double *dmLP, *dmRM, *dpLP, *dpRM;
42-
su2double *daL, *daR;
41+
//su2double *dmLP, *dmRM, *dpLP, *dpRM;
42+
//su2double *daL, *daR;
4343
su2double ProjVel_i, ProjVel_j;
44-
su2double sq_vel, Proj_ModJac_Tensor_ij;
4544
su2double mL, mR, mLP, mRM, mF, pLP, pRM, pFi, pF, Phi;
4645
su2double CstarL, CstarR, ChatL, ChatR, aF, rhoF, MFsq, Mrefsq, Mp, fa;
4746
su2double Kp, sigma, alpha, beta, param1, mfP, mfM;
4847
su2double rhoCvtr_i, rhoCvtr_j, rhoCvve_i, rhoCvve_j;
4948

50-
/*--- Roe Only ---*/
51-
su2double *Diff_U;
52-
su2double *RoeU, *RoeV, *RoeEve;
53-
su2double *ProjFlux_i, *ProjFlux_j;
54-
su2double *Lambda, *Epsilon;
55-
su2double **P_Tensor, **invP_Tensor;
56-
su2double RoeSoundSpeed;
57-
su2double ProjVelocity, ProjVelocity_i, ProjVelocity_j;
58-
su2double R;
59-
su2double *RoedPdU;
60-
6149
public:
6250

6351
/*!

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,18 @@
3434
* \brief Class for computing the Lax-Friedrich centered scheme.
3535
* \ingroup ConvDiscr
3636
* \author F. Palacios, S.R. Copeland, W. Maier, C. Garbacz
37-
* \version 2.0.6
37+
* \version 7.0.8
3838
*/
3939
class CCentLax_NEMO : public CNEMONumerics {
4040
private:
41-
unsigned short iDim, iVar, jVar; /*!< \brief Iteration on dimension and variables. */
41+
unsigned short iDim, iVar; /*!< \brief Iteration on dimension and variables. */
4242
su2double *Diff_U; /*!< \brief Difference of conservative variables. */
4343
su2double *MeanU, *MeanV;
44-
vector<su2double> mean_eves;
45-
su2double *MeandPdU;
4644
su2double *ProjFlux; /*!< \brief Projected inviscid flux tensor. */
4745
su2double Param_p, Param_Kappa_0; /*!< \brief Artificial dissipation parameters. */
4846
su2double Local_Lambda_i, Local_Lambda_j, MeanLambda; /*!< \brief Local eigenvalues. */
4947
su2double Phi_i, Phi_j, sc0, StretchingFactor; /*!< \brief Streching parameters. */
50-
su2double Epsilon_0, cte; /*!< \brief Artificial dissipation values. */
51-
bool stretching;
48+
su2double Epsilon_0; /*!< \brief Artificial dissipation values. */
5249

5350
public:
5451

SU2_CFD/include/solvers/CNEMONSSolver.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
* \brief Main class for defining the NEMO Navier-Stokes flow solver.
3939
* \ingroup Navier_Stokes_Equations
4040
* \author S. R. Copeland, F. Palacios, W. Maier.
41-
* \version 6.1
41+
* \version 7.0.8
42+
*
4243
*/
4344
class CNEMONSSolver final : public CNEMOEulerSolver {
4445
private:

SU2_CFD/include/variables/CNEMONSVariable.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* \brief Main class for defining the variables of the NEMO Navier-Stokes' solver.
3535
* \ingroup Navier_Stokes_Equations
3636
* \author C. Garbacz, W. Maier, S.R. Copeland.
37-
* \version 7.0.6
37+
* \version 7.0.8
3838
*/
3939
class CNEMONSVariable final : public CNEMOEulerVariable {
4040
private:

SU2_CFD/src/numerics/NEMO/convection/ausm.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ CUpwAUSM_NEMO::CUpwAUSM_NEMO(unsigned short val_nDim, unsigned short val_nVar,
3636

3737
FcL = new su2double [nVar];
3838
FcR = new su2double [nVar];
39-
dmLP = new su2double [nVar];
40-
dmRM = new su2double [nVar];
41-
dpLP = new su2double [nVar];
42-
dpRM = new su2double [nVar];
39+
//dmLP = new su2double [nVar];
40+
//dmRM = new su2double [nVar];
41+
//dpLP = new su2double [nVar];
42+
//dpRM = new su2double [nVar];
4343
rhos_i = new su2double [nSpecies];
4444
rhos_j = new su2double [nSpecies];
4545
u_i = new su2double [nDim];
@@ -53,10 +53,10 @@ CUpwAUSM_NEMO::~CUpwAUSM_NEMO(void) {
5353

5454
delete [] FcL;
5555
delete [] FcR;
56-
delete [] dmLP;
57-
delete [] dmRM;
58-
delete [] dpLP;
59-
delete [] dpRM;
56+
//delete [] dmLP;
57+
//delete [] dmRM;
58+
//delete [] dpLP;
59+
//delete [] dpRM;
6060
delete [] rhos_i;
6161
delete [] rhos_j;
6262
delete [] u_i;

SU2_CFD/src/numerics/NEMO/convection/ausmplusup2.cpp

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -34,80 +34,38 @@ CUpwAUSMPLUSUP2_NEMO::CUpwAUSMPLUSUP2_NEMO(unsigned short val_nDim, unsigned sho
3434
CConfig *config): CNEMONumerics (val_nDim, val_nVar, val_nPrimVar, val_nPrimVarGrad,
3535
config){
3636

37-
38-
unsigned short iVar;
39-
4037
/*--- Define useful constants ---*/
4138
Kp = 0.25;
4239
sigma = 1.0;
4340

4441
/*--- Allocate data structures ---*/
4542
FcL = new su2double [nVar];
4643
FcR = new su2double [nVar];
47-
dmLP = new su2double [nVar];
48-
dmRM = new su2double [nVar];
49-
dpLP = new su2double [nVar];
50-
dpRM = new su2double [nVar];
51-
daL = new su2double [nVar];
52-
daR = new su2double [nVar];
5344
rhos_i = new su2double [nSpecies];
5445
rhos_j = new su2double [nSpecies];
5546
u_i = new su2double [nDim];
5647
u_j = new su2double [nDim];
5748

58-
/*--- Allocate arrays ---*/
59-
Diff_U = new su2double [nVar];
60-
RoeU = new su2double[nVar];
61-
RoeV = new su2double[nPrimVar];
62-
RoedPdU = new su2double [nVar];
63-
RoeEve = new su2double [nSpecies];
64-
Lambda = new su2double [nVar];
65-
Epsilon = new su2double [nVar];
66-
P_Tensor = new su2double* [nVar];
67-
invP_Tensor = new su2double* [nVar];
68-
for (iVar = 0; iVar < nVar; iVar++) {
69-
P_Tensor[iVar] = new su2double [nVar];
70-
invP_Tensor[iVar] = new su2double [nVar];
71-
}
72-
7349
Flux = new su2double[nVar];
7450
}
7551

7652
CUpwAUSMPLUSUP2_NEMO::~CUpwAUSMPLUSUP2_NEMO(void) {
7753

7854
delete [] FcL;
7955
delete [] FcR;
80-
delete [] dmLP;
81-
delete [] dmRM;
82-
delete [] dpLP;
83-
delete [] dpRM;
8456
delete [] rhos_i;
8557
delete [] rhos_j;
8658
delete [] u_i;
8759
delete [] u_j;
88-
unsigned short iVar;
89-
90-
delete [] Diff_U;
91-
delete [] RoeU;
92-
delete [] RoeV;
93-
delete [] RoedPdU;
94-
delete [] RoeEve;
95-
delete [] Lambda;
96-
delete [] Epsilon;
97-
for (iVar = 0; iVar < nVar; iVar++) {
98-
delete [] P_Tensor[iVar];
99-
delete [] invP_Tensor[iVar];
100-
}
101-
delete [] P_Tensor;
102-
delete [] invP_Tensor;
60+
10361
delete [] Flux;
10462
}
10563

10664
CNumerics::ResidualType<> CUpwAUSMPLUSUP2_NEMO::ComputeResidual(const CConfig *config) {
10765

10866
unsigned short iDim, iVar, iSpecies;
10967
su2double rho_i, rho_j,
110-
e_ve_i, e_ve_j, mL, mR, mLP, mRM, mF, pLP, pRM, pF, Phi, sq_veli, sq_velj;
68+
e_ve_i, e_ve_j, sq_veli, sq_velj;
11169

11270
/*--- Face area ---*/
11371
Area = GeometryToolbox::Norm(nDim, Normal);

SU2_CFD/src/numerics/NEMO/convection/lax.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,27 +45,22 @@ CCentLax_NEMO::CCentLax_NEMO(unsigned short val_nDim,
4545
Diff_U = new su2double[nVar];
4646
MeanU = new su2double[nVar];
4747
MeanV = new su2double[nPrimVar];
48-
MeandPdU = new su2double[nVar];
4948
ProjFlux = new su2double[nVar];
5049
Flux = new su2double[nVar];
5150

52-
mean_eves.resize(nSpecies,0.0);
53-
5451
}
5552

5653
CCentLax_NEMO::~CCentLax_NEMO(void) {
5754

5855
delete [] Diff_U;
5956
delete [] MeanU;
6057
delete [] MeanV;
61-
delete [] MeandPdU;
6258
delete [] ProjFlux;
6359
delete [] Flux;
6460
}
6561

6662
CNumerics::ResidualType<> CCentLax_NEMO::ComputeResidual(const CConfig *config) {
6763

68-
unsigned short iDim, iVar;
6964
su2double rho_i, rho_j, h_i, h_j, a_i, a_j;
7065
su2double ProjVel_i, ProjVel_j;
7166

@@ -87,8 +82,8 @@ CNumerics::ResidualType<> CCentLax_NEMO::ComputeResidual(const CConfig *config)
8782
MeanV[iVar] = 0.5*(V_i[iVar]+V_j[iVar]);
8883

8984
/*--- Compute NonEq specific variables ---*/
90-
vector<su2double> mean_eves = fluidmodel->ComputeSpeciesEve(MeanV[TVE_INDEX]);
91-
fluidmodel->ComputedPdU(MeanV, mean_eves, MeandPdU);
85+
//vector<su2double> mean_eves = fluidmodel->ComputeSpeciesEve(MeanV[TVE_INDEX]);
86+
//fluidmodel->ComputedPdU(MeanV, mean_eves, MeandPdU);
9287

9388
/*--- Get projected flux tensor ---*/
9489
GetInviscidProjFlux(MeanU, MeanV, Normal, ProjFlux);

0 commit comments

Comments
 (0)