Skip to content

Commit

Permalink
deploy: 3083d94
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierr committed Dec 10, 2024
1 parent 2d31201 commit f70c3da
Show file tree
Hide file tree
Showing 46 changed files with 297 additions and 12 deletions.
13 changes: 12 additions & 1 deletion _sources/computationalGraph/graphdoc.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,18 @@ equations. The equations are added to the system of non-linear equation we solve
evolution problem.

In the computational graph, the nodes are given by the variables in the model. The directed edges represent the
functional dependency between the variables
functional dependency between the variables.

The :battmo:`ComputationalGraphTool` class has two functions

1. Serve as an **interactive** tool to design, manipulate and explore the computational graph of a model. The interactive functions can be discovered by running the method :code:`help` (see below).
2. From the computational graph, **automatically** identify

1. The unknown of the problems, also called *primary variables*. They corresponds to the root in the graph (see below)
2. The *equations*, which are the variables located at the tail of the graph. The equations are solved when the value of the equation variables are equal to zero
3. The function calls and the order they should be called to update all the intermediate variables that directly or indirectly enter in the definition of the equation.



A simple introduction example
=============================
Expand Down
2 changes: 1 addition & 1 deletion _sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
juliabridge
Electrolyser simulation <publishedExamples/runElectrolyser>
gui
Computational Graph <graph/graphdoc>
Computational Graph <computationalGraph/graphdoc>
seealso
References <bibliography>

Expand Down
6 changes: 6 additions & 0 deletions advancedtopics.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="computationalGraph/graphdoc.html">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down
6 changes: 6 additions & 0 deletions architecture.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="computationalGraph/graphdoc.html">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down
6 changes: 6 additions & 0 deletions basicusage.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="computationalGraph/graphdoc.html">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down
6 changes: 6 additions & 0 deletions bibliography.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="computationalGraph/graphdoc.html">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down
6 changes: 6 additions & 0 deletions compositeElectrode.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,12 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="computationalGraph/graphdoc.html">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down
30 changes: 26 additions & 4 deletions computationalGraph/graphdoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
<script async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="See Also" href="../seealso.html" />
<link rel="prev" title="Troubleshooting" href="../gui_troubleshooting.html" />
</head>

<body class="wy-body-for-nav">
Expand All @@ -50,7 +52,7 @@
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../basicusage.html">Basic Usage</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../basicusage.html#a-first-battmo-model">A First <strong>BattMo</strong> Model</a><ul>
Expand Down Expand Up @@ -178,6 +180,12 @@
</li>
</ul>
</li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down Expand Up @@ -223,7 +231,18 @@ <h1>Computation Graph Model Design ang Assembly<a class="headerlink" href="#comp
equations. The equations are added to the system of non-linear equation we solve, at each time step in the case of an
evolution problem.</p>
<p>In the computational graph, the nodes are given by the variables in the model. The directed edges represent the
functional dependency between the variables</p>
functional dependency between the variables.</p>
<p>The <a class="reference external" href="https://github.com/BattMoTeam/BattMo/blob/dev/Utilities/ComputationalGraph/ComputationalGraphTool.m">ComputationalGraphTool</a> class has two functions</p>
<ol class="arabic simple">
<li><p>Serve as an <strong>interactive</strong> tool to design, manipulate and explore the computational graph of a model. The interactive functions can be discovered by running the method <code class="code docutils literal notranslate"><span class="pre">help</span></code> (see below).</p></li>
<li><p>From the computational graph, <strong>automatically</strong> identify</p>
<ol class="arabic simple">
<li><p>The unknown of the problems, also called <em>primary variables</em>. They corresponds to the root in the graph (see below)</p></li>
<li><p>The <em>equations</em>, which are the variables located at the tail of the graph. The equations are solved when the value of the equation variables are equal to zero</p></li>
<li><p>The function calls and the order they should be called to update all the intermediate variables that directly or indirectly enter in the definition of the equation.</p></li>
</ol>
</li>
</ol>
<section id="a-simple-introduction-example">
<h2>A simple introduction example<a class="headerlink" href="#a-simple-introduction-example" title="Permalink to this heading"></a></h2>
<p>Let us consider the example of a reaction model. The reaction rate <span class="math notranslate nohighlight">\(R\)</span> is given
Expand Down Expand Up @@ -946,7 +965,10 @@ <h2>Graph Setup and Implementation<a class="headerlink" href="#graph-setup-and-i

</div>
</div>
<footer>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="../gui_troubleshooting.html" class="btn btn-neutral float-left" title="Troubleshooting" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="../seealso.html" class="btn btn-neutral float-right" title="See Also" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

<hr/>

Expand Down
6 changes: 6 additions & 0 deletions controlinput.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="computationalGraph/graphdoc.html">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down
6 changes: 6 additions & 0 deletions genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="computationalGraph/graphdoc.html">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down
6 changes: 6 additions & 0 deletions geometryinput.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="computationalGraph/graphdoc.html">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down
6 changes: 6 additions & 0 deletions gui.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="computationalGraph/graphdoc.html">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down
6 changes: 6 additions & 0 deletions gui_calculations.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="computationalGraph/graphdoc.html">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down
6 changes: 6 additions & 0 deletions gui_features.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="computationalGraph/graphdoc.html">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down
10 changes: 8 additions & 2 deletions gui_troubleshooting.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<script src="_static/js/theme.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="See Also" href="seealso.html" />
<link rel="next" title="Computation Graph Model Design ang Assembly" href="computationalGraph/graphdoc.html" />
<link rel="prev" title="Calculations" href="gui_calculations.html" />
</head>

Expand Down Expand Up @@ -179,6 +179,12 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="computationalGraph/graphdoc.html">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down Expand Up @@ -233,7 +239,7 @@ <h2>Unnatural artifacts in your results<a class="headerlink" href="#unnatural-ar
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="gui_calculations.html" class="btn btn-neutral float-left" title="Calculations" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="seealso.html" class="btn btn-neutral float-right" title="See Also" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
<a href="computationalGraph/graphdoc.html" class="btn btn-neutral float-right" title="Computation Graph Model Design ang Assembly" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

<hr/>
Expand Down
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="computationalGraph/graphdoc.html">Computational Graph</a><ul>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#a-simple-introduction-example">A simple introduction example</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-composition">Graph composition</a></li>
<li class="toctree-l2"><a class="reference internal" href="computationalGraph/graphdoc.html#graph-setup-and-implementation">Graph Setup and Implementation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="seealso.html">See Also</a><ul>
<li class="toctree-l2"><a class="reference internal" href="seealso.html#mrst">MRST</a><ul>
<li class="toctree-l3"><a class="reference internal" href="seealso.html#visualization">Visualization Tutorial</a></li>
Expand Down
Loading

0 comments on commit f70c3da

Please sign in to comment.