Skip to content

Commit 9129ac0

Browse files
protection for viscous flow with ionization
1 parent b784edf commit 9129ac0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

SU2_CFD/src/fluid/CMutationTCLib.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,12 @@ 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(string("Ionization is not yet operational for a viscous flow in the NEMO solver."),
65+
CURRENT_FUNCTION);}
66+
else { nHeavy = nSpecies-1; nEl = 1;}}
67+
else { nHeavy = nSpecies; nEl = 0; }
6468

6569
}
6670

0 commit comments

Comments
 (0)