Files
GridFire/docs/html/reaction_8h_source.html

702 lines
163 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2025-07-24 11:10:45 -04:00
<title>GridFire: src/include/gridfire/reaction/reaction.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
<link href="doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">GridFire<span id="projectnumber">&#160;0.0.1a</span>
</div>
<div id="projectbrief">General Purpose Nuclear Network</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search',true);
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('reaction_8h_source.html',''); initResizable(true); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">reaction.h</div></div>
</div><!--header-->
<div class="contents">
<a href="reaction_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include &quot;fourdst/composition/atomicSpecies.h&quot;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include &quot;fourdst/logging/logging.h&quot;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include &quot;quill/Logger.h&quot;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &lt;unordered_map&gt;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include &lt;unordered_set&gt;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include &quot;cppad/cppad.hpp&quot;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include &quot;xxhash64.h&quot;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span></div>
<div class="foldopen" id="foldopen00025" data-start="{" data-end="}">
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="namespacegridfire_1_1reaction.html"> 25</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">gridfire::reaction</a> {</div>
<div class="foldopen" id="foldopen00033" data-start="{" data-end="};">
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html"> 33</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html">RateCoefficientSet</a> {</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a2fa6b65e300dcd181222b743c2b3d6ed"> 34</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a2fa6b65e300dcd181222b743c2b3d6ed">a0</a>; </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#ace9dbd928e179784e47eaa108ce8d721"> 35</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#ace9dbd928e179784e47eaa108ce8d721">a1</a>; </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a2a9316d19bc2e8bf0a7872eb6fe8a53f"> 36</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a2a9316d19bc2e8bf0a7872eb6fe8a53f">a2</a>; </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a3d047485ebb57d6c763adfe4aae493b1"> 37</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a3d047485ebb57d6c763adfe4aae493b1">a3</a>; </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#ae57b2eac71cb4ed9947f40c9cb8fc3ca"> 38</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#ae57b2eac71cb4ed9947f40c9cb8fc3ca">a4</a>; </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a8c79db4e649b4eb1d29c43ebe4e95458"> 39</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a8c79db4e649b4eb1d29c43ebe4e95458">a5</a>; </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#adf8e6ed7f91cb9e15d1469a808b1877a"> 40</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#adf8e6ed7f91cb9e15d1469a808b1877a">a6</a>; </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span></div>
<div class="foldopen" id="foldopen00048" data-start="{" data-end="}">
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a31a92f95a27e4430209dfc2bdfa5c40f"> 48</a></span> <span class="keyword">friend</span> std::ostream&amp; <a class="code hl_friend" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a31a92f95a27e4430209dfc2bdfa5c40f">operator&lt;&lt;</a>(std::ostream&amp; os, <span class="keyword">const</span> <a class="code hl_struct" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html">RateCoefficientSet</a>&amp; r) {</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> os &lt;&lt; <span class="stringliteral">&quot;[&quot;</span> &lt;&lt; r.<a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a2fa6b65e300dcd181222b743c2b3d6ed">a0</a> &lt;&lt; <span class="stringliteral">&quot;, &quot;</span> &lt;&lt; r.<a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#ace9dbd928e179784e47eaa108ce8d721">a1</a> &lt;&lt; <span class="stringliteral">&quot;, &quot;</span> &lt;&lt; r.<a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a2a9316d19bc2e8bf0a7872eb6fe8a53f">a2</a> &lt;&lt; <span class="stringliteral">&quot;, &quot;</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> &lt;&lt; r.<a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a3d047485ebb57d6c763adfe4aae493b1">a3</a> &lt;&lt; <span class="stringliteral">&quot;, &quot;</span> &lt;&lt; r.<a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#ae57b2eac71cb4ed9947f40c9cb8fc3ca">a4</a> &lt;&lt; <span class="stringliteral">&quot;, &quot;</span> &lt;&lt; r.<a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a8c79db4e649b4eb1d29c43ebe4e95458">a5</a> &lt;&lt; <span class="stringliteral">&quot;, &quot;</span> &lt;&lt; r.<a class="code hl_variable" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#adf8e6ed7f91cb9e15d1469a808b1877a">a6</a> &lt;&lt; <span class="stringliteral">&quot;]&quot;</span>;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keywordflow">return</span> os;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> }</div>
</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> };</div>
</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span></div>
<div class="foldopen" id="foldopen00072" data-start="{" data-end="};">
2025-07-24 11:10:45 -04:00
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classgridfire_1_1_reaction.html"> 72</a></span> <span class="keyword">class </span><a class="code hl_function" href="classgridfire_1_1_reaction.html#a7dff19d387e771d96c26e98d75ee9d5c">Reaction</a> {</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#ab1860df84843be70f97469761e11ab6a"> 77</a></span> <span class="keyword">virtual</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#ab1860df84843be70f97469761e11ab6a">~Reaction</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a7dff19d387e771d96c26e98d75ee9d5c">Reaction</a>(</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keyword">const</span> std::string_view <span class="keywordtype">id</span>,</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keyword">const</span> std::string_view <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a78f42664cc957e266b6cf15fda09be97">peName</a>,</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a5cb438adfefb640e4bc58e09053bd629">chapter</a>,</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keyword">const</span> std::vector&lt;fourdst::atomic::Species&gt; &amp;<a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a0b543e9b0bb4a21efe4b29780d9bdf5b">reactants</a>,</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="keyword">const</span> std::vector&lt;fourdst::atomic::Species&gt; &amp;<a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a6e2ff61b9e8409f2a561663628b8ce02">products</a>,</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#abda0b4e4313e6d4ba57acf37d5976fb8">qValue</a>,</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keyword">const</span> std::string_view label,</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keyword">const</span> <a class="code hl_struct" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html">RateCoefficientSet</a> &amp;sets,</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> reverse = <span class="keyword">false</span>);</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> [[nodiscard]] <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#ad81e9b2a1773470059ca6989c60556ec">calculate_rate</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> T9) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> [[nodiscard]] <span class="keyword">virtual</span> CppAD::AD&lt;double&gt; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#ad81e9b2a1773470059ca6989c60556ec">calculate_rate</a>(<span class="keyword">const</span> CppAD::AD&lt;double&gt; T9) <span class="keyword">const</span>;</div>
2025-07-24 11:10:45 -04:00
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> [[nodiscard]] <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a3a8ba9212d76d5ce51f20df6892c6061">calculate_forward_rate_log_derivative</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> T9) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a78f42664cc957e266b6cf15fda09be97"> 122</a></span> [[nodiscard]] <span class="keyword">virtual</span> std::string_view <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a78f42664cc957e266b6cf15fda09be97">peName</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a6124aa9fc2306349e1dd879a37923248">m_peName</a>; }</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span></div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a5cb438adfefb640e4bc58e09053bd629"> 128</a></span> [[nodiscard]] <span class="keywordtype">int</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a5cb438adfefb640e4bc58e09053bd629">chapter</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a16f9cbb6269817099d3dc07d4e63da7b">m_chapter</a>; }</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span></div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a410e2ab0784ad751f82bbe55be603db0"> 134</a></span> [[nodiscard]] std::string_view <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a410e2ab0784ad751f82bbe55be603db0">sourceLabel</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a0185c6be5465d113f25e00aee1297cd6">m_sourceLabel</a>; }</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span></div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a85968076e686e67763f4fdf4f72a892e"> 140</a></span> [[nodiscard]] <span class="keyword">const</span> <a class="code hl_struct" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html">RateCoefficientSet</a>&amp; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a85968076e686e67763f4fdf4f72a892e">rateCoefficients</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#aa61a9a024d7c4ff66a351ccd0277ec72">m_rateCoefficients</a>; }</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#ab92785f331a446e51a0960b75d60b37b">contains</a>(<span class="keyword">const</span> fourdst::atomic::Species&amp; species) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span></div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#abbe243affa61ba9b2cd2a7b905cd5e45">contains_reactant</a>(<span class="keyword">const</span> fourdst::atomic::Species&amp; species) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span></div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a074d3cd2421fd5d0133e47f0522403e2">contains_product</a>(<span class="keyword">const</span> fourdst::atomic::Species&amp; species) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span></div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> [[nodiscard]] std::unordered_set&lt;fourdst::atomic::Species&gt; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a7dc8fda87e0581fde6da0a81cf4d7224">all_species</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span></div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> [[nodiscard]] std::unordered_set&lt;fourdst::atomic::Species&gt; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a855ea65e4b62fb0cddc550424a4bc923">reactant_species</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span></div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> [[nodiscard]] std::unordered_set&lt;fourdst::atomic::Species&gt; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a01c67726efbaa2ff8e4d6f2c965f485c">product_species</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span></div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> [[nodiscard]] <span class="keywordtype">size_t</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a1d3c8ab6d55155f9a21ad80ed8b9ef97">num_species</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span></div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#aaf0c94db6536b4a9ac1ec08a5c8f01ac"> 192</a></span> [[nodiscard]] <span class="keywordtype">int</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#aaf0c94db6536b4a9ac1ec08a5c8f01ac">stoichiometry</a>(<span class="keyword">const</span> fourdst::atomic::Species&amp; species) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span></div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> [[nodiscard]] std::unordered_map&lt;fourdst::atomic::Species, int&gt; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#ad359c06d7196c1a7a955a7b66a51dbe3">stoichiometry</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span></div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a084c38181408ed5e6fa2a2dd4d0ec905"> 204</a></span> [[nodiscard]] std::string_view <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a084c38181408ed5e6fa2a2dd4d0ec905">id</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a5c685e5a736b51799e5b9f6746c4126b">m_id</a>; }</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span></div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#abda0b4e4313e6d4ba57acf37d5976fb8"> 210</a></span> [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#abda0b4e4313e6d4ba57acf37d5976fb8">qValue</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a59122a2898bb9af640cc3e9aeb49028b">m_qValue</a>; }</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span></div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a0b543e9b0bb4a21efe4b29780d9bdf5b"> 216</a></span> [[nodiscard]] <span class="keyword">const</span> std::vector&lt;fourdst::atomic::Species&gt;&amp; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a0b543e9b0bb4a21efe4b29780d9bdf5b">reactants</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a87a065b3c7806bcdb5eadb7de2978a11">m_reactants</a>; }</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span></div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a6e2ff61b9e8409f2a561663628b8ce02"> 222</a></span> [[nodiscard]] <span class="keyword">const</span> std::vector&lt;fourdst::atomic::Species&gt;&amp; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a6e2ff61b9e8409f2a561663628b8ce02">products</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a4b5607ed413acdf29539b8a57461e49e">m_products</a>; }</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span></div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#aa67d05dfabf007c1acad34052d9a1dba"> 228</a></span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#aa67d05dfabf007c1acad34052d9a1dba">is_reverse</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a0b0b9ac498080aae91ffd466d1ae85a9">m_reverse</a>; }</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span></div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#aa1d71e38fc55ae691dbb9ec459a612a5">excess_energy</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span></div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#ac426457cf0a54a15b206549422083bac"> 241</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#ac426457cf0a54a15b206549422083bac">operator==</a>(<span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a7dff19d387e771d96c26e98d75ee9d5c">Reaction</a>&amp; other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a5c685e5a736b51799e5b9f6746c4126b">m_id</a> == other.<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a5c685e5a736b51799e5b9f6746c4126b">m_id</a>; }</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span></div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a2f1c115a99bc7c477a2e858ff18b1b51"> 248</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a2f1c115a99bc7c477a2e858ff18b1b51">operator!=</a>(<span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a7dff19d387e771d96c26e98d75ee9d5c">Reaction</a>&amp; other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == other); }</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span></div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> [[nodiscard]] uint64_t <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#af6c20e6d03a2d9f87632f71a90b88cb5">hash</a>(uint64_t seed = 0) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> </div>
<div class="foldopen" id="foldopen00258" data-start="{" data-end="}">
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a2b05ab608187216fc751bd2e42e8b7d8"> 258</a></span> <span class="keyword">friend</span> std::ostream&amp; <a class="code hl_friend" href="classgridfire_1_1reaction_1_1_reaction.html#a2b05ab608187216fc751bd2e42e8b7d8">operator&lt;&lt;</a>(std::ostream&amp; os, <span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a7dff19d387e771d96c26e98d75ee9d5c">Reaction</a>&amp; r) {</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> <span class="keywordflow">return</span> os &lt;&lt; <span class="stringliteral">&quot;(Reaction:&quot;</span> &lt;&lt; r.<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a5c685e5a736b51799e5b9f6746c4126b">m_id</a> &lt;&lt; <span class="stringliteral">&quot;)&quot;</span>;</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> }</div>
</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> </div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a7044d0a1d59d85502ce554e4ec2167e4"> 263</a></span> quill::Logger* <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a7044d0a1d59d85502ce554e4ec2167e4">m_logger</a> = fourdst::logging::LogManager::getInstance().getLogger(<span class="stringliteral">&quot;log&quot;</span>);</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a5c685e5a736b51799e5b9f6746c4126b"> 264</a></span> std::string <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a5c685e5a736b51799e5b9f6746c4126b">m_id</a>; </div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a6124aa9fc2306349e1dd879a37923248"> 265</a></span> std::string <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a6124aa9fc2306349e1dd879a37923248">m_peName</a>; </div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a16f9cbb6269817099d3dc07d4e63da7b"> 266</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a16f9cbb6269817099d3dc07d4e63da7b">m_chapter</a>; </div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a59122a2898bb9af640cc3e9aeb49028b"> 267</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a59122a2898bb9af640cc3e9aeb49028b">m_qValue</a> = 0.0; </div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a87a065b3c7806bcdb5eadb7de2978a11"> 268</a></span> std::vector&lt;fourdst::atomic::Species&gt; <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a87a065b3c7806bcdb5eadb7de2978a11">m_reactants</a>; </div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a4b5607ed413acdf29539b8a57461e49e"> 269</a></span> std::vector&lt;fourdst::atomic::Species&gt; <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a4b5607ed413acdf29539b8a57461e49e">m_products</a>; </div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a0185c6be5465d113f25e00aee1297cd6"> 270</a></span> std::string <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a0185c6be5465d113f25e00aee1297cd6">m_sourceLabel</a>; </div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#aa61a9a024d7c4ff66a351ccd0277ec72"> 271</a></span> <a class="code hl_struct" href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html">RateCoefficientSet</a> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#aa61a9a024d7c4ff66a351ccd0277ec72">m_rateCoefficients</a>; </div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a0b0b9ac498080aae91ffd466d1ae85a9"> 272</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#a0b0b9ac498080aae91ffd466d1ae85a9">m_reverse</a> = <span class="keyword">false</span>; </div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00283" data-start="{" data-end="}">
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_reaction.html#a648b9ed6108bed2469dc028fb7e351af"> 283</a></span> [[nodiscard]] T <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a648b9ed6108bed2469dc028fb7e351af">calculate_rate</a>(<span class="keyword">const</span> T T9)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <span class="keyword">const</span> T T913 = CppAD::pow(T9, 1.0/3.0);</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> <span class="keyword">const</span> T T953 = CppAD::pow(T9, 5.0/3.0);</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> <span class="keyword">const</span> T logT9 = CppAD::log(T9);</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> <span class="keyword">const</span> T exponent = <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#aa61a9a024d7c4ff66a351ccd0277ec72">m_rateCoefficients</a>.a0 +</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#aa61a9a024d7c4ff66a351ccd0277ec72">m_rateCoefficients</a>.a1 / T9 +</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#aa61a9a024d7c4ff66a351ccd0277ec72">m_rateCoefficients</a>.a2 / T913 +</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#aa61a9a024d7c4ff66a351ccd0277ec72">m_rateCoefficients</a>.a3 * T913 +</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#aa61a9a024d7c4ff66a351ccd0277ec72">m_rateCoefficients</a>.a4 * T9 +</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#aa61a9a024d7c4ff66a351ccd0277ec72">m_rateCoefficients</a>.a5 * T953 +</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_reaction.html#aa61a9a024d7c4ff66a351ccd0277ec72">m_rateCoefficients</a>.a6 * logT9;</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> <span class="keywordflow">return</span> CppAD::exp(exponent);</div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> }</div>
</div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> };</div>
</div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> </div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> </div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span></div>
<div class="foldopen" id="foldopen00310" data-start="{" data-end="};">
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_logical_reaction.html"> 310</a></span> <span class="keyword">class </span><a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a6965906ea33ebd0d615811219d9e9537">LogicalReaction</a> final : <span class="keyword">public</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a7dff19d387e771d96c26e98d75ee9d5c">Reaction</a> {</div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> <span class="keyword">explicit</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a6965906ea33ebd0d615811219d9e9537">LogicalReaction</a>(<span class="keyword">const</span> std::vector&lt;Reaction&gt; &amp;reactions);</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span></div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a14a24cb8ea25a1514134acc51197f1de">add_reaction</a>(<span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a7dff19d387e771d96c26e98d75ee9d5c">Reaction</a>&amp; <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>);</div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span></div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_logical_reaction.html#afa41050855b842c63db16c94d2e9b897"> 331</a></span> [[nodiscard]] <span class="keywordtype">size_t</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#afa41050855b842c63db16c94d2e9b897">size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a81f75f0085f8a5a45169f0b7240c809d">m_rates</a>.size(); }</div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span></div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_logical_reaction.html#add094eda0e71126f8443698d7f3317f4"> 337</a></span> [[nodiscard]] std::vector&lt;std::string&gt; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#add094eda0e71126f8443698d7f3317f4">sources</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a7fe91d24e20ebc76d612f6ad742f476f">m_sources</a>; }</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span></div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a1d2fb3b6a6a1860ace98b32447d1dd1b">calculate_rate</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> T9) <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> </div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> [[nodiscard]] <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#aa4b8d0d30459f360ff6e29d848e943d5">calculate_forward_rate_log_derivative</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> T9) <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span></div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span> [[nodiscard]] CppAD::AD&lt;double&gt; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a1d2fb3b6a6a1860ace98b32447d1dd1b">calculate_rate</a>(<span class="keyword">const</span> CppAD::AD&lt;double&gt; T9) <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span></div>
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a4ae3806e5e1a802b86a6de292d043476"> 359</a></span> <span class="keyword">auto</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a4ae3806e5e1a802b86a6de292d043476">begin</a>() { <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a81f75f0085f8a5a45169f0b7240c809d">m_rates</a>.begin(); }</div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a5d410de1053f8028faed1f0d0a6083f5"> 360</a></span> [[nodiscard]] <span class="keyword">auto</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a5d410de1053f8028faed1f0d0a6083f5">begin</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a81f75f0085f8a5a45169f0b7240c809d">m_rates</a>.cbegin(); }</div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_logical_reaction.html#af8d23557326e6c8499fa4919ac0bd972"> 361</a></span> <span class="keyword">auto</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#af8d23557326e6c8499fa4919ac0bd972">end</a>() { <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a81f75f0085f8a5a45169f0b7240c809d">m_rates</a>.end(); }</div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a054994f733b44293b4d79f3a9b207560"> 362</a></span> [[nodiscard]] <span class="keyword">auto</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a054994f733b44293b4d79f3a9b207560">end</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a81f75f0085f8a5a45169f0b7240c809d">m_rates</a>.cend(); }</div>
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno"> 365</span> </div>
<div class="foldopen" id="foldopen00366" data-start="{" data-end="}">
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a10cbea11653524dae2f7eafb5c22c90f"> 366</a></span> <span class="keyword">friend</span> std::ostream&amp; <a class="code hl_friend" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a10cbea11653524dae2f7eafb5c22c90f">operator&lt;&lt;</a>(std::ostream&amp; os, <span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a6965906ea33ebd0d615811219d9e9537">LogicalReaction</a>&amp; r) {</div>
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> os &lt;&lt; <span class="stringliteral">&quot;(LogicalReaction: &quot;</span> &lt;&lt; r.<a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#a084c38181408ed5e6fa2a2dd4d0ec905">id</a>() &lt;&lt; <span class="stringliteral">&quot;, reverse: &quot;</span> &lt;&lt; r.<a class="code hl_function" href="classgridfire_1_1reaction_1_1_reaction.html#aa67d05dfabf007c1acad34052d9a1dba">is_reverse</a>() &lt;&lt; <span class="stringliteral">&quot;)&quot;</span>;</div>
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span> <span class="keywordflow">return</span> os;</div>
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno"> 369</span> }</div>
</div>
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno"> 370</span> </div>
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno"> 371</span> <span class="keyword">private</span>:</div>
2025-07-24 11:10:45 -04:00
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a7fe91d24e20ebc76d612f6ad742f476f"> 372</a></span> std::vector&lt;std::string&gt; <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a7fe91d24e20ebc76d612f6ad742f476f">m_sources</a>; </div>
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a81f75f0085f8a5a45169f0b7240c809d"> 373</a></span> std::vector&lt;RateCoefficientSet&gt; <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a81f75f0085f8a5a45169f0b7240c809d">m_rates</a>; </div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno"> 374</span> </div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno"> 375</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno"> 384</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00385" data-start="{" data-end="}">
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a019b721d83741acdb16036f00739f87c"> 385</a></span> [[nodiscard]] T <a class="code hl_function" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a019b721d83741acdb16036f00739f87c">calculate_rate</a>(<span class="keyword">const</span> T T9)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno"> 386</span> T sum = <span class="keyword">static_cast&lt;</span>T<span class="keyword">&gt;</span>(0.0);</div>
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno"> 387</span> <span class="keyword">const</span> T T913 = CppAD::pow(T9, 1.0/3.0);</div>
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno"> 388</span> <span class="keyword">const</span> T T953 = CppAD::pow(T9, 5.0/3.0);</div>
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno"> 389</span> <span class="keyword">const</span> T logT9 = CppAD::log(T9);</div>
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno"> 390</span> <span class="comment">// ReSharper disable once CppUseStructuredBinding</span></div>
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno"> 391</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; rate : <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_logical_reaction.html#a81f75f0085f8a5a45169f0b7240c809d">m_rates</a>) {</div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno"> 392</span> <span class="keyword">const</span> T exponent = rate.a0 +</div>
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno"> 393</span> rate.a1 / T9 +</div>
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno"> 394</span> rate.a2 / T913 +</div>
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno"> 395</span> rate.a3 * T913 +</div>
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno"> 396</span> rate.a4 * T9 +</div>
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno"> 397</span> rate.a5 * T953 +</div>
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno"> 398</span> rate.a6 * logT9;</div>
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno"> 399</span> sum += CppAD::exp(exponent);</div>
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno"> 400</span> }</div>
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno"> 401</span> <span class="keywordflow">return</span> sum;</div>
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno"> 402</span> }</div>
</div>
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno"> 403</span> };</div>
</div>
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno"> 404</span> </div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno"> 405</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00406" data-start="{" data-end="};">
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html"> 406</a></span> <span class="keyword">class </span><a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet</a> final {</div>
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno"> 407</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e"> 412</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet</a>(std::vector&lt;ReactionT&gt; reactions);</div>
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno"> 413</span> </div>
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a9def4c9a3a7a03625b7c467fe7440428"> 414</a></span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a9def4c9a3a7a03625b7c467fe7440428">TemplatedReactionSet</a>();</div>
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno"> 415</span></div>
2025-07-24 11:10:45 -04:00
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ada1d1880be53b81a9ed7b966fd6ade5a"> 420</a></span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ada1d1880be53b81a9ed7b966fd6ade5a">TemplatedReactionSet</a>(<span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet&lt;ReactionT&gt;</a>&amp; other);</div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno"> 421</span></div>
<div class="line"><a id="l00427" name="l00427"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac510dce14a6033551318c0c7b241f3c8"> 427</a></span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet&lt;ReactionT&gt;</a>&amp; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac510dce14a6033551318c0c7b241f3c8">operator=</a>(<span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet&lt;ReactionT&gt;</a>&amp; other);</div>
<div class="line"><a id="l00428" name="l00428"></a><span class="lineno"> 428</span></div>
2025-07-24 11:10:45 -04:00
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a339dbbf883b6ae20e33d9782d8376bcf"> 433</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a339dbbf883b6ae20e33d9782d8376bcf">add_reaction</a>(ReactionT <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>);</div>
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno"> 434</span></div>
2025-07-24 11:10:45 -04:00
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a89c4c5af12aef7fbfc24316c88237e22"> 439</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a89c4c5af12aef7fbfc24316c88237e22">remove_reaction</a>(<span class="keyword">const</span> ReactionT&amp; <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>);</div>
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno"> 440</span></div>
<div class="line"><a id="l00446" name="l00446"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a7777ecd0f594fdf66ce57d22610fad3c"> 446</a></span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a7777ecd0f594fdf66ce57d22610fad3c">contains</a>(<span class="keyword">const</span> std::string_view&amp; <span class="keywordtype">id</span>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00447" name="l00447"></a><span class="lineno"> 447</span></div>
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ab8cb5fbce6b819b9e4e44b0c2db54c6f"> 453</a></span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ab8cb5fbce6b819b9e4e44b0c2db54c6f">contains</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgridfire_1_1reaction_1_1_reaction.html">Reaction</a>&amp; <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno"> 454</span></div>
2025-07-24 11:10:45 -04:00
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a6a1dc3c56690386ae9f6aa5c2aa37ba2"> 459</a></span> [[nodiscard]] <span class="keywordtype">size_t</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a6a1dc3c56690386ae9f6aa5c2aa37ba2">size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.size(); }</div>
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno"> 460</span></div>
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a05f71d318564d880079fd6c96d59ae21"> 464</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a05f71d318564d880079fd6c96d59ae21">clear</a>();</div>
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno"> 465</span></div>
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ad870856d206d93f27125c88d44ff9e34"> 471</a></span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ad870856d206d93f27125c88d44ff9e34">contains_species</a>(<span class="keyword">const</span> fourdst::atomic::Species&amp; species) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno"> 472</span></div>
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac42606350d7557106f7954b1f114c128"> 478</a></span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac42606350d7557106f7954b1f114c128">contains_reactant</a>(<span class="keyword">const</span> fourdst::atomic::Species&amp; species) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno"> 479</span></div>
<div class="line"><a id="l00485" name="l00485"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a443ec5d7138764b32975232e13071ccf"> 485</a></span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a443ec5d7138764b32975232e13071ccf">contains_product</a>(<span class="keyword">const</span> fourdst::atomic::Species&amp; species) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00486" name="l00486"></a><span class="lineno"> 486</span></div>
<div class="line"><a id="l00493" name="l00493"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a638067a3e55ec2a422206055881aaaad"> 493</a></span> [[nodiscard]] <span class="keyword">const</span> ReactionT&amp; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a638067a3e55ec2a422206055881aaaad">operator[]</a>(<span class="keywordtype">size_t</span> index) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00494" name="l00494"></a><span class="lineno"> 494</span></div>
<div class="line"><a id="l00501" name="l00501"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a13e003529a17fa61aafdce3abd2dc773"> 501</a></span> [[nodiscard]] <span class="keyword">const</span> ReactionT&amp; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a13e003529a17fa61aafdce3abd2dc773">operator[]</a>(<span class="keyword">const</span> std::string_view&amp; <span class="keywordtype">id</span>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00502" name="l00502"></a><span class="lineno"> 502</span></div>
<div class="line"><a id="l00508" name="l00508"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a128660f5fbc67054f73811ed2982d24d"> 508</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a128660f5fbc67054f73811ed2982d24d">operator==</a>(<span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet</a>&amp; other) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00509" name="l00509"></a><span class="lineno"> 509</span></div>
<div class="line"><a id="l00515" name="l00515"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#aac76ec883b4ecebb2a94b2485dae7105"> 515</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#aac76ec883b4ecebb2a94b2485dae7105">operator!=</a>(<span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet</a>&amp; other) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00516" name="l00516"></a><span class="lineno"> 516</span></div>
<div class="line"><a id="l00525" name="l00525"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a272800016c83f259f5c6a92dc797353c"> 525</a></span> [[nodiscard]] uint64_t <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a272800016c83f259f5c6a92dc797353c">hash</a>(uint64_t seed = 0) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00526" name="l00526"></a><span class="lineno"> 526</span></div>
<div class="line"><a id="l00531" name="l00531"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a87257704009fcd57b553f86cdaacb597"> 531</a></span> <span class="keyword">auto</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a87257704009fcd57b553f86cdaacb597">begin</a>() { <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.begin(); }</div>
<div class="line"><a id="l00532" name="l00532"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#aee42bb25973dadc6629bdb5cb1db6369"> 532</a></span> [[nodiscard]] <span class="keyword">auto</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#aee42bb25973dadc6629bdb5cb1db6369">begin</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.cbegin(); }</div>
<div class="line"><a id="l00533" name="l00533"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ad19adbee44a71559a53785e3b1fc7e92"> 533</a></span> <span class="keyword">auto</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ad19adbee44a71559a53785e3b1fc7e92">end</a>() { <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.end(); }</div>
<div class="line"><a id="l00534" name="l00534"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac128da7417955ef8c5cb2bde5a1293c9"> 534</a></span> [[nodiscard]] <span class="keyword">auto</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac128da7417955ef8c5cb2bde5a1293c9">end</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.cend(); }</div>
<div class="foldopen" id="foldopen00537" data-start="{" data-end="}">
<div class="line"><a id="l00537" name="l00537"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a47265467dbf2c324ce3e4c85ebbaa6a7"> 537</a></span> <span class="keyword">friend</span> std::ostream&amp; <a class="code hl_friend" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a47265467dbf2c324ce3e4c85ebbaa6a7">operator&lt;&lt;</a>(std::ostream&amp; os, <span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet&lt;ReactionT&gt;</a>&amp; r) {</div>
<div class="line"><a id="l00538" name="l00538"></a><span class="lineno"> 538</span> os &lt;&lt; <span class="stringliteral">&quot;(ReactionSet: [&quot;</span>;</div>
<div class="line"><a id="l00539" name="l00539"></a><span class="lineno"> 539</span> <span class="keywordtype">size_t</span> counter = 0;</div>
<div class="line"><a id="l00540" name="l00540"></a><span class="lineno"> 540</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a> : r.<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>) {</div>
<div class="line"><a id="l00541" name="l00541"></a><span class="lineno"> 541</span> os &lt;&lt; <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>;</div>
<div class="line"><a id="l00542" name="l00542"></a><span class="lineno"> 542</span> <span class="keywordflow">if</span> (counter &lt; r.<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.size() - 2) {</div>
<div class="line"><a id="l00543" name="l00543"></a><span class="lineno"> 543</span> os &lt;&lt; <span class="stringliteral">&quot;, &quot;</span>;</div>
<div class="line"><a id="l00544" name="l00544"></a><span class="lineno"> 544</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (counter == r.<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.size() - 2) {</div>
<div class="line"><a id="l00545" name="l00545"></a><span class="lineno"> 545</span> os &lt;&lt; <span class="stringliteral">&quot; and &quot;</span>;</div>
<div class="line"><a id="l00546" name="l00546"></a><span class="lineno"> 546</span> }</div>
<div class="line"><a id="l00547" name="l00547"></a><span class="lineno"> 547</span> ++counter;</div>
<div class="line"><a id="l00548" name="l00548"></a><span class="lineno"> 548</span> }</div>
<div class="line"><a id="l00549" name="l00549"></a><span class="lineno"> 549</span> os &lt;&lt; <span class="stringliteral">&quot;])&quot;</span>;</div>
<div class="line"><a id="l00550" name="l00550"></a><span class="lineno"> 550</span> <span class="keywordflow">return</span> os;</div>
<div class="line"><a id="l00551" name="l00551"></a><span class="lineno"> 551</span> }</div>
</div>
<div class="line"><a id="l00552" name="l00552"></a><span class="lineno"> 552</span> </div>
<div class="line"><a id="l00553" name="l00553"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a1596de3439735a45ac344fa85ace6c82"> 553</a></span> [[nodiscard]] std::unordered_set&lt;fourdst::atomic::Species&gt; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a1596de3439735a45ac344fa85ace6c82">getReactionSetSpecies</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00554" name="l00554"></a><span class="lineno"> 554</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00555" name="l00555"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac6fcc5b08938b73ff6dac680e5bf28d9"> 555</a></span> quill::Logger* <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac6fcc5b08938b73ff6dac680e5bf28d9">m_logger</a> = fourdst::logging::LogManager::getInstance().getLogger(<span class="stringliteral">&quot;log&quot;</span>);</div>
<div class="line"><a id="l00556" name="l00556"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600"> 556</a></span> std::vector&lt;ReactionT&gt; <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>;</div>
<div class="line"><a id="l00557" name="l00557"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5fda3af5ea9ae0ecfb60a61a9e07f5b4"> 557</a></span> std::string <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5fda3af5ea9ae0ecfb60a61a9e07f5b4">m_id</a>;</div>
<div class="line"><a id="l00558" name="l00558"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979"> 558</a></span> std::unordered_map&lt;std::string, ReactionT&gt; <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>; </div>
<div class="line"><a id="l00559" name="l00559"></a><span class="lineno"> 559</span> </div>
<div class="line"><a id="l00560" name="l00560"></a><span class="lineno"> 560</span> };</div>
</div>
<div class="line"><a id="l00561" name="l00561"></a><span class="lineno"> 561</span> </div>
<div class="line"><a id="l00562" name="l00562"></a><span class="lineno"><a class="line" href="namespacegridfire_1_1reaction.html#ad838ce3fb6cc02c3fd90b924a0dd91b1"> 562</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="namespacegridfire_1_1reaction.html#ad838ce3fb6cc02c3fd90b924a0dd91b1">ReactionSet</a> = <a class="code hl_class" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html">TemplatedReactionSet&lt;Reaction&gt;</a>; </div>
<div class="line"><a id="l00563" name="l00563"></a><span class="lineno"><a class="line" href="namespacegridfire_1_1reaction.html#aa86f08712565f278adacc7cd2361eb31"> 563</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="namespacegridfire_1_1reaction.html#aa86f08712565f278adacc7cd2361eb31">LogicalReactionSet</a> = <a class="code hl_class" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html">TemplatedReactionSet&lt;LogicalReaction&gt;</a>; </div>
<div class="line"><a id="l00564" name="l00564"></a><span class="lineno"> 564</span> </div>
<div class="line"><a id="l00565" name="l00565"></a><span class="lineno"> 565</span> <a class="code hl_typedef" href="namespacegridfire_1_1reaction.html#aa86f08712565f278adacc7cd2361eb31">LogicalReactionSet</a> <a class="code hl_function" href="namespacegridfire_1_1reaction.html#abfcfafc0cda0c3ed56930a12e7ead67f">packReactionSetToLogicalReactionSet</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacegridfire_1_1reaction.html#ad838ce3fb6cc02c3fd90b924a0dd91b1">ReactionSet</a>&amp; reactionSet);</div>
<div class="line"><a id="l00566" name="l00566"></a><span class="lineno"> 566</span> </div>
<div class="line"><a id="l00567" name="l00567"></a><span class="lineno"> 567</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00568" data-start="{" data-end="}">
<div class="line"><a id="l00568" name="l00568"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e"> 568</a></span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a9def4c9a3a7a03625b7c467fe7440428">TemplatedReactionSet&lt;ReactionT&gt;::TemplatedReactionSet</a>(</div>
<div class="line"><a id="l00569" name="l00569"></a><span class="lineno"> 569</span> std::vector&lt;ReactionT&gt; reactions</div>
<div class="line"><a id="l00570" name="l00570"></a><span class="lineno"> 570</span> ) :</div>
<div class="line"><a id="l00571" name="l00571"></a><span class="lineno"> 571</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>(<a class="code hl_namespace" href="namespacestd.html">std</a>::move(reactions)) {</div>
<div class="line"><a id="l00572" name="l00572"></a><span class="lineno"> 572</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.empty()) {</div>
<div class="line"><a id="l00573" name="l00573"></a><span class="lineno"> 573</span> return; <span class="comment">// Case where the reactions will be added later.</span></div>
<div class="line"><a id="l00574" name="l00574"></a><span class="lineno"> 574</span> }</div>
<div class="line"><a id="l00575" name="l00575"></a><span class="lineno"> 575</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>.reserve(reactions.size());</div>
<div class="line"><a id="l00576" name="l00576"></a><span class="lineno"> 576</span> for (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a> : <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>) {</div>
<div class="line"><a id="l00577" name="l00577"></a><span class="lineno"> 577</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5fda3af5ea9ae0ecfb60a61a9e07f5b4">m_id</a> += <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>.id();</div>
<div class="line"><a id="l00578" name="l00578"></a><span class="lineno"> 578</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>.emplace(<a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>.id(), <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>);</div>
<div class="line"><a id="l00579" name="l00579"></a><span class="lineno"> 579</span> }</div>
<div class="line"><a id="l00580" name="l00580"></a><span class="lineno"> 580</span> }</div>
</div>
<div class="line"><a id="l00581" name="l00581"></a><span class="lineno"> 581</span> </div>
<div class="line"><a id="l00582" name="l00582"></a><span class="lineno"> 582</span> <span class="keyword">template</span>&lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="line"><a id="l00583" name="l00583"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a9def4c9a3a7a03625b7c467fe7440428"> 583</a></span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a9def4c9a3a7a03625b7c467fe7440428">TemplatedReactionSet&lt;ReactionT&gt;::TemplatedReactionSet</a>() {}</div>
<div class="line"><a id="l00584" name="l00584"></a><span class="lineno"> 584</span> </div>
<div class="line"><a id="l00585" name="l00585"></a><span class="lineno"> 585</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00586" data-start="{" data-end="}">
<div class="line"><a id="l00586" name="l00586"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ada1d1880be53b81a9ed7b966fd6ade5a"> 586</a></span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a9def4c9a3a7a03625b7c467fe7440428">TemplatedReactionSet&lt;ReactionT&gt;::TemplatedReactionSet</a>(<span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet&lt;ReactionT&gt;</a> &amp;other) {</div>
<div class="line"><a id="l00587" name="l00587"></a><span class="lineno"> 587</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.reserve(other.<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.size());</div>
<div class="line"><a id="l00588" name="l00588"></a><span class="lineno"> 588</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; reaction_ptr: other.<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>) {</div>
<div class="line"><a id="l00589" name="l00589"></a><span class="lineno"> 589</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.push_back(reaction_ptr);</div>
<div class="line"><a id="l00590" name="l00590"></a><span class="lineno"> 590</span> }</div>
<div class="line"><a id="l00591" name="l00591"></a><span class="lineno"> 591</span> </div>
<div class="line"><a id="l00592" name="l00592"></a><span class="lineno"> 592</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>.reserve(other.<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>.size());</div>
<div class="line"><a id="l00593" name="l00593"></a><span class="lineno"> 593</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; reaction_ptr : <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>) {</div>
<div class="line"><a id="l00594" name="l00594"></a><span class="lineno"> 594</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>.emplace(reaction_ptr.id(), reaction_ptr);</div>
<div class="line"><a id="l00595" name="l00595"></a><span class="lineno"> 595</span> }</div>
2025-07-24 11:10:45 -04:00
<div class="line"><a id="l00596" name="l00596"></a><span class="lineno"> 596</span> }</div>
</div>
<div class="line"><a id="l00597" name="l00597"></a><span class="lineno"> 597</span> </div>
<div class="line"><a id="l00598" name="l00598"></a><span class="lineno"> 598</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00599" data-start="{" data-end="}">
<div class="line"><a id="l00599" name="l00599"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac510dce14a6033551318c0c7b241f3c8"> 599</a></span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet&lt;ReactionT&gt;</a>&amp; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac510dce14a6033551318c0c7b241f3c8">TemplatedReactionSet&lt;ReactionT&gt;::operator=</a>(<span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet&lt;ReactionT&gt;</a> &amp;other) {</div>
<div class="line"><a id="l00600" name="l00600"></a><span class="lineno"> 600</span> <span class="keywordflow">if</span> (<span class="keyword">this</span> != &amp;other) {</div>
<div class="line"><a id="l00601" name="l00601"></a><span class="lineno"> 601</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet</a> temp(other);</div>
<div class="line"><a id="l00602" name="l00602"></a><span class="lineno"> 602</span> std::swap(<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>, temp.<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>);</div>
<div class="line"><a id="l00603" name="l00603"></a><span class="lineno"> 603</span> std::swap(<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>, temp.<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>);</div>
<div class="line"><a id="l00604" name="l00604"></a><span class="lineno"> 604</span> }</div>
<div class="line"><a id="l00605" name="l00605"></a><span class="lineno"> 605</span> <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00606" name="l00606"></a><span class="lineno"> 606</span> }</div>
</div>
<div class="line"><a id="l00607" name="l00607"></a><span class="lineno"> 607</span> </div>
<div class="line"><a id="l00608" name="l00608"></a><span class="lineno"> 608</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00609" data-start="{" data-end="}">
<div class="line"><a id="l00609" name="l00609"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a339dbbf883b6ae20e33d9782d8376bcf"> 609</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a339dbbf883b6ae20e33d9782d8376bcf">TemplatedReactionSet&lt;ReactionT&gt;::add_reaction</a>(ReactionT <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>) {</div>
<div class="line"><a id="l00610" name="l00610"></a><span class="lineno"> 610</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.emplace_back(<a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>);</div>
<div class="line"><a id="l00611" name="l00611"></a><span class="lineno"> 611</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5fda3af5ea9ae0ecfb60a61a9e07f5b4">m_id</a> += <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.back().id();</div>
<div class="line"><a id="l00612" name="l00612"></a><span class="lineno"> 612</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>.emplace(<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.back().id(), <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.back());</div>
<div class="line"><a id="l00613" name="l00613"></a><span class="lineno"> 613</span> }</div>
</div>
<div class="line"><a id="l00614" name="l00614"></a><span class="lineno"> 614</span> </div>
<div class="line"><a id="l00615" name="l00615"></a><span class="lineno"> 615</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00616" data-start="{" data-end="}">
<div class="line"><a id="l00616" name="l00616"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a89c4c5af12aef7fbfc24316c88237e22"> 616</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a89c4c5af12aef7fbfc24316c88237e22">TemplatedReactionSet&lt;ReactionT&gt;::remove_reaction</a>(<span class="keyword">const</span> ReactionT&amp; <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>) {</div>
<div class="line"><a id="l00617" name="l00617"></a><span class="lineno"> 617</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>.contains(std::string(<a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>.id()))) {</div>
<div class="line"><a id="l00618" name="l00618"></a><span class="lineno"> 618</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00619" name="l00619"></a><span class="lineno"> 619</span> }</div>
<div class="line"><a id="l00620" name="l00620"></a><span class="lineno"> 620</span> </div>
<div class="line"><a id="l00621" name="l00621"></a><span class="lineno"> 621</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>.erase(std::string(<a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>.id()));</div>
<div class="line"><a id="l00622" name="l00622"></a><span class="lineno"> 622</span> </div>
<div class="line"><a id="l00623" name="l00623"></a><span class="lineno"> 623</span> std::erase_if(<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>, [&amp;<a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>](<span class="keyword">const</span> <a class="code hl_class" href="classgridfire_1_1reaction_1_1_reaction.html">Reaction</a>&amp; r) {</div>
<div class="line"><a id="l00624" name="l00624"></a><span class="lineno"> 624</span> <span class="keywordflow">return</span> r == <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>;</div>
<div class="line"><a id="l00625" name="l00625"></a><span class="lineno"> 625</span> });</div>
<div class="line"><a id="l00626" name="l00626"></a><span class="lineno"> 626</span> }</div>
</div>
<div class="line"><a id="l00627" name="l00627"></a><span class="lineno"> 627</span> </div>
<div class="line"><a id="l00628" name="l00628"></a><span class="lineno"> 628</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00629" data-start="{" data-end="}">
<div class="line"><a id="l00629" name="l00629"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a7777ecd0f594fdf66ce57d22610fad3c"> 629</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a7777ecd0f594fdf66ce57d22610fad3c">TemplatedReactionSet&lt;ReactionT&gt;::contains</a>(<span class="keyword">const</span> std::string_view&amp; <span class="keywordtype">id</span>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00630" name="l00630"></a><span class="lineno"> 630</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a> : <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>) {</div>
<div class="line"><a id="l00631" name="l00631"></a><span class="lineno"> 631</span> <span class="keywordflow">if</span> (<a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>.id() == <span class="keywordtype">id</span>) {</div>
<div class="line"><a id="l00632" name="l00632"></a><span class="lineno"> 632</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00633" name="l00633"></a><span class="lineno"> 633</span> }</div>
<div class="line"><a id="l00634" name="l00634"></a><span class="lineno"> 634</span> }</div>
<div class="line"><a id="l00635" name="l00635"></a><span class="lineno"> 635</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00636" name="l00636"></a><span class="lineno"> 636</span> }</div>
</div>
<div class="line"><a id="l00637" name="l00637"></a><span class="lineno"> 637</span> </div>
<div class="line"><a id="l00638" name="l00638"></a><span class="lineno"> 638</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00639" data-start="{" data-end="}">
<div class="line"><a id="l00639" name="l00639"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ab8cb5fbce6b819b9e4e44b0c2db54c6f"> 639</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a7777ecd0f594fdf66ce57d22610fad3c">TemplatedReactionSet&lt;ReactionT&gt;::contains</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgridfire_1_1reaction_1_1_reaction.html">Reaction</a>&amp; <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00640" name="l00640"></a><span class="lineno"> 640</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; r : <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>) {</div>
<div class="line"><a id="l00641" name="l00641"></a><span class="lineno"> 641</span> <span class="keywordflow">if</span> (r == <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>) {</div>
<div class="line"><a id="l00642" name="l00642"></a><span class="lineno"> 642</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00643" name="l00643"></a><span class="lineno"> 643</span> }</div>
<div class="line"><a id="l00644" name="l00644"></a><span class="lineno"> 644</span> }</div>
<div class="line"><a id="l00645" name="l00645"></a><span class="lineno"> 645</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00646" name="l00646"></a><span class="lineno"> 646</span> }</div>
</div>
<div class="line"><a id="l00647" name="l00647"></a><span class="lineno"> 647</span> </div>
<div class="line"><a id="l00648" name="l00648"></a><span class="lineno"> 648</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00649" data-start="{" data-end="}">
<div class="line"><a id="l00649" name="l00649"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a05f71d318564d880079fd6c96d59ae21"> 649</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a05f71d318564d880079fd6c96d59ae21">TemplatedReactionSet&lt;ReactionT&gt;::clear</a>() {</div>
<div class="line"><a id="l00650" name="l00650"></a><span class="lineno"> 650</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.clear();</div>
<div class="line"><a id="l00651" name="l00651"></a><span class="lineno"> 651</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>.clear();</div>
<div class="line"><a id="l00652" name="l00652"></a><span class="lineno"> 652</span> }</div>
</div>
<div class="line"><a id="l00653" name="l00653"></a><span class="lineno"> 653</span> </div>
<div class="line"><a id="l00654" name="l00654"></a><span class="lineno"> 654</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00655" data-start="{" data-end="}">
<div class="line"><a id="l00655" name="l00655"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ad870856d206d93f27125c88d44ff9e34"> 655</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ad870856d206d93f27125c88d44ff9e34">TemplatedReactionSet&lt;ReactionT&gt;::contains_species</a>(<span class="keyword">const</span> fourdst::atomic::Species&amp; species)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00656" name="l00656"></a><span class="lineno"> 656</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a> : <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>) {</div>
<div class="line"><a id="l00657" name="l00657"></a><span class="lineno"> 657</span> <span class="keywordflow">if</span> (<a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>.contains(species)) {</div>
<div class="line"><a id="l00658" name="l00658"></a><span class="lineno"> 658</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00659" name="l00659"></a><span class="lineno"> 659</span> }</div>
<div class="line"><a id="l00660" name="l00660"></a><span class="lineno"> 660</span> }</div>
<div class="line"><a id="l00661" name="l00661"></a><span class="lineno"> 661</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00662" name="l00662"></a><span class="lineno"> 662</span> }</div>
</div>
<div class="line"><a id="l00663" name="l00663"></a><span class="lineno"> 663</span> </div>
<div class="line"><a id="l00664" name="l00664"></a><span class="lineno"> 664</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00665" data-start="{" data-end="}">
<div class="line"><a id="l00665" name="l00665"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac42606350d7557106f7954b1f114c128"> 665</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac42606350d7557106f7954b1f114c128">TemplatedReactionSet&lt;ReactionT&gt;::contains_reactant</a>(<span class="keyword">const</span> fourdst::atomic::Species&amp; species)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00666" name="l00666"></a><span class="lineno"> 666</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; r : <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>) {</div>
<div class="line"><a id="l00667" name="l00667"></a><span class="lineno"> 667</span> <span class="keywordflow">if</span> (r.contains_reactant(species)) {</div>
<div class="line"><a id="l00668" name="l00668"></a><span class="lineno"> 668</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00669" name="l00669"></a><span class="lineno"> 669</span> }</div>
<div class="line"><a id="l00670" name="l00670"></a><span class="lineno"> 670</span> }</div>
<div class="line"><a id="l00671" name="l00671"></a><span class="lineno"> 671</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00672" name="l00672"></a><span class="lineno"> 672</span> }</div>
</div>
<div class="line"><a id="l00673" name="l00673"></a><span class="lineno"> 673</span> </div>
<div class="line"><a id="l00674" name="l00674"></a><span class="lineno"> 674</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00675" data-start="{" data-end="}">
<div class="line"><a id="l00675" name="l00675"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a443ec5d7138764b32975232e13071ccf"> 675</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a443ec5d7138764b32975232e13071ccf">TemplatedReactionSet&lt;ReactionT&gt;::contains_product</a>(<span class="keyword">const</span> fourdst::atomic::Species&amp; species)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00676" name="l00676"></a><span class="lineno"> 676</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; r : <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>) {</div>
<div class="line"><a id="l00677" name="l00677"></a><span class="lineno"> 677</span> <span class="keywordflow">if</span> (r.contains_product(species)) {</div>
<div class="line"><a id="l00678" name="l00678"></a><span class="lineno"> 678</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00679" name="l00679"></a><span class="lineno"> 679</span> }</div>
<div class="line"><a id="l00680" name="l00680"></a><span class="lineno"> 680</span> }</div>
2025-07-24 11:10:45 -04:00
<div class="line"><a id="l00681" name="l00681"></a><span class="lineno"> 681</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00682" name="l00682"></a><span class="lineno"> 682</span> }</div>
</div>
<div class="line"><a id="l00683" name="l00683"></a><span class="lineno"> 683</span> </div>
<div class="line"><a id="l00684" name="l00684"></a><span class="lineno"> 684</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00685" data-start="{" data-end="}">
2025-07-24 11:10:45 -04:00
<div class="line"><a id="l00685" name="l00685"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a638067a3e55ec2a422206055881aaaad"> 685</a></span> <span class="keyword">const</span> ReactionT&amp; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a638067a3e55ec2a422206055881aaaad">TemplatedReactionSet&lt;ReactionT&gt;::operator[]</a>(<span class="keyword">const</span> <span class="keywordtype">size_t</span> index)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00686" name="l00686"></a><span class="lineno"> 686</span> <span class="keywordflow">if</span> (index &gt;= <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.size()) {</div>
<div class="line"><a id="l00687" name="l00687"></a><span class="lineno"> 687</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac6fcc5b08938b73ff6dac680e5bf28d9">m_logger</a> -&gt; flush_log();</div>
<div class="line"><a id="l00688" name="l00688"></a><span class="lineno"> 688</span> <span class="keywordflow">throw</span> std::out_of_range(<span class="stringliteral">&quot;Index&quot;</span> + std::to_string(index) + <span class="stringliteral">&quot; out of range for ReactionSet of size &quot;</span> + std::to_string(<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.size()) + <span class="stringliteral">&quot;.&quot;</span>);</div>
<div class="line"><a id="l00689" name="l00689"></a><span class="lineno"> 689</span> }</div>
<div class="line"><a id="l00690" name="l00690"></a><span class="lineno"> 690</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>[index];</div>
<div class="line"><a id="l00691" name="l00691"></a><span class="lineno"> 691</span> }</div>
</div>
<div class="line"><a id="l00692" name="l00692"></a><span class="lineno"> 692</span> </div>
<div class="line"><a id="l00693" name="l00693"></a><span class="lineno"> 693</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00694" data-start="{" data-end="}">
2025-07-24 11:10:45 -04:00
<div class="line"><a id="l00694" name="l00694"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a13e003529a17fa61aafdce3abd2dc773"> 694</a></span> <span class="keyword">const</span> ReactionT&amp; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a638067a3e55ec2a422206055881aaaad">TemplatedReactionSet&lt;ReactionT&gt;::operator[]</a>(<span class="keyword">const</span> std::string_view&amp; <span class="keywordtype">id</span>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00695" name="l00695"></a><span class="lineno"> 695</span> <span class="keywordflow">if</span> (<span class="keyword">auto</span> it = <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>.find(std::string(<span class="keywordtype">id</span>)); it != <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">m_reactionNameMap</a>.end()) {</div>
<div class="line"><a id="l00696" name="l00696"></a><span class="lineno"> 696</span> <span class="keywordflow">return</span> it-&gt;second;</div>
<div class="line"><a id="l00697" name="l00697"></a><span class="lineno"> 697</span> }</div>
2025-07-24 11:10:45 -04:00
<div class="line"><a id="l00698" name="l00698"></a><span class="lineno"> 698</span> <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac6fcc5b08938b73ff6dac680e5bf28d9">m_logger</a> -&gt; flush_log();</div>
<div class="line"><a id="l00699" name="l00699"></a><span class="lineno"> 699</span> <span class="keywordflow">throw</span> std::out_of_range(<span class="stringliteral">&quot;Species &quot;</span> + std::string(<span class="keywordtype">id</span>) + <span class="stringliteral">&quot; does not exist in ReactionSet.&quot;</span>);</div>
<div class="line"><a id="l00700" name="l00700"></a><span class="lineno"> 700</span> }</div>
</div>
<div class="line"><a id="l00701" name="l00701"></a><span class="lineno"> 701</span> </div>
<div class="line"><a id="l00702" name="l00702"></a><span class="lineno"> 702</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00703" data-start="{" data-end="}">
<div class="line"><a id="l00703" name="l00703"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a128660f5fbc67054f73811ed2982d24d"> 703</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a128660f5fbc67054f73811ed2982d24d">TemplatedReactionSet&lt;ReactionT&gt;::operator==</a>(<span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet&lt;ReactionT&gt;</a>&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00704" name="l00704"></a><span class="lineno"> 704</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a6a1dc3c56690386ae9f6aa5c2aa37ba2">size</a>() != other.<a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a6a1dc3c56690386ae9f6aa5c2aa37ba2">size</a>()) {</div>
<div class="line"><a id="l00705" name="l00705"></a><span class="lineno"> 705</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00706" name="l00706"></a><span class="lineno"> 706</span> }</div>
<div class="line"><a id="l00707" name="l00707"></a><span class="lineno"> 707</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a272800016c83f259f5c6a92dc797353c">hash</a>() == other.<a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a272800016c83f259f5c6a92dc797353c">hash</a>();</div>
<div class="line"><a id="l00708" name="l00708"></a><span class="lineno"> 708</span> }</div>
</div>
<div class="line"><a id="l00709" name="l00709"></a><span class="lineno"> 709</span> </div>
<div class="line"><a id="l00710" name="l00710"></a><span class="lineno"> 710</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00711" data-start="{" data-end="}">
<div class="line"><a id="l00711" name="l00711"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#aac76ec883b4ecebb2a94b2485dae7105"> 711</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#aac76ec883b4ecebb2a94b2485dae7105">TemplatedReactionSet&lt;ReactionT&gt;::operator!=</a>(<span class="keyword">const</span> <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">TemplatedReactionSet&lt;ReactionT&gt;</a>&amp; other)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00712" name="l00712"></a><span class="lineno"> 712</span> <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == other);</div>
<div class="line"><a id="l00713" name="l00713"></a><span class="lineno"> 713</span> }</div>
</div>
<div class="line"><a id="l00714" name="l00714"></a><span class="lineno"> 714</span> </div>
<div class="line"><a id="l00715" name="l00715"></a><span class="lineno"> 715</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00716" data-start="{" data-end="}">
<div class="line"><a id="l00716" name="l00716"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a272800016c83f259f5c6a92dc797353c"> 716</a></span> uint64_t <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a272800016c83f259f5c6a92dc797353c">TemplatedReactionSet&lt;ReactionT&gt;::hash</a>(uint64_t seed)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00717" name="l00717"></a><span class="lineno"> 717</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.empty()) {</div>
<div class="line"><a id="l00718" name="l00718"></a><span class="lineno"> 718</span> <span class="keywordflow">return</span> XXHash64::hash(<span class="keyword">nullptr</span>, 0, seed);</div>
<div class="line"><a id="l00719" name="l00719"></a><span class="lineno"> 719</span> }</div>
<div class="line"><a id="l00720" name="l00720"></a><span class="lineno"> 720</span> std::vector&lt;uint64_t&gt; individualReactionHashes;</div>
<div class="line"><a id="l00721" name="l00721"></a><span class="lineno"> 721</span> individualReactionHashes.reserve(<a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>.size());</div>
<div class="line"><a id="l00722" name="l00722"></a><span class="lineno"> 722</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a> : <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>) {</div>
<div class="line"><a id="l00723" name="l00723"></a><span class="lineno"> 723</span> individualReactionHashes.push_back(<a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>.hash(seed));</div>
<div class="line"><a id="l00724" name="l00724"></a><span class="lineno"> 724</span> }</div>
<div class="line"><a id="l00725" name="l00725"></a><span class="lineno"> 725</span> </div>
<div class="line"><a id="l00726" name="l00726"></a><span class="lineno"> 726</span> std::ranges::sort(individualReactionHashes);</div>
<div class="line"><a id="l00727" name="l00727"></a><span class="lineno"> 727</span> </div>
<div class="line"><a id="l00728" name="l00728"></a><span class="lineno"> 728</span> <span class="keyword">const</span> <span class="keyword">auto</span> data = <span class="keyword">static_cast&lt;</span><span class="keyword">const </span><span class="keywordtype">void</span>*<span class="keyword">&gt;</span>(individualReactionHashes.data());</div>
<div class="line"><a id="l00729" name="l00729"></a><span class="lineno"> 729</span> <span class="keyword">const</span> <span class="keywordtype">size_t</span> sizeInBytes = individualReactionHashes.size() * <span class="keyword">sizeof</span>(uint64_t);</div>
<div class="line"><a id="l00730" name="l00730"></a><span class="lineno"> 730</span> <span class="keywordflow">return</span> XXHash64::hash(data, sizeInBytes, seed);</div>
<div class="line"><a id="l00731" name="l00731"></a><span class="lineno"> 731</span> }</div>
</div>
<div class="line"><a id="l00732" name="l00732"></a><span class="lineno"> 732</span> </div>
<div class="line"><a id="l00733" name="l00733"></a><span class="lineno"> 733</span> <span class="keyword">template</span>&lt;<span class="keyword">typename</span> ReactionT&gt;</div>
<div class="foldopen" id="foldopen00734" data-start="{" data-end="}">
<div class="line"><a id="l00734" name="l00734"></a><span class="lineno"><a class="line" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a1596de3439735a45ac344fa85ace6c82"> 734</a></span> std::unordered_set&lt;fourdst::atomic::Species&gt; <a class="code hl_function" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a1596de3439735a45ac344fa85ace6c82">TemplatedReactionSet&lt;ReactionT&gt;::getReactionSetSpecies</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00735" name="l00735"></a><span class="lineno"> 735</span> std::unordered_set&lt;fourdst::atomic::Species&gt; species;</div>
<div class="line"><a id="l00736" name="l00736"></a><span class="lineno"> 736</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a> : <a class="code hl_variable" href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">m_reactions</a>) {</div>
<div class="line"><a id="l00737" name="l00737"></a><span class="lineno"> 737</span> <span class="keyword">const</span> <span class="keyword">auto</span> reactionSpecies = <a class="code hl_namespace" href="namespacegridfire_1_1reaction.html">reaction</a>.all_species();</div>
<div class="line"><a id="l00738" name="l00738"></a><span class="lineno"> 738</span> species.insert(reactionSpecies.begin(), reactionSpecies.end());</div>
<div class="line"><a id="l00739" name="l00739"></a><span class="lineno"> 739</span> }</div>
<div class="line"><a id="l00740" name="l00740"></a><span class="lineno"> 740</span> <span class="keywordflow">return</span> species;</div>
<div class="line"><a id="l00741" name="l00741"></a><span class="lineno"> 741</span> }</div>
</div>
<div class="line"><a id="l00742" name="l00742"></a><span class="lineno"> 742</span>}</div>
</div>
<div class="line"><a id="l00743" name="l00743"></a><span class="lineno"> 743</span> </div>
<div class="ttc" id="aclassgridfire_1_1_reaction_html_a7dff19d387e771d96c26e98d75ee9d5c"><div class="ttname"><a href="classgridfire_1_1_reaction.html#a7dff19d387e771d96c26e98d75ee9d5c">gridfire::Reaction::Reaction</a></div><div class="ttdeci">Reaction(const std::string_view id, const std::string_view peName, const int chapter, const std::vector&lt; fourdst::atomic::Species &gt; &amp;reactants, const std::vector&lt; fourdst::atomic::Species &gt; &amp;products, const double qValue, const std::string_view label, const RateCoefficientSet &amp;sets, const bool reverse=false)</div><div class="ttdoc">Constructs a Reaction object.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00019">reaction.cpp:19</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_a019b721d83741acdb16036f00739f87c"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#a019b721d83741acdb16036f00739f87c">gridfire::reaction::LogicalReaction::calculate_rate</a></div><div class="ttdeci">T calculate_rate(const T T9) const</div><div class="ttdoc">Template implementation for calculating the total reaction rate.</div><div class="ttdef"><b>Definition</b> <a href="#l00385">reaction.h:385</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_a054994f733b44293b4d79f3a9b207560"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#a054994f733b44293b4d79f3a9b207560">gridfire::reaction::LogicalReaction::end</a></div><div class="ttdeci">auto end() const</div><div class="ttdef"><b>Definition</b> <a href="#l00362">reaction.h:362</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_a10cbea11653524dae2f7eafb5c22c90f"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#a10cbea11653524dae2f7eafb5c22c90f">gridfire::reaction::LogicalReaction::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, const LogicalReaction &amp;r)</div><div class="ttdef"><b>Definition</b> <a href="#l00366">reaction.h:366</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_a14a24cb8ea25a1514134acc51197f1de"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#a14a24cb8ea25a1514134acc51197f1de">gridfire::reaction::LogicalReaction::add_reaction</a></div><div class="ttdeci">void add_reaction(const Reaction &amp;reaction)</div><div class="ttdoc">Adds another Reaction source to this logical reaction.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00192">reaction.cpp:192</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_a1d2fb3b6a6a1860ace98b32447d1dd1b"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#a1d2fb3b6a6a1860ace98b32447d1dd1b">gridfire::reaction::LogicalReaction::calculate_rate</a></div><div class="ttdeci">double calculate_rate(const double T9) const override</div><div class="ttdoc">Calculates the total reaction rate by summing all source rates.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00214">reaction.cpp:214</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_a4ae3806e5e1a802b86a6de292d043476"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#a4ae3806e5e1a802b86a6de292d043476">gridfire::reaction::LogicalReaction::begin</a></div><div class="ttdeci">auto begin()</div><div class="ttdef"><b>Definition</b> <a href="#l00359">reaction.h:359</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_a5d410de1053f8028faed1f0d0a6083f5"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#a5d410de1053f8028faed1f0d0a6083f5">gridfire::reaction::LogicalReaction::begin</a></div><div class="ttdeci">auto begin() const</div><div class="ttdef"><b>Definition</b> <a href="#l00360">reaction.h:360</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_a6965906ea33ebd0d615811219d9e9537"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#a6965906ea33ebd0d615811219d9e9537">gridfire::reaction::LogicalReaction::LogicalReaction</a></div><div class="ttdeci">LogicalReaction(const std::vector&lt; Reaction &gt; &amp;reactions)</div><div class="ttdoc">Constructs a LogicalReaction from a vector of Reaction objects.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00163">reaction.cpp:163</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_a7fe91d24e20ebc76d612f6ad742f476f"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#a7fe91d24e20ebc76d612f6ad742f476f">gridfire::reaction::LogicalReaction::m_sources</a></div><div class="ttdeci">std::vector&lt; std::string &gt; m_sources</div><div class="ttdoc">List of source labels.</div><div class="ttdef"><b>Definition</b> <a href="#l00372">reaction.h:372</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_a81f75f0085f8a5a45169f0b7240c809d"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#a81f75f0085f8a5a45169f0b7240c809d">gridfire::reaction::LogicalReaction::m_rates</a></div><div class="ttdeci">std::vector&lt; RateCoefficientSet &gt; m_rates</div><div class="ttdoc">List of rate coefficient sets from each source.</div><div class="ttdef"><b>Definition</b> <a href="#l00373">reaction.h:373</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_aa4b8d0d30459f360ff6e29d848e943d5"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#aa4b8d0d30459f360ff6e29d848e943d5">gridfire::reaction::LogicalReaction::calculate_forward_rate_log_derivative</a></div><div class="ttdeci">virtual double calculate_forward_rate_log_derivative(const double T9) const override</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00218">reaction.cpp:218</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_add094eda0e71126f8443698d7f3317f4"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#add094eda0e71126f8443698d7f3317f4">gridfire::reaction::LogicalReaction::sources</a></div><div class="ttdeci">std::vector&lt; std::string &gt; sources() const</div><div class="ttdoc">Gets the list of source labels for the aggregated rates.</div><div class="ttdef"><b>Definition</b> <a href="#l00337">reaction.h:337</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_af8d23557326e6c8499fa4919ac0bd972"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#af8d23557326e6c8499fa4919ac0bd972">gridfire::reaction::LogicalReaction::end</a></div><div class="ttdeci">auto end()</div><div class="ttdef"><b>Definition</b> <a href="#l00361">reaction.h:361</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_logical_reaction_html_afa41050855b842c63db16c94d2e9b897"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_logical_reaction.html#afa41050855b842c63db16c94d2e9b897">gridfire::reaction::LogicalReaction::size</a></div><div class="ttdeci">size_t size() const</div><div class="ttdoc">Gets the number of source rates contributing to this logical reaction.</div><div class="ttdef"><b>Definition</b> <a href="#l00331">reaction.h:331</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html">gridfire::reaction::Reaction</a></div><div class="ttdoc">Represents a single nuclear reaction from a specific data source.</div><div class="ttdef"><b>Definition</b> <a href="#l00072">reaction.h:72</a></div></div>
2025-07-24 11:10:45 -04:00
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a0185c6be5465d113f25e00aee1297cd6"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a0185c6be5465d113f25e00aee1297cd6">gridfire::reaction::Reaction::m_sourceLabel</a></div><div class="ttdeci">std::string m_sourceLabel</div><div class="ttdoc">Source label for the rate data (e.g., &quot;wc12w&quot;, &quot;st08&quot;).</div><div class="ttdef"><b>Definition</b> <a href="#l00270">reaction.h:270</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a01c67726efbaa2ff8e4d6f2c965f485c"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a01c67726efbaa2ff8e4d6f2c965f485c">gridfire::reaction::Reaction::product_species</a></div><div class="ttdeci">std::unordered_set&lt; fourdst::atomic::Species &gt; product_species() const</div><div class="ttdoc">Gets a set of all unique product species.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00106">reaction.cpp:106</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a074d3cd2421fd5d0133e47f0522403e2"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a074d3cd2421fd5d0133e47f0522403e2">gridfire::reaction::Reaction::contains_product</a></div><div class="ttdeci">bool contains_product(const fourdst::atomic::Species &amp;species) const</div><div class="ttdoc">Checks if the reaction involves a given species as a product.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00082">reaction.cpp:82</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a084c38181408ed5e6fa2a2dd4d0ec905"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a084c38181408ed5e6fa2a2dd4d0ec905">gridfire::reaction::Reaction::id</a></div><div class="ttdeci">std::string_view id() const</div><div class="ttdoc">Gets the unique identifier of the reaction.</div><div class="ttdef"><b>Definition</b> <a href="#l00204">reaction.h:204</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a0b0b9ac498080aae91ffd466d1ae85a9"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a0b0b9ac498080aae91ffd466d1ae85a9">gridfire::reaction::Reaction::m_reverse</a></div><div class="ttdeci">bool m_reverse</div><div class="ttdoc">Flag indicating if this is a reverse reaction rate.</div><div class="ttdef"><b>Definition</b> <a href="#l00272">reaction.h:272</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a0b543e9b0bb4a21efe4b29780d9bdf5b"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a0b543e9b0bb4a21efe4b29780d9bdf5b">gridfire::reaction::Reaction::reactants</a></div><div class="ttdeci">const std::vector&lt; fourdst::atomic::Species &gt; &amp; reactants() const</div><div class="ttdoc">Gets the vector of reactant species.</div><div class="ttdef"><b>Definition</b> <a href="#l00216">reaction.h:216</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a16f9cbb6269817099d3dc07d4e63da7b"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a16f9cbb6269817099d3dc07d4e63da7b">gridfire::reaction::Reaction::m_chapter</a></div><div class="ttdeci">int m_chapter</div><div class="ttdoc">Chapter number from the REACLIB database, defining the reaction structure.</div><div class="ttdef"><b>Definition</b> <a href="#l00266">reaction.h:266</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a1d3c8ab6d55155f9a21ad80ed8b9ef97"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a1d3c8ab6d55155f9a21ad80ed8b9ef97">gridfire::reaction::Reaction::num_species</a></div><div class="ttdeci">size_t num_species() const</div><div class="ttdoc">Gets the number of unique species involved in the reaction.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00129">reaction.cpp:129</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a2b05ab608187216fc751bd2e42e8b7d8"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a2b05ab608187216fc751bd2e42e8b7d8">gridfire::reaction::Reaction::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, const Reaction &amp;r)</div><div class="ttdef"><b>Definition</b> <a href="#l00258">reaction.h:258</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a2f1c115a99bc7c477a2e858ff18b1b51"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a2f1c115a99bc7c477a2e858ff18b1b51">gridfire::reaction::Reaction::operator!=</a></div><div class="ttdeci">bool operator!=(const Reaction &amp;other) const</div><div class="ttdoc">Compares this reaction with another for inequality.</div><div class="ttdef"><b>Definition</b> <a href="#l00248">reaction.h:248</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a3a8ba9212d76d5ce51f20df6892c6061"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a3a8ba9212d76d5ce51f20df6892c6061">gridfire::reaction::Reaction::calculate_forward_rate_log_derivative</a></div><div class="ttdeci">virtual double calculate_forward_rate_log_derivative(const double T9) const</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00047">reaction.cpp:47</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a410e2ab0784ad751f82bbe55be603db0"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a410e2ab0784ad751f82bbe55be603db0">gridfire::reaction::Reaction::sourceLabel</a></div><div class="ttdeci">std::string_view sourceLabel() const</div><div class="ttdoc">Gets the source label for the rate data.</div><div class="ttdef"><b>Definition</b> <a href="#l00134">reaction.h:134</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a4b5607ed413acdf29539b8a57461e49e"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a4b5607ed413acdf29539b8a57461e49e">gridfire::reaction::Reaction::m_products</a></div><div class="ttdeci">std::vector&lt; fourdst::atomic::Species &gt; m_products</div><div class="ttdoc">Products of the reaction.</div><div class="ttdef"><b>Definition</b> <a href="#l00269">reaction.h:269</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a59122a2898bb9af640cc3e9aeb49028b"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a59122a2898bb9af640cc3e9aeb49028b">gridfire::reaction::Reaction::m_qValue</a></div><div class="ttdeci">double m_qValue</div><div class="ttdoc">Q-value of the reaction in MeV.</div><div class="ttdef"><b>Definition</b> <a href="#l00267">reaction.h:267</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a5c685e5a736b51799e5b9f6746c4126b"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a5c685e5a736b51799e5b9f6746c4126b">gridfire::reaction::Reaction::m_id</a></div><div class="ttdeci">std::string m_id</div><div class="ttdoc">Unique identifier for the reaction (e.g., &quot;h1+h1=&gt;h2+e+nu&quot;).</div><div class="ttdef"><b>Definition</b> <a href="#l00264">reaction.h:264</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a5cb438adfefb640e4bc58e09053bd629"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a5cb438adfefb640e4bc58e09053bd629">gridfire::reaction::Reaction::chapter</a></div><div class="ttdeci">int chapter() const</div><div class="ttdoc">Gets the REACLIB chapter number.</div><div class="ttdef"><b>Definition</b> <a href="#l00128">reaction.h:128</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a6124aa9fc2306349e1dd879a37923248"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a6124aa9fc2306349e1dd879a37923248">gridfire::reaction::Reaction::m_peName</a></div><div class="ttdeci">std::string m_peName</div><div class="ttdoc">Name of the reaction in (projectile, ejectile) notation (e.g. &quot;p(p,g)d&quot;).</div><div class="ttdef"><b>Definition</b> <a href="#l00265">reaction.h:265</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a648b9ed6108bed2469dc028fb7e351af"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a648b9ed6108bed2469dc028fb7e351af">gridfire::reaction::Reaction::calculate_rate</a></div><div class="ttdeci">T calculate_rate(const T T9) const</div><div class="ttdoc">Template implementation for calculating the reaction rate.</div><div class="ttdef"><b>Definition</b> <a href="#l00283">reaction.h:283</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a6e2ff61b9e8409f2a561663628b8ce02"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a6e2ff61b9e8409f2a561663628b8ce02">gridfire::reaction::Reaction::products</a></div><div class="ttdeci">const std::vector&lt; fourdst::atomic::Species &gt; &amp; products() const</div><div class="ttdoc">Gets the vector of product species.</div><div class="ttdef"><b>Definition</b> <a href="#l00222">reaction.h:222</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a7044d0a1d59d85502ce554e4ec2167e4"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a7044d0a1d59d85502ce554e4ec2167e4">gridfire::reaction::Reaction::m_logger</a></div><div class="ttdeci">quill::Logger * m_logger</div><div class="ttdef"><b>Definition</b> <a href="#l00263">reaction.h:263</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a78f42664cc957e266b6cf15fda09be97"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a78f42664cc957e266b6cf15fda09be97">gridfire::reaction::Reaction::peName</a></div><div class="ttdeci">virtual std::string_view peName() const</div><div class="ttdoc">Gets the reaction name in (projectile, ejectile) notation.</div><div class="ttdef"><b>Definition</b> <a href="#l00122">reaction.h:122</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a7dc8fda87e0581fde6da0a81cf4d7224"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a7dc8fda87e0581fde6da0a81cf4d7224">gridfire::reaction::Reaction::all_species</a></div><div class="ttdeci">std::unordered_set&lt; fourdst::atomic::Species &gt; all_species() const</div><div class="ttdoc">Gets a set of all unique species involved in the reaction.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00091">reaction.cpp:91</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a7dff19d387e771d96c26e98d75ee9d5c"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a7dff19d387e771d96c26e98d75ee9d5c">gridfire::reaction::Reaction::Reaction</a></div><div class="ttdeci">Reaction(const std::string_view id, const std::string_view peName, const int chapter, const std::vector&lt; fourdst::atomic::Species &gt; &amp;reactants, const std::vector&lt; fourdst::atomic::Species &gt; &amp;products, const double qValue, const std::string_view label, const RateCoefficientSet &amp;sets, const bool reverse=false)</div><div class="ttdoc">Constructs a Reaction object.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00019">reaction.cpp:19</a></div></div>
2025-07-24 11:10:45 -04:00
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a855ea65e4b62fb0cddc550424a4bc923"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a855ea65e4b62fb0cddc550424a4bc923">gridfire::reaction::Reaction::reactant_species</a></div><div class="ttdeci">std::unordered_set&lt; fourdst::atomic::Species &gt; reactant_species() const</div><div class="ttdoc">Gets a set of all unique reactant species.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00098">reaction.cpp:98</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a85968076e686e67763f4fdf4f72a892e"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a85968076e686e67763f4fdf4f72a892e">gridfire::reaction::Reaction::rateCoefficients</a></div><div class="ttdeci">const RateCoefficientSet &amp; rateCoefficients() const</div><div class="ttdoc">Gets the set of rate coefficients.</div><div class="ttdef"><b>Definition</b> <a href="#l00140">reaction.h:140</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_a87a065b3c7806bcdb5eadb7de2978a11"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#a87a065b3c7806bcdb5eadb7de2978a11">gridfire::reaction::Reaction::m_reactants</a></div><div class="ttdeci">std::vector&lt; fourdst::atomic::Species &gt; m_reactants</div><div class="ttdoc">Reactants of the reaction.</div><div class="ttdef"><b>Definition</b> <a href="#l00268">reaction.h:268</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_aa1d71e38fc55ae691dbb9ec459a612a5"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#aa1d71e38fc55ae691dbb9ec459a612a5">gridfire::reaction::Reaction::excess_energy</a></div><div class="ttdeci">double excess_energy() const</div><div class="ttdoc">Calculates the excess energy from the mass difference of reactants and products.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00144">reaction.cpp:144</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_aa61a9a024d7c4ff66a351ccd0277ec72"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#aa61a9a024d7c4ff66a351ccd0277ec72">gridfire::reaction::Reaction::m_rateCoefficients</a></div><div class="ttdeci">RateCoefficientSet m_rateCoefficients</div><div class="ttdoc">The seven rate coefficients.</div><div class="ttdef"><b>Definition</b> <a href="#l00271">reaction.h:271</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_aa67d05dfabf007c1acad34052d9a1dba"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#aa67d05dfabf007c1acad34052d9a1dba">gridfire::reaction::Reaction::is_reverse</a></div><div class="ttdeci">bool is_reverse() const</div><div class="ttdoc">Checks if this is a reverse reaction rate.</div><div class="ttdef"><b>Definition</b> <a href="#l00228">reaction.h:228</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_aaf0c94db6536b4a9ac1ec08a5c8f01ac"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#aaf0c94db6536b4a9ac1ec08a5c8f01ac">gridfire::reaction::Reaction::stoichiometry</a></div><div class="ttdeci">int stoichiometry(const fourdst::atomic::Species &amp;species) const</div><div class="ttdoc">Calculates the stoichiometric coefficient for a given species.</div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_ab1860df84843be70f97469761e11ab6a"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#ab1860df84843be70f97469761e11ab6a">gridfire::reaction::Reaction::~Reaction</a></div><div class="ttdeci">virtual ~Reaction()=default</div><div class="ttdoc">Virtual destructor.</div></div>
2025-07-24 11:10:45 -04:00
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_ab92785f331a446e51a0960b75d60b37b"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#ab92785f331a446e51a0960b75d60b37b">gridfire::reaction::Reaction::contains</a></div><div class="ttdeci">bool contains(const fourdst::atomic::Species &amp;species) const</div><div class="ttdoc">Checks if the reaction involves a given species as a reactant or product.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00068">reaction.cpp:68</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_abbe243affa61ba9b2cd2a7b905cd5e45"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#abbe243affa61ba9b2cd2a7b905cd5e45">gridfire::reaction::Reaction::contains_reactant</a></div><div class="ttdeci">bool contains_reactant(const fourdst::atomic::Species &amp;species) const</div><div class="ttdoc">Checks if the reaction involves a given species as a reactant.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00073">reaction.cpp:73</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_abda0b4e4313e6d4ba57acf37d5976fb8"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#abda0b4e4313e6d4ba57acf37d5976fb8">gridfire::reaction::Reaction::qValue</a></div><div class="ttdeci">double qValue() const</div><div class="ttdoc">Gets the Q-value of the reaction.</div><div class="ttdef"><b>Definition</b> <a href="#l00210">reaction.h:210</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_ac426457cf0a54a15b206549422083bac"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#ac426457cf0a54a15b206549422083bac">gridfire::reaction::Reaction::operator==</a></div><div class="ttdeci">bool operator==(const Reaction &amp;other) const</div><div class="ttdoc">Compares this reaction with another for equality based on their IDs.</div><div class="ttdef"><b>Definition</b> <a href="#l00241">reaction.h:241</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_ad359c06d7196c1a7a955a7b66a51dbe3"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#ad359c06d7196c1a7a955a7b66a51dbe3">gridfire::reaction::Reaction::stoichiometry</a></div><div class="ttdeci">std::unordered_map&lt; fourdst::atomic::Species, int &gt; stoichiometry() const</div><div class="ttdoc">Gets a map of all species to their stoichiometric coefficients.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00133">reaction.cpp:133</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_ad81e9b2a1773470059ca6989c60556ec"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#ad81e9b2a1773470059ca6989c60556ec">gridfire::reaction::Reaction::calculate_rate</a></div><div class="ttdeci">virtual double calculate_rate(const double T9) const</div><div class="ttdoc">Calculates the reaction rate for a given temperature.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00039">reaction.cpp:39</a></div></div>
2025-07-24 11:10:45 -04:00
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_reaction_html_af6c20e6d03a2d9f87632f71a90b88cb5"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_reaction.html#af6c20e6d03a2d9f87632f71a90b88cb5">gridfire::reaction::Reaction::hash</a></div><div class="ttdeci">uint64_t hash(uint64_t seed=0) const</div><div class="ttdoc">Computes a hash for the reaction based on its ID.</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00157">reaction.cpp:157</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html">gridfire::reaction::TemplatedReactionSet</a></div><div class="ttdef"><b>Definition</b> <a href="#l00406">reaction.h:406</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a05f71d318564d880079fd6c96d59ae21"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a05f71d318564d880079fd6c96d59ae21">gridfire::reaction::TemplatedReactionSet::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">Removes all reactions from the set.</div><div class="ttdef"><b>Definition</b> <a href="#l00649">reaction.h:649</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a128660f5fbc67054f73811ed2982d24d"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a128660f5fbc67054f73811ed2982d24d">gridfire::reaction::TemplatedReactionSet::operator==</a></div><div class="ttdeci">bool operator==(const TemplatedReactionSet &amp;other) const</div><div class="ttdoc">Compares this set with another for equality.</div><div class="ttdef"><b>Definition</b> <a href="#l00703">reaction.h:703</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a13e003529a17fa61aafdce3abd2dc773"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a13e003529a17fa61aafdce3abd2dc773">gridfire::reaction::TemplatedReactionSet::operator[]</a></div><div class="ttdeci">const ReactionT &amp; operator[](const std::string_view &amp;id) const</div><div class="ttdoc">Accesses a reaction by its ID.</div><div class="ttdef"><b>Definition</b> <a href="#l00694">reaction.h:694</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a1596de3439735a45ac344fa85ace6c82"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a1596de3439735a45ac344fa85ace6c82">gridfire::reaction::TemplatedReactionSet::getReactionSetSpecies</a></div><div class="ttdeci">std::unordered_set&lt; fourdst::atomic::Species &gt; getReactionSetSpecies() const</div><div class="ttdef"><b>Definition</b> <a href="#l00734">reaction.h:734</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a272800016c83f259f5c6a92dc797353c"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a272800016c83f259f5c6a92dc797353c">gridfire::reaction::TemplatedReactionSet::hash</a></div><div class="ttdeci">uint64_t hash(uint64_t seed=0) const</div><div class="ttdoc">Computes a hash for the entire set.</div><div class="ttdef"><b>Definition</b> <a href="#l00716">reaction.h:716</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a339dbbf883b6ae20e33d9782d8376bcf"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a339dbbf883b6ae20e33d9782d8376bcf">gridfire::reaction::TemplatedReactionSet::add_reaction</a></div><div class="ttdeci">void add_reaction(ReactionT reaction)</div><div class="ttdoc">Adds a reaction to the set.</div><div class="ttdef"><b>Definition</b> <a href="#l00609">reaction.h:609</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a3a4c2448865580001fd3c797b9f56979"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a3a4c2448865580001fd3c797b9f56979">gridfire::reaction::TemplatedReactionSet&lt; Reaction &gt;::m_reactionNameMap</a></div><div class="ttdeci">std::unordered_map&lt; std::string, Reaction &gt; m_reactionNameMap</div><div class="ttdef"><b>Definition</b> <a href="#l00558">reaction.h:558</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a443ec5d7138764b32975232e13071ccf"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a443ec5d7138764b32975232e13071ccf">gridfire::reaction::TemplatedReactionSet::contains_product</a></div><div class="ttdeci">bool contains_product(const fourdst::atomic::Species &amp;species) const</div><div class="ttdoc">Checks if any reaction in the set contains the given species as a product.</div><div class="ttdef"><b>Definition</b> <a href="#l00675">reaction.h:675</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a47265467dbf2c324ce3e4c85ebbaa6a7"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a47265467dbf2c324ce3e4c85ebbaa6a7">gridfire::reaction::TemplatedReactionSet::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, const TemplatedReactionSet&lt; ReactionT &gt; &amp;r)</div><div class="ttdef"><b>Definition</b> <a href="#l00537">reaction.h:537</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a54c8cd7c34564277fe28eefc623f666e"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a54c8cd7c34564277fe28eefc623f666e">gridfire::reaction::TemplatedReactionSet::TemplatedReactionSet</a></div><div class="ttdeci">TemplatedReactionSet(std::vector&lt; ReactionT &gt; reactions)</div><div class="ttdoc">Constructs a ReactionSet from a vector of reactions.</div><div class="ttdef"><b>Definition</b> <a href="#l00568">reaction.h:568</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a5962968fe478c79250e9d88d80a87600"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5962968fe478c79250e9d88d80a87600">gridfire::reaction::TemplatedReactionSet&lt; Reaction &gt;::m_reactions</a></div><div class="ttdeci">std::vector&lt; Reaction &gt; m_reactions</div><div class="ttdef"><b>Definition</b> <a href="#l00556">reaction.h:556</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a5fda3af5ea9ae0ecfb60a61a9e07f5b4"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a5fda3af5ea9ae0ecfb60a61a9e07f5b4">gridfire::reaction::TemplatedReactionSet&lt; Reaction &gt;::m_id</a></div><div class="ttdeci">std::string m_id</div><div class="ttdef"><b>Definition</b> <a href="#l00557">reaction.h:557</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a638067a3e55ec2a422206055881aaaad"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a638067a3e55ec2a422206055881aaaad">gridfire::reaction::TemplatedReactionSet::operator[]</a></div><div class="ttdeci">const ReactionT &amp; operator[](size_t index) const</div><div class="ttdoc">Accesses a reaction by its index.</div><div class="ttdef"><b>Definition</b> <a href="#l00685">reaction.h:685</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a6a1dc3c56690386ae9f6aa5c2aa37ba2"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a6a1dc3c56690386ae9f6aa5c2aa37ba2">gridfire::reaction::TemplatedReactionSet::size</a></div><div class="ttdeci">size_t size() const</div><div class="ttdoc">Gets the number of reactions in the set.</div><div class="ttdef"><b>Definition</b> <a href="#l00459">reaction.h:459</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a7777ecd0f594fdf66ce57d22610fad3c"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a7777ecd0f594fdf66ce57d22610fad3c">gridfire::reaction::TemplatedReactionSet::contains</a></div><div class="ttdeci">bool contains(const std::string_view &amp;id) const</div><div class="ttdoc">Checks if the set contains a reaction with the given ID.</div><div class="ttdef"><b>Definition</b> <a href="#l00629">reaction.h:629</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a87257704009fcd57b553f86cdaacb597"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a87257704009fcd57b553f86cdaacb597">gridfire::reaction::TemplatedReactionSet::begin</a></div><div class="ttdeci">auto begin()</div><div class="ttdef"><b>Definition</b> <a href="#l00531">reaction.h:531</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a89c4c5af12aef7fbfc24316c88237e22"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a89c4c5af12aef7fbfc24316c88237e22">gridfire::reaction::TemplatedReactionSet::remove_reaction</a></div><div class="ttdeci">void remove_reaction(const ReactionT &amp;reaction)</div><div class="ttdoc">Removes a reaction from the set.</div><div class="ttdef"><b>Definition</b> <a href="#l00616">reaction.h:616</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_a9def4c9a3a7a03625b7c467fe7440428"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#a9def4c9a3a7a03625b7c467fe7440428">gridfire::reaction::TemplatedReactionSet::TemplatedReactionSet</a></div><div class="ttdeci">TemplatedReactionSet()</div><div class="ttdef"><b>Definition</b> <a href="#l00583">reaction.h:583</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_aac76ec883b4ecebb2a94b2485dae7105"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#aac76ec883b4ecebb2a94b2485dae7105">gridfire::reaction::TemplatedReactionSet::operator!=</a></div><div class="ttdeci">bool operator!=(const TemplatedReactionSet &amp;other) const</div><div class="ttdoc">Compares this set with another for inequality.</div><div class="ttdef"><b>Definition</b> <a href="#l00711">reaction.h:711</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_ab8cb5fbce6b819b9e4e44b0c2db54c6f"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ab8cb5fbce6b819b9e4e44b0c2db54c6f">gridfire::reaction::TemplatedReactionSet::contains</a></div><div class="ttdeci">bool contains(const Reaction &amp;reaction) const</div><div class="ttdoc">Checks if the set contains the given reaction.</div><div class="ttdef"><b>Definition</b> <a href="#l00639">reaction.h:639</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_ac128da7417955ef8c5cb2bde5a1293c9"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac128da7417955ef8c5cb2bde5a1293c9">gridfire::reaction::TemplatedReactionSet::end</a></div><div class="ttdeci">auto end() const</div><div class="ttdef"><b>Definition</b> <a href="#l00534">reaction.h:534</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_ac42606350d7557106f7954b1f114c128"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac42606350d7557106f7954b1f114c128">gridfire::reaction::TemplatedReactionSet::contains_reactant</a></div><div class="ttdeci">bool contains_reactant(const fourdst::atomic::Species &amp;species) const</div><div class="ttdoc">Checks if any reaction in the set contains the given species as a reactant.</div><div class="ttdef"><b>Definition</b> <a href="#l00665">reaction.h:665</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_ac510dce14a6033551318c0c7b241f3c8"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac510dce14a6033551318c0c7b241f3c8">gridfire::reaction::TemplatedReactionSet::operator=</a></div><div class="ttdeci">TemplatedReactionSet&lt; ReactionT &gt; &amp; operator=(const TemplatedReactionSet&lt; ReactionT &gt; &amp;other)</div><div class="ttdoc">Copy assignment operator.</div><div class="ttdef"><b>Definition</b> <a href="#l00599">reaction.h:599</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_ac6fcc5b08938b73ff6dac680e5bf28d9"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ac6fcc5b08938b73ff6dac680e5bf28d9">gridfire::reaction::TemplatedReactionSet&lt; Reaction &gt;::m_logger</a></div><div class="ttdeci">quill::Logger * m_logger</div><div class="ttdef"><b>Definition</b> <a href="#l00555">reaction.h:555</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_ad19adbee44a71559a53785e3b1fc7e92"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ad19adbee44a71559a53785e3b1fc7e92">gridfire::reaction::TemplatedReactionSet::end</a></div><div class="ttdeci">auto end()</div><div class="ttdef"><b>Definition</b> <a href="#l00533">reaction.h:533</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_ad870856d206d93f27125c88d44ff9e34"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ad870856d206d93f27125c88d44ff9e34">gridfire::reaction::TemplatedReactionSet::contains_species</a></div><div class="ttdeci">bool contains_species(const fourdst::atomic::Species &amp;species) const</div><div class="ttdoc">Checks if any reaction in the set involves the given species.</div><div class="ttdef"><b>Definition</b> <a href="#l00655">reaction.h:655</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_ada1d1880be53b81a9ed7b966fd6ade5a"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#ada1d1880be53b81a9ed7b966fd6ade5a">gridfire::reaction::TemplatedReactionSet::TemplatedReactionSet</a></div><div class="ttdeci">TemplatedReactionSet(const TemplatedReactionSet&lt; ReactionT &gt; &amp;other)</div><div class="ttdoc">Copy constructor.</div><div class="ttdef"><b>Definition</b> <a href="#l00586">reaction.h:586</a></div></div>
<div class="ttc" id="aclassgridfire_1_1reaction_1_1_templated_reaction_set_html_aee42bb25973dadc6629bdb5cb1db6369"><div class="ttname"><a href="classgridfire_1_1reaction_1_1_templated_reaction_set.html#aee42bb25973dadc6629bdb5cb1db6369">gridfire::reaction::TemplatedReactionSet::begin</a></div><div class="ttdeci">auto begin() const</div><div class="ttdef"><b>Definition</b> <a href="#l00532">reaction.h:532</a></div></div>
<div class="ttc" id="anamespacegridfire_1_1reaction_html"><div class="ttname"><a href="namespacegridfire_1_1reaction.html">gridfire::reaction</a></div><div class="ttdef"><b>Definition</b> <a href="#l00025">reaction.h:25</a></div></div>
2025-07-24 11:10:45 -04:00
<div class="ttc" id="anamespacegridfire_1_1reaction_html_aa86f08712565f278adacc7cd2361eb31"><div class="ttname"><a href="namespacegridfire_1_1reaction.html#aa86f08712565f278adacc7cd2361eb31">gridfire::reaction::LogicalReactionSet</a></div><div class="ttdeci">TemplatedReactionSet&lt; LogicalReaction &gt; LogicalReactionSet</div><div class="ttdoc">A set of logical reactions.</div><div class="ttdef"><b>Definition</b> <a href="#l00563">reaction.h:563</a></div></div>
<div class="ttc" id="anamespacegridfire_1_1reaction_html_abfcfafc0cda0c3ed56930a12e7ead67f"><div class="ttname"><a href="namespacegridfire_1_1reaction.html#abfcfafc0cda0c3ed56930a12e7ead67f">gridfire::reaction::packReactionSetToLogicalReactionSet</a></div><div class="ttdeci">LogicalReactionSet packReactionSetToLogicalReactionSet(const ReactionSet &amp;reactionSet)</div><div class="ttdef"><b>Definition</b> <a href="reaction_8cpp_source.html#l00273">reaction.cpp:273</a></div></div>
<div class="ttc" id="anamespacegridfire_1_1reaction_html_ad838ce3fb6cc02c3fd90b924a0dd91b1"><div class="ttname"><a href="namespacegridfire_1_1reaction.html#ad838ce3fb6cc02c3fd90b924a0dd91b1">gridfire::reaction::ReactionSet</a></div><div class="ttdeci">TemplatedReactionSet&lt; Reaction &gt; ReactionSet</div><div class="ttdoc">A set of reactions, typically from a single source like REACLIB.</div><div class="ttdef"><b>Definition</b> <a href="#l00562">reaction.h:562</a></div></div>
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace.</div></div>
<div class="ttc" id="astructgridfire_1_1reaction_1_1_rate_coefficient_set_html"><div class="ttname"><a href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html">gridfire::reaction::RateCoefficientSet</a></div><div class="ttdoc">Holds the seven coefficients for the REACLIB rate equation.</div><div class="ttdef"><b>Definition</b> <a href="#l00033">reaction.h:33</a></div></div>
<div class="ttc" id="astructgridfire_1_1reaction_1_1_rate_coefficient_set_html_a2a9316d19bc2e8bf0a7872eb6fe8a53f"><div class="ttname"><a href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a2a9316d19bc2e8bf0a7872eb6fe8a53f">gridfire::reaction::RateCoefficientSet::a2</a></div><div class="ttdeci">double a2</div><div class="ttdoc">Coefficient a2.</div><div class="ttdef"><b>Definition</b> <a href="#l00036">reaction.h:36</a></div></div>
<div class="ttc" id="astructgridfire_1_1reaction_1_1_rate_coefficient_set_html_a2fa6b65e300dcd181222b743c2b3d6ed"><div class="ttname"><a href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a2fa6b65e300dcd181222b743c2b3d6ed">gridfire::reaction::RateCoefficientSet::a0</a></div><div class="ttdeci">double a0</div><div class="ttdoc">Coefficient a0.</div><div class="ttdef"><b>Definition</b> <a href="#l00034">reaction.h:34</a></div></div>
<div class="ttc" id="astructgridfire_1_1reaction_1_1_rate_coefficient_set_html_a31a92f95a27e4430209dfc2bdfa5c40f"><div class="ttname"><a href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a31a92f95a27e4430209dfc2bdfa5c40f">gridfire::reaction::RateCoefficientSet::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, const RateCoefficientSet &amp;r)</div><div class="ttdoc">Overloads the stream insertion operator for easy printing.</div><div class="ttdef"><b>Definition</b> <a href="#l00048">reaction.h:48</a></div></div>
<div class="ttc" id="astructgridfire_1_1reaction_1_1_rate_coefficient_set_html_a3d047485ebb57d6c763adfe4aae493b1"><div class="ttname"><a href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a3d047485ebb57d6c763adfe4aae493b1">gridfire::reaction::RateCoefficientSet::a3</a></div><div class="ttdeci">double a3</div><div class="ttdoc">Coefficient a3.</div><div class="ttdef"><b>Definition</b> <a href="#l00037">reaction.h:37</a></div></div>
<div class="ttc" id="astructgridfire_1_1reaction_1_1_rate_coefficient_set_html_a8c79db4e649b4eb1d29c43ebe4e95458"><div class="ttname"><a href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#a8c79db4e649b4eb1d29c43ebe4e95458">gridfire::reaction::RateCoefficientSet::a5</a></div><div class="ttdeci">double a5</div><div class="ttdoc">Coefficient a5.</div><div class="ttdef"><b>Definition</b> <a href="#l00039">reaction.h:39</a></div></div>
<div class="ttc" id="astructgridfire_1_1reaction_1_1_rate_coefficient_set_html_ace9dbd928e179784e47eaa108ce8d721"><div class="ttname"><a href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#ace9dbd928e179784e47eaa108ce8d721">gridfire::reaction::RateCoefficientSet::a1</a></div><div class="ttdeci">double a1</div><div class="ttdoc">Coefficient a1.</div><div class="ttdef"><b>Definition</b> <a href="#l00035">reaction.h:35</a></div></div>
<div class="ttc" id="astructgridfire_1_1reaction_1_1_rate_coefficient_set_html_adf8e6ed7f91cb9e15d1469a808b1877a"><div class="ttname"><a href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#adf8e6ed7f91cb9e15d1469a808b1877a">gridfire::reaction::RateCoefficientSet::a6</a></div><div class="ttdeci">double a6</div><div class="ttdoc">Coefficient a6.</div><div class="ttdef"><b>Definition</b> <a href="#l00040">reaction.h:40</a></div></div>
<div class="ttc" id="astructgridfire_1_1reaction_1_1_rate_coefficient_set_html_ae57b2eac71cb4ed9947f40c9cb8fc3ca"><div class="ttname"><a href="structgridfire_1_1reaction_1_1_rate_coefficient_set.html#ae57b2eac71cb4ed9947f40c9cb8fc3ca">gridfire::reaction::RateCoefficientSet::a4</a></div><div class="ttdeci">double a4</div><div class="ttdoc">Coefficient a4.</div><div class="ttdef"><b>Definition</b> <a href="#l00038">reaction.h:38</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
2025-07-24 11:10:45 -04:00
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_b0856f6b0d80ccb263b2f415c91f9e17.html">include</a></li><li class="navelem"><a class="el" href="dir_3626e0c0e3c5d7812d6b277dfa4ec364.html">gridfire</a></li><li class="navelem"><a class="el" href="dir_f2d7b0c77cb2532170ac94ead6e4ba70.html">reaction</a></li><li class="navelem"><a class="el" href="reaction_8h.html">reaction.h</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2 </li>
</ul>
</div>
</body>
</html>