Skip to content

Commit

Permalink
Automated documentation rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jun 18, 2024
1 parent c33171f commit 49f1c5b
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 13 deletions.
21 changes: 19 additions & 2 deletions _sources/users/rmg/input.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ by Benson's method.

For example, if you wish to use the GRI-Mech 3.0 mechanism [GRIMech3.0]_ as a ThermoLibrary in your model, the syntax will be::

thermoLibraries = ['primaryThermoLibrary','GRI-Mech3.0']
thermoLibraries = ['primaryThermoLibrary', 'GRI-Mech3.0']

.. [GRIMech3.0] Gregory P. Smith, David M. Golden, Michael Frenklach, Nigel W. Moriarty, Boris Eiteneer, Mikhail Goldenberg, C. Thomas Bowman, Ronald K. Hanson, Soonho Song, William C. Gardiner, Jr., Vitali V. Lissianski, and Zhiwei Qin http://combustion.berkeley.edu/gri-mech/
Expand Down Expand Up @@ -78,7 +78,7 @@ In the following example, the user has created
a reaction library with a few additional reactions specific to n-butane, and these reactions
are to be used in addition to the Glarborg C3 library::

reactionLibraries = [('Glarborg/C3',False)],
reactionLibraries = [('Glarborg/C3', False)],

The keyword False/True permits user to append all unused reactions (= kept in the edge) from this library to the chemkin file.
True means those reactions will be appended. Using just the string inputs would lead to
Expand All @@ -104,6 +104,23 @@ given in each mechanism, the different mechanisms can have different units.
Library.


.. _externallib:

External Libraries
------------------
Users may direct RMG to use thermo and/or kinetic libraries which are not included in the RMG database,
e.g., a library a user created that was intentionally saved to a path different than the conventional
RMG-database location. In such cases, the user can specify the full path to the library in the input file::

thermoLibraries = ['path/to/your/thermo/library/file.py']

or::

