Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
486cdfa
Save cantera files that were made from chemkin files to a separate fo…
rwest Jun 6, 2024
a6ad29d
Rename yml to yaml_rms, because it was specific to RMS
Nora-Khalil Jun 15, 2022
8f560f6
Enable Cantera-YAML writing.
Nora-Khalil Jun 13, 2022
78e9124
Reworking the Elements blocks in cantera yaml writer.
rwest Aug 2, 2024
f5757ec
add yaml writer test to compare yaml file generated by RMG and the ya…
Mar 3, 2025
d14c6e2
Simplify species_to_dict for writing cantera yaml.
rwest Mar 21, 2024
676ff56
Rename generate_cantera_files to generate_cantera_files_from_chemkin
rwest Feb 5, 2026
c30e394
Add (or restore?) a TestCanteraOutputConversion test
rwest Feb 12, 2026
8f6a48b
Functional test comparing Cantera YAML outputs to Chemkin-converted YAML
rwest Feb 6, 2026
5fb4569
YAML: Reaction comparison can do irreversible reactions
rwest Feb 6, 2026
f9c0d47
Enhance reaction comparison by adding checks for reaction counts and …
rwest Feb 6, 2026
a05dc08
Simplify CompareYaml and YamlAnalyst arguments
rwest Feb 6, 2026
21bf695
Move test_make_cantera_input_file into ..._from_ck and make a ..._dir…
rwest Feb 12, 2026
d9da484
Tweak test_yaml
rwest Feb 6, 2026
2b032e9
Update test_yaml.py to use new YAML test files for comparison
rwest Feb 6, 2026
50cdee9
A stub cantera_yamlTest.py file for testing the cantera yaml features.
rwest Feb 7, 2026
a07a051
Work on the yaml_canteraTest.
rwest Feb 7, 2026
69a511e
Work on yaml_canteraTest.py. Check phases.
rwest Feb 8, 2026
6aee997
TEMP? mainTest functional test now copies the yaml files into the tes…
rwest Feb 8, 2026
0f1180c
[yaml_cantera] Make phase names mach ck2yaml version.
rwest Feb 8, 2026
e803c06
[yaml_cantera] Fix where transport data comments are put
rwest Feb 8, 2026
2a1bb13
[yaml_canteraTest] More testing of phase definitions.
rwest Feb 8, 2026
044b1d0
[yaml_canteraTest] Test the Elements block
rwest Feb 8, 2026
de07328
[yaml_cantera] Outputs more condensed, with flow_style for some lists.
rwest Feb 8, 2026
e36c015
Update the cantera yaml test data files.
rwest Feb 8, 2026
a20e68e
[yaml_cantera] Add test for species definition matching.
rwest Feb 10, 2026
e482a09
[yaml_canteraTest] fix species test for NASA polynomial collapse.
rwest Feb 10, 2026
0d200f6
Converted cantera SI units to the units specified in write_cantera
LekiaAnonim Feb 11, 2026
2a42a14
yaml comparer: Added a normalization method for equation with third-b…
LekiaAnonim Feb 11, 2026
286e287
yaml comparer: use cantera to compare rate
LekiaAnonim Feb 11, 2026
265e5d3
Fix YAML serialization of Cantera objects by converting AnyMap to dict
rwest Feb 12, 2026
a6e5f98
TEMP? Newly created yaml files for testing.
rwest Feb 12, 2026
96c8b20
Enhance compare_yaml_outputs
rwest Feb 13, 2026
b00bdc5
yaml_canteraTest compares yaml files made in mainTest
rwest Feb 13, 2026
9bc667d
Making a new tool compare_cantera_yaml
rwest Feb 15, 2026
2ccd0be
Refactor Cantera YAML comparison tool with enhanced features
rwest Feb 16, 2026
70d8ff1
The compare_cantera_yaml script now uses logging.
rwest Feb 16, 2026
168ea0d
At end of model generation, compare direct yaml and ck2yaml outputs.
rwest Feb 16, 2026
8de144e
Added a Cantera writer module
alongd Dec 13, 2025
a1d1e3d
Move Alon's cantera writer to yaml_cantera2
rwest Feb 16, 2026
5d0060c
Rename Alon's CanteraWriter class to CanteraWriter2
rwest Feb 16, 2026
a93bcc1
Tests: Cantera writer
alongd Dec 13, 2025
6f464a1
Rename (file and contents) Alon's yaml_cantera2Test
rwest Feb 16, 2026
92b2a02
Add surface chemistry support to Cantera YAML export
alongd Jan 10, 2026
90defd8
Updates output subdirectory name to 'cantera2'
rwest Feb 16, 2026
3e01182
[yaml_cantera] makes a copy of the latest chem.yaml each iteration
rwest Feb 16, 2026
d50e15b
Attach the CanteraWriter2
rwest Feb 16, 2026
d9fdd43
compare_cantera_yaml copes with different reaction block specification
rwest Feb 16, 2026
fdad8b2
Correct units for transport properties in CanteraWriter2
rwest Feb 16, 2026
54e9f1b
Fix transport properties in CanteraWriter2
rwest Feb 16, 2026
1aaf238
[CanteraWriter2] Write transport and thermo notes where they belong.
rwest Feb 16, 2026
19a5692
[CanteraWriter2] fix conversion of dipole monte into Debye
rwest Feb 16, 2026
a1307b5
Fix attempt for 'E' in atom dictionary
alongd Feb 19, 2026
6d5820a
Revert "Fix attempt for 'E' in atom dictionary"
rwest Feb 20, 2026
2d5cfda
[yaml_cantera2] Fixing 'E' electron count for charged species.
rwest Feb 20, 2026
2be92ea
Rename 'yaml_cantera' to 'yaml_cantera1'.
rwest Feb 20, 2026
aa46216
[RMG/main] get_git_commit now returns strings not bytes
rwest Feb 20, 2026
8598065
[yaml_cantera2] Detailed logging of the yaml generator
rwest Feb 20, 2026
5f1c8a3
[yaml_cantera1] Detailed logging of the yaml generator
rwest Feb 20, 2026
4c87a1b
Revert "Converted cantera SI units to the units specified in write_ca…
rwest Feb 21, 2026
1051a90
[yaml_cantera1] Report things in cantera default internal units.
rwest Feb 21, 2026
1c4790a
[yaml_cantera1] Add coverage-dependent thermo to CanteraWriter1
rwest Apr 8, 2026
2d0fbbb
[yaml_cantera2] Add coverage-dependent thermo to CanteraWriter2
rwest Apr 8, 2026
0192058
Move coverage-dependent thermo into Species.to_cantera()
rwest Apr 8, 2026
a7c2550
[yaml_cantera2] use label if it's a Species (should save time)
rwest Apr 9, 2026
5fb9f49
[yaml_cantera2] write species list in order of index
rwest Apr 9, 2026
ff3a327
[yaml_cantera2] fix unit test (detecting the generator field)
rwest Apr 9, 2026
20f9a7e
Fix PDepArrhenius.set_cantera_kinetics for duplicate-pressure PLOG
rwest May 1, 2026
ccb9b3a
[yaml_cantera2] Unbox numpy P scalars in PDepArrhenius rate-constants
rwest May 1, 2026
049959d
[yaml_cantera2] Emit duplicate-pressure PLOG as one reaction, not spl…
rwest May 1, 2026
5e0a7d9
[yaml_cantera1] Add verboseComments support
rwest May 1, 2026
c8bca8e
[yaml_cantera2] Add verboseComments support
rwest May 1, 2026
3ddf22d
[yaml_cantera1] Add saveEdgeSpecies support
rwest May 1, 2026
d539f8f
[yaml_cantera2] cov_params is a dict with keys not a structure with a…
rwest May 1, 2026
8da2b35
[yaml_cantera1] Add coverage dependent kinetics.
rwest May 1, 2026
73f8e35
[yaml_cantera1] Move the coverage-dependence code into to_cantera
rwest May 1, 2026
c69f357
Fixes to coverage-dependent kinetics. [requires rebuild of cython]
rwest May 1, 2026
c0a88a2
[yaml_cantera1] Add unit tests for species_to_dict and reaction_to_dicts
rwest May 1, 2026
0ced931
[yaml_cantera2] Add unit tests for surface species and reactions
rwest May 1, 2026
c568049
Use CDumper (C-accelerated) in both Cantera YAML writers for faster o…
rwest May 2, 2026
4d3b2b6
Use CDumper (C-accelerated) in RMS YAML writer for faster output
rwest May 2, 2026
3237e3b
Remove outdated Cantera files from testing directory.
rwest May 3, 2026
1f40ed9
Add Cantera files from main test, to testing folder.
rwest May 3, 2026
72a2bda
mainTest creates Cantera yaml files for testing.
rwest May 4, 2026
bb4b2ab
Add WriterConfig: per-writer output configuration data class
rwest May 6, 2026
a1ee9fb
Replaced cantera1 yaml test file with the verbose annotated one
rwest May 4, 2026
fb0d161
Parse per-writer configs from input files; store on RMG object
rwest May 6, 2026
bc3f967
fixup! Add Cantera files from main test, to testing folder.
rwest May 4, 2026
037cad1
Wire WriterConfig into register_listeners() and all output writers
rwest May 6, 2026
ab4d0a4
Fix yaml_cantera1Test test (generator name)
rwest May 4, 2026
06cafcb
Docs, example input, and unit tests for per-writer output configuration
rwest May 6, 2026
9f357cc
Fix yaml_cantera2Test mock RMG object missing verbose_comments attrib…
rwest May 4, 2026
b796eb9
Guard end-of-run Cantera translation and comparison behind writer con…
rwest May 6, 2026
20fc705
Demonstrate per-writer config in example inputs
rwest May 6, 2026
39593f9
Fix --walltime CLI precedence over input.py settings
rwest May 6, 2026
4e0f5b0
Merge pull request #2945 to enhance output options
rwest May 6, 2026
5c364dc
Adding documentation for new output writers.
rwest May 7, 2026
442213b
Fix end-of-run Cantera translation: correct folder name and guard mis…
rwest May 7, 2026
8ac28f6
mainTest now turns on the Cantera YAML writers for testing.
rwest May 7, 2026
458bb3f
Tweak iteration counting and seed saving.
rwest May 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 82 additions & 6 deletions documentation/source/users/rmg/input.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1073,13 +1073,17 @@ Miscellaneous options::
units='si',
generateOutputHTML=True,
generatePlots=False,
generatePESDiagrams=False,
generatePESDiagrams=False,
saveSimulationProfiles=True,
verboseComments=False,
saveEdgeSpecies=True,
keepIrreversible=True,
trimolecularProductReversible=False,
saveSeedModulus=-1
saveSeedModulus=-1,
generateChemkin=True,
generateRMSYAML=True,
generateCanteraYAML1=False,
generateCanteraYAML2=False,
)

