docs(docs): rebuilt for version v0.7.1_rc2
This commit is contained in:
@@ -3,18 +3,16 @@
|
||||
<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="generator" content="Doxygen 1.9.8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>GridFire: GridFire Python Usage Guide</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="resize.js"></script>
|
||||
<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>
|
||||
@@ -29,7 +27,7 @@
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">GridFire<span id="projectnumber"> v0.7.0_rc2</span>
|
||||
<div id="projectname">GridFire<span id="projectnumber"> v0.7.1_rc2</span>
|
||||
</div>
|
||||
<div id="projectbrief">General Purpose Nuclear Network</div>
|
||||
</td>
|
||||
@@ -38,24 +36,19 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.13.2 -->
|
||||
<!-- Generated by Doxygen 1.9.8 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&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&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search',true);
|
||||
$(function() { init_search(); });
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -73,7 +66,7 @@ $(function() {
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function(){initNavTree('md_docs_2static_2usage.html',''); initResizable(true); });
|
||||
$(document).ready(function(){initNavTree('md_docs_2static_2usage.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
@@ -102,15 +95,14 @@ $(function(){initNavTree('md_docs_2static_2usage.html',''); initResizable(true);
|
||||
<div class="headertitle"><div class="title">GridFire Python Usage Guide</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><p><a class="anchor" id="autotoc_md62"></a></p>
|
||||
<p>This tutorial walks you through installing GridFire’s Python bindings, choosing engines and views thoughtfully, running a simulation, and visualizing your results.</p>
|
||||
<div class="textblock"><p><a class="anchor" id="autotoc_md61"></a> This tutorial walks you through installing GridFire’s Python bindings, choosing engines and views thoughtfully, running a simulation, and visualizing your results.</p>
|
||||
<hr />
|
||||
<h1><a class="anchor" id="autotoc_md64"></a>
|
||||
<h1><a class="anchor" id="autotoc_md63"></a>
|
||||
1. Installation</h1>
|
||||
<h2><a class="anchor" id="autotoc_md65"></a>
|
||||
<h2><a class="anchor" id="autotoc_md64"></a>
|
||||
1.1 PyPI Release</h2>
|
||||
<p>The quickest way to get started is: </p><div class="fragment"><div class="line">pip install gridfire</div>
|
||||
</div><!-- fragment --><h2><a class="anchor" id="autotoc_md66"></a>
|
||||
</div><!-- fragment --><h2><a class="anchor" id="autotoc_md65"></a>
|
||||
1.2 Development from Source</h2>
|
||||
<p>If you want the cutting-edge features or need to hack the C++ backend: </p><div class="fragment"><div class="line">git clone https://github.com/4DSTAR/GridFire.git</div>
|
||||
<div class="line">cd GridFire</div>
|
||||
@@ -122,7 +114,7 @@ $(function(){initNavTree('md_docs_2static_2usage.html',''); initResizable(true);
|
||||
</div><!-- fragment --><p>You can also build manually with Meson (generally end users will not need to do this): </p><div class="fragment"><div class="line">meson setup build-python</div>
|
||||
<div class="line">meson compile -C build_gridfire</div>
|
||||
</div><!-- fragment --><hr />
|
||||
<h1><a class="anchor" id="autotoc_md68"></a>
|
||||
<h1><a class="anchor" id="autotoc_md67"></a>
|
||||
2. Why These Engines and Views?</h1>
|
||||
<p>GridFire’s design balances physical fidelity and performance. Here’s why we pick each component:</p>
|
||||
<ol type="1">
|
||||
@@ -162,7 +154,7 @@ $(function(){initNavTree('md_docs_2static_2usage.html',''); initResizable(true);
|
||||
</ol>
|
||||
<p>By composing these views in sequence, you can tailor accuracy vs performance for your scientific question. Commonly one might use a flow like <b>GraphEngine → Partitioning → Adaptive</b> to capture both full-network physics and manageable stiffness.</p>
|
||||
<hr />
|
||||
<h1><a class="anchor" id="autotoc_md70"></a>
|
||||
<h1><a class="anchor" id="autotoc_md69"></a>
|
||||
3. Step-by-Step Example</h1>
|
||||
<p>Adapted from <a href="../../tests/python/test.py"><code>tests/python/test.py</code></a>. Comments explain each choice.</p>
|
||||
<div class="fragment"><div class="line"><span class="keyword">import</span> matplotlib.pyplot <span class="keyword">as</span> plt</div>
|
||||
@@ -218,7 +210,7 @@ $(function(){initNavTree('md_docs_2static_2usage.html',''); initResizable(true);
|
||||
<li><b>Implicit solver</b>: Rosenbrock4 handles stiff systems robustly, letting you push to longer <code>tMax</code>.</li>
|
||||
</ul>
|
||||
<hr />
|
||||
<h1><a class="anchor" id="autotoc_md72"></a>
|
||||
<h1><a class="anchor" id="autotoc_md71"></a>
|
||||
4. Visualizing Reaction Networks</h1>
|
||||
<p>GridFire engines and views provide built-in export methods for Graphviz DOT and CSV formats:</p>
|
||||
<div class="fragment"><div class="line"><span class="comment"># Export the base network to DOT for Graphviz</span></div>
|
||||
@@ -245,10 +237,10 @@ $(function(){initNavTree('md_docs_2static_2usage.html',''); initResizable(true);
|
||||
<div class="line">df.to_csv(<span class="stringliteral">'H1_evolution.csv'</span>, index=<span class="keyword">False</span>)</div>
|
||||
</div><!-- fragment --><p> Then plot in pandas or Excel for custom figures.</p>
|
||||
<hr />
|
||||
<h1><a class="anchor" id="autotoc_md74"></a>
|
||||
<h1><a class="anchor" id="autotoc_md73"></a>
|
||||
5. Beyond the Basics</h1>
|
||||
<ul>
|
||||
<li><b>Custom Partition Functions</b>: In Python, subclass <code><a class="el" href="classgridfire_1_1partition_1_1_partition_function.html" title="Abstract interface for evaluating nuclear partition functions.">gridfire.partition.PartitionFunction</a></code>, override <code>evaluate</code>, <code>supports</code>, and <code>clone</code> to implement new weighting schemes. <br />
|
||||
<li><b>Custom Partition Functions</b>: In Python, subclass <code><a class="el" href="classgridfire_1_1partition_1_1PartitionFunction.html" title="Abstract interface for evaluating nuclear partition functions.">gridfire.partition.PartitionFunction</a></code>, override <code>evaluate</code>, <code>supports</code>, and <code>clone</code> to implement new weighting schemes. <br />
|
||||
</li>
|
||||
<li><b>Parameter Studies</b>: Loop over <code>buildDepth</code>, solver tolerances, or initial compositions to get a sense of the sensitity of the network to input conditions or build a monte carlo grid. <br />
|
||||
</li>
|
||||
@@ -267,7 +259,7 @@ $(function(){initNavTree('md_docs_2static_2usage.html',''); initResizable(true);
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<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>
|
||||
<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.9.8 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user