reactionLibraries = [(path/to/your/kinetic/library/folder/']

Combinations in any order of RMG's legacy libraries and users' external libraries are allowed,
and the order in which the libraries are specified is the order in which they are loaded and given priority.

.. _seedmechanism:

Seed Mechanisms
Expand Down
Binary file modified objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

36 changes: 26 additions & 10 deletions users/rmg/input.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h2><span class="section-number">4.2. </span>Datasources<a class="headerlink" hr
must be specified in one of the primary thermo libraries as they cannot be estimated
by Benson’s method.</p>
<p>For example, if you wish to use the GRI-Mech 3.0 mechanism <a class="reference internal" href="#grimech3-0" id="id1"><span>[GRIMech3.0]</span></a> as a ThermoLibrary in your model, the syntax will be:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">thermoLibraries</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;primaryThermoLibrary&#39;</span><span class="p">,</span><span class="s1">&#39;GRI-Mech3.0&#39;</span><span class="p">]</span>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">thermoLibraries</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;primaryThermoLibrary&#39;</span><span class="p">,</span> <span class="s1">&#39;GRI-Mech3.0&#39;</span><span class="p">]</span>
</pre></div>
</div>
<div role="list" class="citation-list">
Expand Down Expand Up @@ -125,7 +125,7 @@ <h2><span class="section-number">4.2. </span>Datasources<a class="headerlink" hr
In the following example, the user has created
a reaction library with a few additional reactions specific to n-butane, and these reactions
are to be used in addition to the Glarborg C3 library:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">reactionLibraries</span> <span class="o">=</span> <span class="p">[(</span><span class="s1">&#39;Glarborg/C3&#39;</span><span class="p">,</span><span class="kc">False</span><span class="p">)],</span>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">reactionLibraries</span> <span class="o">=</span> <span class="p">[(</span><span class="s1">&#39;Glarborg/C3&#39;</span><span class="p">,</span> <span class="kc">False</span><span class="p">)],</span>
</pre></div>
</div>
<p>The keyword False/True permits user to append all unused reactions (= kept in the edge) from this library to the chemkin file.
Expand All @@ -150,8 +150,23 @@ <h2><span class="section-number">4.2. </span>Datasources<a class="headerlink" hr
Library.</p>
</div>
</section>
<section id="external-libraries">
<span id="externallib"></span><h3><span class="section-number">4.2.3. </span>External Libraries<a class="headerlink" href="#external-libraries" title="Permalink to this heading"></a></h3>
<p>Users may direct RMG to use thermo and/or kinetic libraries which are not included in the RMG database,
e.g., a library a user created that was intentionally saved to a path different than the conventional
RMG-database location. In such cases, the user can specify the full path to the library in the input file:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">thermoLibraries</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;path/to/your/thermo/library/file.py&#39;</span><span class="p">]</span>
</pre></div>
</div>
<p>or:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">reactionLibraries</span> <span class="o">=</span> <span class="p">[(</span><span class="n">path</span><span class="o">/</span><span class="n">to</span><span class="o">/</span><span class="n">your</span><span class="o">/</span><span class="n">kinetic</span><span class="o">/</span><span class="n">library</span><span class="o">/</span><span class="n">folder</span><span class="o">/</span><span class="s1">&#39;]</span>
</pre></div>
</div>
<p>Combinations in any order of RMG’s legacy libraries and users’ external libraries are allowed,
and the order in which the libraries are specified is the order in which they are loaded and given priority.</p>
</section>
<section id="seed-mechanisms">
<span id="seedmechanism"></span><h3><span class="section-number">4.2.3. </span>Seed Mechanisms<a class="headerlink" href="#seed-mechanisms" title="Permalink to this heading"></a></h3>
<span id="seedmechanism"></span><h3><span class="section-number">4.2.4. </span>Seed Mechanisms<a class="headerlink" href="#seed-mechanisms" title="Permalink to this heading"></a></h3>
<p>The next section of the <code class="file docutils literal notranslate"><span class="pre">input.py</span></code> file specifies which, if any,
Seed Mechanisms should be used. If a seed mechanism is passed to RMG, every
species and reaction present in the seed mechanism will be placed into the core, in
Expand All @@ -173,7 +188,7 @@ <h2><span class="section-number">4.2. </span>Datasources<a class="headerlink" hr
the one that gets used.</p>
</section>
<section id="kinetics-depositories">
<span id="kineticsdepositories"></span><h3><span class="section-number">4.2.4. </span>Kinetics Depositories<a class="headerlink" href="#kinetics-depositories" title="Permalink to this heading"></a></h3>
<span id="kineticsdepositories"></span><h3><span class="section-number">4.2.5. </span>Kinetics Depositories<a class="headerlink" href="#kinetics-depositories" title="Permalink to this heading"></a></h3>
<p>Kinetics depositories store reactions which can be used for rate estimation.
Depositories are divided by the sources of the data. Currently, RMG database
has two depositories. The main depository is <cite>training</cite> which contains
Expand All @@ -187,7 +202,7 @@ <h2><span class="section-number">4.2. </span>Datasources<a class="headerlink" hr
</div>
</section>
<section id="kinetics-families">
<span id="kineticsfamilies"></span><h3><span class="section-number">4.2.5. </span>Kinetics Families<a class="headerlink" href="#kinetics-families" title="Permalink to this heading"></a></h3>
<span id="kineticsfamilies"></span><h3><span class="section-number">4.2.6. </span>Kinetics Families<a class="headerlink" href="#kinetics-families" title="Permalink to this heading"></a></h3>
<p>In this section users can specify the particular reaction families that they wish to use to generate their model.
This can be specified with any combination of specific families and predefined sets from <code class="file docutils literal notranslate"><span class="pre">RMG-database/input/kinetics/families/recommended.py</span></code>.</p>
<p>For example, you can use only the <code class="file docutils literal notranslate"><span class="pre">H_Abstraction</span></code> family to build the model:</p>
Expand All @@ -214,7 +229,7 @@ <h2><span class="section-number">4.2. </span>Datasources<a class="headerlink" hr
<p>Finally, you can also specify <code class="docutils literal notranslate"><span class="pre">'all'</span></code> or <code class="docutils literal notranslate"><span class="pre">'none'</span></code>, which may be useful in certain cases.</p>
</section>
<section id="kinetics-estimator">
<h3><span class="section-number">4.2.6. </span>Kinetics Estimator<a class="headerlink" href="#kinetics-estimator" title="Permalink to this heading"></a></h3>
<h3><span class="section-number">4.2.7. </span>Kinetics Estimator<a class="headerlink" href="#kinetics-estimator" title="Permalink to this heading"></a></h3>
<p>The last section is specifying that RMG is estimating kinetics of reactions from rate rules. For more details on how kinetic estimations is working check <a class="reference internal" href="kinetics.html#kinetics"><span class="std std-ref">Kinetics Estimation</span></a>:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">kineticsEstimator</span> <span class="o">=</span> <span class="s1">&#39;rate rules&#39;</span>
</pre></div>
Expand Down Expand Up @@ -1056,10 +1071,11 @@ <h3><a href="../../contents.html">Table of Contents</a></h3>
<li><a class="reference internal" href="#datasources">4.2. Datasources</a><ul>
<li><a class="reference internal" href="#thermo-libraries">4.2.1. Thermo Libraries</a></li>
<li><a class="reference internal" href="#reaction-libraries">4.2.2. Reaction Libraries</a></li>
<li><a class="reference internal" href="#seed-mechanisms">4.2.3. Seed Mechanisms</a></li>
<li><a class="reference internal" href="#kinetics-depositories">4.2.4. Kinetics Depositories</a></li>
<li><a class="reference internal" href="#kinetics-families">4.2.5. Kinetics Families</a></li>
<li><a class="reference internal" href="#kinetics-estimator">4.2.6. Kinetics Estimator</a></li>
<li><a class="reference internal" href="#external-libraries">4.2.3. External Libraries</a></li>
<li><a class="reference internal" href="#seed-mechanisms">4.2.4. Seed Mechanisms</a></li>
<li><a class="reference internal" href="#kinetics-depositories">4.2.5. Kinetics Depositories</a></li>
<li><a class="reference internal" href="#kinetics-families">4.2.6. Kinetics Families</a></li>
<li><a class="reference internal" href="#kinetics-estimator">4.2.7. Kinetics Estimator</a></li>
</ul>
</li>
<li><a class="reference internal" href="#list-of-species">4.3. List of species</a></li>
Expand Down

0 comments on commit 49f1c5b

Please sign in to comment.