The ``name`` field is the name of any generated seed mechanisms
Expand All @@ -1090,25 +1094,97 @@ Setting ``saveSeedToDatabase`` to ``True`` tells RMG (if generating a seed) to a

The ``units`` field is set to ``si``. Currently there are no other unit options.

Setting ``generateOutputHTML`` to ``True`` will let RMG know that you want to save 2-D images (png files in the local ``species`` folder) of all species in the generated core model. It will save a visualized
HTML file for your model containing all the species and reactions. Turning this feature off by setting it to ``False`` may save memory if running large jobs.
Setting ``generateOutputHTML`` to ``True`` will let RMG know that you want to save 2-D images (png files in the local ``species`` folder) of all species in the generated core model.
It will save a visualized HTML file for your model containing all the species and reactions.
Turning this feature off by setting it to ``False`` may save memory if running large jobs.
It can be configured using a dictionary of settings in place of the ``True`` statement, as described below.

Setting ``generatePlots`` to ``True`` will generate a number of plots describing the statistics of the RMG job, including the reaction model core and edge size and memory use versus execution time. These will be placed in the output directory in the plot/ folder.

Setting ``generatePESDiagrams`` to ``True`` will generate potential energy surface diagrams for each pressure dependent network in the model. These diagrams will be saved in the ``pdep/`` folder in the output directory. Only applicable if pressure dependence is enabled.

