Skip to content

Commit 8d15987

Browse files
committed
Change name of output file when Y is specified
1 parent 3deec9f commit 8d15987

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Source/Utility/PMF/cantera_pmf_generator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@
102102

103103
# Print information
104104
label_pre = "pmf-" + mechanism
105-
label = fuel_species.split(":")[0] + "_PHI" + str(phi) + "_T" + str(tin) + "_P" + str(p)
105+
if Y_species is not None:
106+
num_input_species = len([item for item in Y_species.split(',') if ':' in item])
107+
label = "Y" + str(num_input_species) + "_T" + str(tin) + "_P" + str(p)
108+
else:
109+
label = fuel_species.split(":")[0] + "_PHI" + str(phi) + "_T" + str(tin) + "_P" + str(p)
106110

107111
#################
108112
# Find mechanism in PelePhysics

0 commit comments

Comments
 (0)