Skip to content

Commit f49c522

Browse files
author
Cristopher-Morales
committed
10-05-2022 checking density model
1 parent 69ba724 commit f49c522

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Common/src/CConfig.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3741,6 +3741,9 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
37413741
SU2_MPI::Error("The use of FLUID_MIXTURE requires the number of entries for MOLECULAR_WEIGHT and SPECIFIC_HEAT_CP,\n"
37423742
"to be equal to the number of entries of SCALAR_INIT + 1", CURRENT_FUNCTION);
37433743
}
3744+
if (Kind_DensityModel != INC_DENSITYMODEL::VARIABLE) {
3745+
SU2_MPI::Error("The use of FLUID_MIXTURE requires the INC_DENSITY_MODEL option to be VARIABLE", CURRENT_FUNCTION);
3746+
}
37443747
}
37453748

37463749
/*--- Overrule the default values for viscosity if the US measurement system is used. ---*/

SU2_CFD/include/fluid/CFluidModel.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,7 @@ class CFluidModel {
132132
OneOverMeanMolecularWeight += val_scalars[i_scalar]/(molar_masses[i_scalar]/1000);
133133
val_scalars_sum += val_scalars[i_scalar];
134134
}
135-
/*if(val_scalars_sum>1){
136-
cout<<val_scalars_sum<<endl;
137-
}*/
138135
OneOverMeanMolecularWeight += (1 - val_scalars_sum)/(molar_masses[n_scalars]/1000);
139-
/*if(OneOverMeanMolecularWeight<0){
140-
cout<<OneOverMeanMolecularWeight<<endl;
141-
}*/
142136
return OneOverMeanMolecularWeight;
143137
}
144138
/*!

0 commit comments

Comments
 (0)