Setting ``saveSimulationProfiles`` to ``True`` will make RMG save csv files of the simulation in .csv files in the ``solver/`` folder. The filename will be ``simulation_1_26.csv`` where the first number corresponds to the reaciton system, and the second number corresponds to the total number of species at the point of the simulation. Therefore, the highest second number will indicate the latest simulation that RMG has complete while enlarging the core model. The information inside the csv file will provide the time, reactor volume in m^3, as well as mole fractions of the individual species.

Setting ``verboseComments`` to ``True`` will make RMG generate chemkin files with complete verbose commentary for the kinetic and thermo parameters. This will be helpful in debugging what values are being averaged for the kinetics. Note that this may produce very large files.
Setting ``verboseComments`` to ``True`` will make RMG generate chemkin files with complete verbose commentary for the kinetic and thermo parameters. This will be helpful in debugging what values are being averaged for the kinetics. Note that this may produce very large files. This is a global fallback; individual writers can override it (see below).

Setting ``saveEdgeSpecies`` to ``True`` will make RMG generate chemkin files of the edge reactions in addition to the core model in files such as ``chem_edge.inp`` and ``chem_edge_annotated.inp`` files located inside the ``chemkin`` folder. These files will be helpful in viewing RMG's estimate for edge reactions and seeing if certain reactions one expects are actually in the edge or not.
Setting ``saveEdgeSpecies`` to ``True`` will make RMG generate chemkin files of the edge reactions in addition to the core model in files such as ``chem_edge.inp`` and ``chem_edge_annotated.inp`` files located inside the ``chemkin`` folder. These files will be helpful in viewing RMG's estimate for edge reactions and seeing if certain reactions one expects are actually in the edge or not. This is a global fallback; individual writers can override it (see below).

