Skip to content

Commit 7c29ab3

Browse files
committed
Add species options to config_template
1 parent 36a3cd1 commit 7c29ab3

2 files changed

Lines changed: 55 additions & 6 deletions

File tree

Common/src/CConfig.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,13 +1304,13 @@ void CConfig::SetConfig_Options() {
13041304

13051305
/*--- Options related to the species solver. ---*/
13061306

1307-
/*!\brief SPECIES_INIT \n DESCRIPTION: Initial value for scalar transport \ingroup Config*/
1307+
/*!\brief SPECIES_INIT \n DESCRIPTION: Initial values for scalar transport \ingroup Config*/
13081308
addDoubleListOption("SPECIES_INIT", nSpecies_Init, Species_Init);
13091309
/*!\brief SPECIES_CLIPPING \n DESCRIPTION: Activate clipping for scalar transport equations \n DEFAULT: false \ingroup Config*/
13101310
addBoolOption("SPECIES_CLIPPING", Species_Clipping, false);
1311-
/*!\brief SPECIES_CLIPPING_MAX \n DESCRIPTION: Maximum value for scalar clipping \ingroup Config*/
1311+
/*!\brief SPECIES_CLIPPING_MAX \n DESCRIPTION: Maximum values for scalar clipping \ingroup Config*/
13121312
addDoubleListOption("SPECIES_CLIPPING_MAX", nSpecies_Clipping_Max, Species_Clipping_Max);
1313-
/*!\brief SPECIES_CLIPPING_MIN \n DESCRIPTION: Minimum value for scalar clipping \ingroup Config*/
1313+
/*!\brief SPECIES_CLIPPING_MIN \n DESCRIPTION: Minimum values for scalar clipping \ingroup Config*/
13141314
addDoubleListOption("SPECIES_CLIPPING_MIN", nSpecies_Clipping_Min, Species_Clipping_Min);
13151315
/*!\brief SPECIES_CLIPPING \n DESCRIPTION: Use strong inlet and outlet BC in the species solver \n DEFAULT: false \ingroup Config*/
13161316
addBoolOption("SPECIES_USE_STRONG_BC", Species_StrongBC, false);
@@ -1490,7 +1490,7 @@ void CConfig::SetConfig_Options() {
14901490
a unit vector. \ingroup Config*/
14911491
addInletOption("MARKER_INLET", nMarker_Inlet, Marker_Inlet, Inlet_Ttotal, Inlet_Ptotal, Inlet_FlowDir);
14921492
/*!\brief MARKER_INLET_SPECIES \n DESCRIPTION: Inlet Species boundary marker(s) with the following format
1493-
Inlet Scalar: (inlet_marker, Species1, Species2, ...) */
1493+
Inlet Species: (inlet_marker, Species1, Species2, ..., SpeciesN-1, inlet_marker2, Species1, Species2, ...) */
14941494
addInletSpeciesOption("MARKER_INLET_SPECIES",nMarker_Inlet_Species, Marker_Inlet_Species, Inlet_SpeciesVal, nSpecies_per_Inlet);
14951495

14961496
/*!\brief MARKER_RIEMANN \n DESCRIPTION: Riemann boundary marker(s) with the following formats, a unit vector.
@@ -5202,10 +5202,10 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
52025202
for (unsigned short iMarker = 0; iMarker < nMarker_Inlet_Species; iMarker++) {
52035203
su2double Inlet_SpeciesVal_Sum = 0.0;
52045204
for (unsigned short iSpecies = 0; iSpecies < nSpecies; iSpecies++) {
5205-
checkScalarBounds(Inlet_SpeciesVal[iMarker][iSpecies], "MARKER_SPECIES_INLET individual", 0.0, 1.0);
5205+
checkScalarBounds(Inlet_SpeciesVal[iMarker][iSpecies], "MARKER_INLET_SPECIES individual", 0.0, 1.0);
52065206
Inlet_SpeciesVal_Sum += Inlet_SpeciesVal[iMarker][iSpecies];
52075207
}
5208-
checkScalarBounds(Inlet_SpeciesVal_Sum, "MARKER_SPECIES_INLET sum", 0.0, 1.0);
5208+
checkScalarBounds(Inlet_SpeciesVal_Sum, "MARKER_INLET_SPECIES sum", 0.0, 1.0);
52095209
}
52105210

52115211
} // species transport checks

config_template.cfg

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,55 @@ CFL_NUMBER_RAD = 1.0E3
682682
% Time discretization for radiation problems (EULER_IMPLICIT)
683683
TIME_DISCRE_RADIATION = EULER_IMPLICIT
684684

685+
% --------------------- SPECIES TRANSPORT SIMULATION --------------------------%
686+
%
687+
% Specify scalar transport model (NONE, PASSIVE_SCALAR)
688+
KIND_SCALAR_MODEL= NONE
689+
%
690+
% Mass diffusivity model (CONSTANT_DIFFUSIVITY)
691+
DIFFUSIVITY_MODEL= CONSTANT_DIFFUSIVITY
692+
%
693+
% Mass diffusivity if DIFFUSIVITY_MODEL= CONSTANT_DIFFUSIVITY is chosen. D_air ~= 0.001
694+
DIFFUSIVITY_CONSTANT= 0.001
695+
%
696+
% Turbulent Schmidt number of mass diffusion
697+
SCHMIDT_NUMBER_TURBULENT= 0.7
698+
%
699+
% Inlet Species boundary marker(s) with the following format:
700+
% (inlet_marker, Species1, Species2, ..., SpeciesN-1, inlet_marker2, Species1, Species2, ...)
701+
MARKER_INLET_SPECIES= (inlet, 0.5, ..., inlet2, 0.6, ...)
702+
%
703+
% Use strong inlet and outlet BC in the species solver
704+
SPECIES_USE_STRONG_BC= NO
705+
%
706+
% Convective numerical method for species transport (SCALAR_UPWIND)
707+
CONV_NUM_METHOD_SPECIES= SCALAR_UPWIND
708+
%
709+
% Monotonic Upwind Scheme for Conservation Laws (TVD) in the species equations.
710+
% Required for 2nd order upwind schemes (NO, YES)
711+
MUSCL_SPECIES= NO
712+
%
713+
% Slope limiter for species equations (NONE, VENKATAKRISHNAN, VENKATAKRISHNAN_WANG, BARTH_JESPERSEN, VAN_ALBADA_EDGE)
714+
SLOPE_LIMITER_SPECIES = NONE
715+
%
716+
% Time discretization for species equations (EULER_IMPLICIT, EULER_EXPLICIT)
717+
TIME_DISCRE_SPECIES= EULER_IMPLICIT
718+
%
719+
% Reduction factor of the CFL coefficient in the species problem
720+
CFL_REDUCTION_SPECIES= 1.0
721+
%
722+
% Initial values for scalar transport
723+
SPECIES_INIT= 1.0, ...
724+
%
725+
% Activate clipping for scalar transport equations
726+
SPECIES_CLIPPING= NO
727+
%
728+
% Maximum values for scalar clipping
729+
SPECIES_CLIPPING_MAX= 1.0, ...
730+
%
731+
% Minimum values for scalar clipping
732+
SPECIES_CLIPPING_MIN= 0.0, ...
733+
685734
% --------------------- INVERSE DESIGN SIMULATION -----------------------------%
686735
%
687736
% Evaluate an inverse design problem using Cp (NO, YES)

0 commit comments

Comments
 (0)