Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit 2781618

Browse files
committed
Report size of chemkin file when writing it.
More detail is stored in the log file (Logger.debug) than the console (Logger.info) regarding where each of the species and reactions came from.
1 parent 46f0d22 commit 2781618

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/RMG/jing/rxnSys/Chemkin.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,10 @@ public static BufferedWriter writeChemkinPdepReactions(ReactionModel p_reactionM
656656
}
657657

658658
bufferedWriter.write("END\n");
659+
Logger.info(String.format("The chem.inp file has %d reactions (excluding duplicates).", seedList.size() + pDepList.size() + nonPDepList.size()));
660+
Logger.debug(String.format(" %d from Seed Mechanism(s)",seedList.size()));
661+
Logger.debug(String.format(" %d extra pressure-dependent reactions from primary libraries or estimated by RMG and FAME",pDepList.size()));
662+
Logger.debug(String.format(" %d extra non pressure-dependent reactions from primary libraries or estimated by RMG",nonPDepList.size()));
659663
return bufferedWriter;
660664
}
661665

@@ -684,6 +688,10 @@ public static String writeChemkinSpecies(ReactionModel p_reactionModel, SystemSn
684688
}
685689

686690
result.append("END\n");
691+
int core_and_seed_size = cerm.getCoreAndSeedSpeciesSet().size();
692+
Logger.info(String.format("The chem.inp file has %d species (excluding inert gases).", core_and_seed_size));
693+
Logger.debug(String.format(" %d from the model core.",cerm.getCore().getSpeciesNumber()));
694+
Logger.debug(String.format(" %d extra from the Seed Mechanism(s).",core_and_seed_size - cerm.getCore().getSpeciesNumber()));
687695
return result.toString();
688696
}
689697

0 commit comments

Comments
 (0)