Setting ``keepIrreversible`` to ``True`` will make RMG import library reactions as is, whether they are reversible or irreversible in the library. Otherwise, if ``False`` (default value), RMG will force all library reactions to be reversible, and will assign the forward rate from the relevant library.

Setting ``trimolecularProductReversible`` to ``False`` will not allow families with three products to react in the reverse direction. Default is ``True``.

Setting ``saveSeedModulus`` to ``-1`` will only save the seed from the last iteration at the end of an RMG job. Alternatively, the seed can be saved every ``n`` iterations by setting ``saveSeedModulus`` to ``n``.

Per-writer Output Configuration
--------------------------------

Each of the following options controls a separate output-format writer.
Each accepts ``True``, ``False``, or a Python dict with optional keys:

* ``'saveInterval'`` *(int)* — positive N writes every N iterations (iteration
numbering starts at 0); ``-1`` writes only at the very end of the run.
Defaults to ``1`` (every iteration) for writers that are on by default.
* ``'verboseComments'`` *(bool, optional)* — overrides the global
``verboseComments`` flag for this writer only.
* ``'saveEdge'`` *(bool, optional)* — overrides the global ``saveEdgeSpecies``
flag for this writer only.

Examples::

# Chemkin: save only at the end, with verbose comments and edge species
generateChemkin={'saveInterval': -1, 'verboseComments': True, 'saveEdge': True}

# RMS YAML: save every 5 iterations
generateRMSYAML={'saveInterval': 5}

# Cantera YAML v2: save every iteration with verbose comments
generateCanteraYAML2={'saveInterval': 1, 'verboseComments': True, 'saveEdge': False}

``generateChemkin`` (default ``True``)
Controls the Chemkin writer. Output is written to the ``chemkin/`` folder.
When enabled, Cantera's ``ck2yaml`` converter is also run at the end of the
job to produce a ``cantera_from_ck/`` folder — see :ref:`output`.

``generateRMSYAML`` (default ``True``)
Controls the RMS YAML writer. Output is written to the ``rms/`` folder.

``generateCanteraYAML1`` (default ``False``) *(beta)*
Controls the *direct* Cantera YAML v1 writer. Output is written to the
``cantera1/`` folder. Unlike the ``cantera_from_ck`` route (which converts
a Chemkin file via ``ck2yaml``), this writer constructs the YAML directly
from RMG's internal Python objects without going through Chemkin at all.
It runs at every iteration (or on the configured schedule) so you get a
history of the growing mechanism.

.. warning::

