Skip to content

Commit fe84ce4

Browse files
raise error for frozen mixture option with mpp
1 parent e460f77 commit fe84ce4

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

Common/src/CConfig.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3561,6 +3561,10 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_
35613561
SU2_MPI::Error("If you're running an argon mixture, set MONOATOMIC= YES in the .cfg file!", CURRENT_FUNCTION);
35623562
}
35633563

3564+
if (GetKind_FluidModel() == MUTATIONPP && GetFrozen() == true){
3565+
SU2_MPI::Error("The option of FROZEN_MIXTURE is not yet working the Mutation++ support.", CURRENT_FUNCTION);
3566+
}
3567+
35643568
if(GetBoolTurbomachinery()){
35653569
nBlades = new su2double[nZone];
35663570
FreeStreamTurboNormal= new su2double[3];

SU2_CFD/src/fluid/CMutationTCLib.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
CMutationTCLib::CMutationTCLib(const CConfig* config, unsigned short val_nDim): CNEMOGas(config, val_nDim){
3333

3434
Mutation::MixtureOptions opt(gas_model);
35-
string transport_model, state_model;
35+
string transport_model;
3636

3737
/* Allocating memory*/
3838
Cv_ks.resize(nEnergyEq*nSpecies,0.0);
@@ -42,19 +42,13 @@ CMutationTCLib::CMutationTCLib(const CConfig* config, unsigned short val_nDim):
4242

4343
/*--- Set up inputs to define type of mixture in the Mutation++ library ---*/
4444

45-
/*--- Define thermochemical nonequilibrium model ---*/
46-
if(!frozen)
47-
state_model = "ChemNonEqTTv";
48-
else
49-
state_model = "NonEqTTv";
50-
5145
/*--- Define transport model ---*/
5246
if(Kind_TransCoeffModel == WILKE)
5347
transport_model = "Wilke";
5448
else if (Kind_TransCoeffModel == GUPTAYOS)
5549
transport_model = "Gupta-Yos";
5650

57-
opt.setStateModel(state_model);
51+
opt.setStateModel("ChemNonEqTTv");
5852
opt.setViscosityAlgorithm(transport_model);
5953
opt.setThermalConductivityAlgorithm(transport_model);
6054

0 commit comments

Comments
 (0)