Skip to content

Commit 622587c

Browse files
Merge pull request #1497 from su2code/feature_NEMO_viscous_ionization_protection
NEMO: protection for viscous flow with ionization
2 parents b784edf + 280e370 commit 622587c

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

SU2_CFD/src/fluid/CMutationTCLib.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,15 @@ CMutationTCLib::CMutationTCLib(const CConfig* config, unsigned short val_nDim):
5959

6060
for(iSpecies = 0; iSpecies < nSpecies; iSpecies++) MolarMass[iSpecies] = 1000* mix->speciesMw(iSpecies); // x1000 to have Molar Mass in kg/kmol
6161

62-
if (mix->hasElectrons()) { nHeavy = nSpecies-1; nEl = 1; }
63-
else { nHeavy = nSpecies; nEl = 0; }
62+
if (mix->hasElectrons()) {
63+
if (config->GetViscous()) {
64+
SU2_MPI::Error("Ionization is not yet operational for a viscous flow in the NEMO solver.", CURRENT_FUNCTION);
65+
} else {
66+
nHeavy = nSpecies-1;
67+
nEl = 1;
68+
}
69+
}
70+
else { nHeavy = nSpecies; nEl = 0; }
6471

6572
}
6673

0 commit comments

Comments
 (0)