This writer is in **beta**. The output should be valid Cantera YAML, but
it has been less extensively tested than the established
``cantera_from_ck`` route. If both this writer and the Chemkin writer
are enabled, a ``comparison_report.txt`` is generated at the end of the
run comparing the two outputs numerically. Please report discrepancies
on the `RMG-Py issue tracker
<https://github.com/ReactionMechanismGenerator/RMG-Py/issues>`_.

``generateCanteraYAML2`` (default ``False``) *(beta)*
Controls the *direct* Cantera YAML v2 writer. Output is written to the
``cantera2/`` folder. Like ``generateCanteraYAML1``, this writer bypasses
the Chemkin intermediate, but instead uses the Cantera Python API
(``ct.Solution``) to construct and serialise the mechanism. It also runs
at every iteration (or on the configured schedule).

.. warning::

This writer is in **beta**. It has been less extensively tested than the
established ``cantera_from_ck`` route. When enabled alongside the Chemkin
writer, a ``comparison_report.txt`` is generated at the end of the run.
Please report discrepancies on the `RMG-Py issue tracker
<https://github.com/ReactionMechanismGenerator/RMG-Py/issues>`_.

``generateOutputHTML`` (default ``False``)
Controls the HTML species-visualisation writer. Output is written to the
``species/`` folder. Accepts ``True``/``False`` or the same dict format.

Species Constraints
=====================

Expand Down
100 changes: 95 additions & 5 deletions documentation/source/users/rmg/output.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
Analyzing the Output Files
**************************

You will see that a sucessfully executed RMG job will create multiple output files and folders:
You will see that a sucessfully executed RMG job will create multiple output files and folders:
``output.html`` (if ``generateOutputHTML=True`` is specified)
``/cantera_from_ck``
``/cantera1`` (if ``generateCanteraYAML1=True`` is specified)
``/cantera2`` (if ``generateCanteraYAML2=True`` is specified)
``/chemkin``
``/pdep``
``/pdep``
``/plot``
``/rms``
``/solver``
``/species``
``/species``
``RMG.log``

------------------
Expand Down Expand Up @@ -39,6 +43,92 @@ network.

------------------
The Solver Folder
------------------
RMG currently includes a solver for isothermal batch reactors. This is in fact a critical part of the model enlargement algorithm. If you have included simulations in your input file, the solutions will be located in ``/solver``. You will probably only be interested in the files with the largest number tags.
------------------
RMG currently includes a solver for isothermal batch reactors. This is in fact a critical part of the model enlargement algorithm. If you have included simulations in your input file, the solutions will be located in ``/solver``. You will probably only be interested in the files with the largest number tags.
Please note that up to and including RMG-Py version 2.3.0 these files showed mole fraction of each species at each step, but they now show amount (number of moles) of each species; you must divide by the sum if you wish to get a mole fraction.

------------------------------
Cantera Output Folders
------------------------------

RMG can write mechanisms in `Cantera <https://cantera.org>`_ YAML format via three distinct
routes, producing up to three output folders. All three require Cantera to be installed in
the conda environment (it is included in the standard ``rmg_env``).

``/cantera_from_ck``
^^^^^^^^^^^^^^^^^^^^

This folder is always produced when the Chemkin writer is enabled (``generateChemkin=True``, the default).
After the final RMG iteration, Cantera's own ``ck2yaml`` converter is used to translate the Chemkin-format files in ``/chemkin`` into Cantera YAML.
This is the most thoroughly tested route and is the recommended output for production use.

``/cantera1`` *(beta)*
^^^^^^^^^^^^^^^^^^^^^^

.. note::

The ``cantera1`` writer is in **beta**. It uses the Cantera Python API to construct and
serialise the mechanism YAML, rather than writing the YAML by hand. It has been less
extensively tested than the ``cantera_from_ck`` route. Please report any discrepancies.

This folder is created when ``generateCanteraYAML1=True`` is set in the ``options()`` block
(disabled by default). The writer runs after every RMG iteration (or on the schedule set by
``saveInterval``), so the folder accumulates a history of the growing mechanism.

Files generated:

