Skip to content

Commit ccc1c6e

Browse files
authored
Merge pull request #1422 from su2code/feature_NEMO_implicit_viscous
Implementation of Implicit for viscous NEMO problems
2 parents 641d254 + 01103cb commit ccc1c6e

19 files changed

Lines changed: 506 additions & 441 deletions

File tree

Common/include/geometry/CGeometry.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class CGeometry {
133133
vector<vector<su2double> > FaceArea_plane; /*!< \brief Vector containing area/volume associated with new points appearing on a single plane */
134134
vector<vector<unsigned long> > Plane_points; /*!< \brief Vector containing points appearing on a single plane */
135135

136-
vector<su2double> XCoordList; /*!< \brief Vector containing points appearing on a single plane */
136+
vector<su2double> XCoordList; /*!< \brief Vector containing points appearing on a single plane */
137137

138138
#if defined(HAVE_MPI) && defined(HAVE_PARMETIS)
139139
vector<vector<unsigned long> > adj_nodes; /*!< \brief Vector of vectors holding each node's adjacency during preparation for ParMETIS. */

Common/src/CConfig.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6474,8 +6474,8 @@ void CConfig::SetOutput(SU2_COMPONENT val_software, unsigned short val_izone) {
64746474
break;
64756475
case EULER_IMPLICIT:
64766476
cout << "Euler implicit method for the flow equations." << endl;
6477-
if (Kind_Solver == NEMO_NAVIER_STOKES)
6478-
SU2_MPI::Error("Implicit time scheme is not working with NEMO for viscous problems. Use EULER_EXPLICIT.", CURRENT_FUNCTION);
6477+
if (Kind_FluidModel == MUTATIONPP)
6478+
SU2_MPI::Error("Implicit time scheme is not yet implemented with Mutation++. Use EULER_EXPLICIT.", CURRENT_FUNCTION);
64796479
switch (Kind_Linear_Solver) {
64806480
case BCGSTAB:
64816481
case FGMRES:

Common/src/geometry/elements/CTETRA1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ CTETRA1::CTETRA1() : CElementWithKnownSizes<NGAUSS,NNODE,NDIM>() {
4747

4848
val_Ni = Xi; GaussPoint[iGauss].SetNi(val_Ni,0);
4949
val_Ni = Eta; GaussPoint[iGauss].SetNi(val_Ni,1);
50-
val_Ni = 1.0-Xi-Eta-Zeta; GaussPoint[iGauss].SetNi(val_Ni,2);
50+
val_Ni = 1.0-Xi-Eta-Zeta; GaussPoint[iGauss].SetNi(val_Ni,2);
5151
val_Ni = Zeta; GaussPoint[iGauss].SetNi(val_Ni,3);
5252

5353
/*--- dN/d xi, dN/d eta, dN/d zeta ---*/

SU2_CFD/include/numerics/NEMO/CNEMONumerics.hpp

Lines changed: 296 additions & 18 deletions
Large diffs are not rendered by default.

SU2_CFD/include/numerics/NEMO/NEMO_diffusion.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*/
3939
class CAvgGrad_NEMO : public CNEMONumerics {
4040
private:
41-
unsigned short iVar; /*!< \brief Iterators in dimension an variable. */
41+
4242
su2double *Mean_PrimVar, /*!< \brief Mean primitive variables. */
4343
*Mean_U,
4444
**Mean_GU,
@@ -102,7 +102,7 @@ class CAvgGradCorrected_NEMO : public CNEMONumerics {
102102
**Mean_GradPrimVar, /*!< \brief Mean value of the gradient. */
103103
*Mean_Eve, /*!< \brief Mean value of eve. */
104104
*Mean_Cvve, /*!< \brief Mean value of cvve. */
105-
*Edge_Vector, /*!< \brief Vector from point i to point j. */
105+
Edge_Vector[MAXNDIM]={0.0}, /*!< \brief Vector from point i to point j. */
106106
*Proj_Mean_GradPrimVar_Edge, /*!< \brief Inner product of the Mean gradient and the edge vector. */
107107
*Mean_Diffusion_Coeff, /*!< \brief Mean value of the species diffusion coefficient. */
108108
Mean_Laminar_Viscosity, /*!< \brief Mean value of the viscosity. */

SU2_CFD/src/fluid/CNEMOGas.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,13 @@ su2double CNEMOGas::ComputeGamma(){
131131

132132
/*--- Extract Values ---*/
133133
rhoCvtr = ComputerhoCvtr();
134-
rhoCvve = ComputerhoCvve();
135134

136135
/*--- Gamma Computation ---*/
137136
su2double rhoR = 0.0;
138137
for(iSpecies = 0; iSpecies < nSpecies; iSpecies++)
139138
rhoR += rhos[iSpecies]*Ru/MolarMass[iSpecies];
140139

141-
gamma = rhoR/(rhoCvtr+rhoCvve)+1;
140+
gamma = rhoR/rhoCvtr+1;
142141

143142
return gamma;
144143

0 commit comments

Comments
 (0)