* ``chem{NNNN}.yaml`` — mechanism snapshot at the iteration when the core contained *NNNN*
species (e.g. ``chem0042.yaml``)
* ``chem.yaml`` — copy of the latest snapshot; always reflects the current model state
* ``chem_annotated.yaml`` — annotated version with SMILES, source, and kinetics comments
(written when ``verboseComments=True`` for this writer)
* ``chem_edge{NNNN}.yaml`` / ``chem_edge.yaml`` / ``chem_edge_annotated.yaml`` — edge-model
equivalents (written when ``saveEdge=True``)
* ``comparison_report.txt`` — numerical comparison of ``chem.yaml`` against the
``cantera_from_ck`` translation (written at the end of the run if both writers are enabled;
see below)

``/cantera2`` *(beta)*
^^^^^^^^^^^^^^^^^^^^^^

.. note::

The ``cantera2`` writer is in **beta**. It generates Cantera YAML directly from RMG's
internal Python data structures, without going through the Chemkin intermediate. While
it should produce valid mechanisms, it has been less extensively tested than the
``cantera_from_ck`` route. Please report any discrepancies.

This folder is created when ``generateCanteraYAML2=True`` is set in the ``options()`` block
(disabled by default). Like ``cantera1``, it runs at every iteration (or on the configured
schedule).

Files generated:

* ``chem{NNNN}.yaml`` / ``chem.yaml`` — latest mechanism snapshot and its labelled history
* ``chem_annotated.yaml`` — annotated version (written when ``verboseComments=True``)
* ``chem_edge{NNNN}.yaml`` / ``chem_edge.yaml`` / ``chem_edge_annotated.yaml`` — edge-model
equivalents (written when ``saveEdge=True``)
* ``comparison_report.txt`` — numerical comparison against the ``cantera_from_ck``
translation (written at the end of the run if both writers are enabled)

Comparison Reports
^^^^^^^^^^^^^^^^^^

When a direct-writer folder (``cantera1`` or ``cantera2``) is used alongside the Chemkin
writer, RMG automatically compares the final ``chem.yaml`` from that folder against the
``cantera_from_ck/chem.yaml`` produced by ``ck2yaml``. The comparison checks differences
in the yaml data. Not all differences are necessarily problematic. Results are written to
``comparison_report.txt`` inside the relevant direct-writer folder.

If you find that the two routes disagree in a problematic way, please open an issue on the
`RMG-Py GitHub repository <https://github.com/ReactionMechanismGenerator/RMG-Py/issues>`_
and include the ``comparison_report.txt`` and a minimal reproducing ``input.py``.

------------------------------
The RMS YAML Folder
------------------------------

The ``/rms`` folder contains the mechanism in
`ReactionMechanismSimulator (RMS) <https://github.com/ReactionMechanismGenerator/ReactionMechanismSimulator.jl>`_
YAML format. This writer is enabled by default (``generateRMSYAML=True``) and writes at
every iteration, unless configured otherwise by ``saveInterval``.
6 changes: 3 additions & 3 deletions documentation/source/users/rmg/running.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ at the command line will print the documentation from ``util.py``, which is repr
-P, --postprocess postprocess profiling statistics from previous
[failed] run; does not run the simulation
-t DD:HH:MM:SS, --walltime DD:HH:MM:SS
set the maximum execution time
set the maximum execution time (overrides input.py if provided)
-i MAXITER, --maxiter MAXITER
set the maximum number of RMG iterations
set the maximum number of RMG iterations (overrides input.py if provided)
-n MAXPROC, --maxproc MAXPROC
max number of processes used during reaction
generation
Expand All @@ -73,7 +73,7 @@ Run with multiprocessing for reaction generation and QMTP::

python rmg.py -n <Max number of processes allowed> input.py

Run with setting a limit on the maximum execution time::
Run with setting a limit on the maximum execution time (if specified, then the command-line value overrides any value read from ``input.py``)::

python rmg.py -t <DD:HH:MM:SS> input.py

Expand Down
5 changes: 5 additions & 0 deletions examples/rmg/1,3-hexadiene/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,9 @@
generateOutputHTML=False,
generatePlots=False,
generatePESDiagrams=True,
# Large model: write output every 5 iterations and skip edge species to reduce I/O
generateChemkin={'saveInterval': 1, 'saveEdge': False},
generateRMSYAML={'saveInterval': 5},
generateCanteraYAML1={'saveInterval': 5},
generateCanteraYAML2={'saveInterval': 5},
)
4 changes: 2 additions & 2 deletions examples/rmg/MR_test/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@
#Sets a time limit in the form DD:HH:MM:SS after which the RMG job will stop. Useful for profiling on jobs that
#do not converge.
#wallTime = '00:00:00',
#When keepIrreversible=False (default), forces RMG to import library reactions as reversible.
#Otherwise, if set to True, RMG will import library reactions while keeping the reversibility as specified.
keepIrreversible=False,
#Forces RMG to import library reactions as reversible (default). Otherwise, if set to True, RMG will import library
#reactions while keeping the reversibility as as.
)

# optional module allows for correction to unimolecular reaction rates at low pressures and/or temperatures.
Expand Down
5 changes: 5 additions & 0 deletions examples/rmg/ch3no2/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,13 @@
)

simulator(atol=1e-16,rtol=1e-8)

options(
units='si',
generateOutputHTML=False,
generatePlots=False,
# Large model: write output every 5 iterations to reduce I/O
generateChemkin={'saveInterval': 5, 'saveEdge': False},
generateRMSYAML={'saveInterval': 5},
generateCanteraYAML2={'saveInterval': 10, 'saveEdge': True},
)
44 changes: 34 additions & 10 deletions examples/rmg/commented/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,23 +221,47 @@
generatePESDiagrams=False,
# saves mole fraction of species in 'solver/' to help you create plots
saveSimulationProfiles=False,
# gets RMG to output comments on where kinetics were obtained in the chemkin file.
# useful for debugging kinetics but increases memory usage of the chemkin output file
# Global fallback for verbose comments (comments on where kinetics were obtained).
# Useful for debugging kinetics but increases output file size.
# Individual writers can override this with their own verboseComments key.
verboseComments=False,
# gets RMG to generate edge species chemkin files. Uses lots of memory in output.
# Helpful for seeing why some reaction are not appearing in core model.
# Global fallback for saving edge-species files. Uses lots of memory in output.
# Helpful for seeing why some reactions are not appearing in the core model.
# Individual writers can override this with their own saveEdge key.
saveEdgeSpecies=False,
# Sets a time limit in the form DD:HH:MM:SS after which the RMG job will stop. Useful for profiling on jobs that
# do not converge.
# wallTime = '00:00:00',
# Forces RMG to import library reactions as reversible (default). Otherwise, if set to True, RMG will import library
# reactions while keeping the reversibility as as.
# Sets a time limit in the form DD:HH:MM:SS after (or shortly before) which the RMG job will stop.
# Useful for profiling on jobs that do not converge.
wallTime = '00:00:00:00',
# If keepIrreversible=False (default) forces RMG to import library reactions as reversible.
# If set to True, RMG will import library reactions while keeping the reversibility as specified.
keepIrreversible=False,
# Allows families with three products to react in the diverse direction (default).
trimolecularProductReversible=True,
# Allows a seed to be saved every n iterations.
# The default of -1 causes the iteration to only be saved at the end of the RMG job
saveSeedModulus=-1
saveSeedModulus=-1,
#
# --- Per-writer output configuration ---
# Each writer accepts True/False or a dict with keys:
# 'saveInterval': N (positive = every N iterations; -1 = end of run only)
# 'verboseComments': True/False (overrides the global verboseComments above)
# 'saveEdge': True/False (overrides the global saveEdgeSpecies above)
#
# Chemkin writer: always on by default; saves every iteration.
generateChemkin=True,
# generateChemkin={'saveInterval': -1, 'verboseComments': True, 'saveEdge': True},
#
# RMS YAML writer: always on by default; saves every iteration.
generateRMSYAML=True,
# generateRMSYAML={'saveInterval': -1},
#
# Cantera YAML v1 writer: off by default.
generateCanteraYAML1=False,
# generateCanteraYAML1={'saveInterval': -1, 'verboseComments': True, 'saveEdge': False},
#
# Cantera YAML v2 writer: off by default.
generateCanteraYAML2=False,
# generateCanteraYAML2={'saveInterval': 1, 'verboseComments': True, 'saveEdge': True},
)

# optional module allows for correction to unimolecular reaction rates at low pressures and/or temperatures.
Expand Down
Loading
Loading