Skip to content

Commit

Permalink
New build of documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
stammler committed Jun 30, 2024
1 parent 2957b40 commit a2ffe6e
Show file tree
Hide file tree
Showing 171 changed files with 4,345 additions and 4,092 deletions.
70 changes: 35 additions & 35 deletions docs/1_basics.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>1. Basic usage &mdash; dustpy documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=92fd9be5" />
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=eafc0fe6" />
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=fd3f3429" />
<link rel="stylesheet" type="text/css" href="_static/nbsphinx-code-cells.css" />


Expand All @@ -18,7 +18,7 @@
<script src="_static/jquery.js?v=5d32c60e"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="_static/documentation_options.js?v=5929fcd5"></script>
<script src="_static/doctools.js?v=888ff710"></script>
<script src="_static/doctools.js?v=9a2dae69"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script>window.MathJax = {"tex": {"inlineMath": [["$", "$"], ["\\(", "\\)"]], "processEscapes": true}, "options": {"ignoreHtmlClass": "tex2jax_ignore|mathjax_ignore|document", "processHtmlClass": "tex2jax_process|mathjax_process|math|output_area"}}</script>
Expand Down Expand Up @@ -382,7 +382,7 @@ <h2>Running a Simulation<a class="headerlink" href="#Running-a-Simulation" title
<div class="output_area docutils container">
<div class="highlight"><pre>

DustPy v1.0.5
DustPy v1.0.6

Documentation: https://stammler.github.io/dustpy/
PyPI: https://pypi.org/project/dustpy/
Expand All @@ -408,7 +408,7 @@ <h2>Running a Simulation<a class="headerlink" href="#Running-a-Simulation" title
m[110] = 5.18e+03 g with
m[118] = 7.20e+04 g

Creating data directory &#39;data&#39;.
Creating data directory data.
Writing file <span class="ansi-blue-intense-fg">data/data0000.hdf5</span>
Writing dump file <span class="ansi-blue-intense-fg">data/frame.dmp</span>
Writing file <span class="ansi-blue-intense-fg">data/data0001.hdf5</span>
Expand Down Expand Up @@ -453,7 +453,7 @@ <h2>Running a Simulation<a class="headerlink" href="#Running-a-Simulation" title
Writing dump file <span class="ansi-blue-intense-fg">data/frame.dmp</span>
Writing file <span class="ansi-blue-intense-fg">data/data0021.hdf5</span>
Writing dump file <span class="ansi-blue-intense-fg">data/frame.dmp</span>
Execution time: <span class="ansi-blue-intense-fg">0:25:21</span>
Execution time: <span class="ansi-blue-intense-fg">0:25:57</span>
</pre></div></div>
</div>
<p>By default <code class="docutils literal notranslate"><span class="pre">DustPy</span></code> has written output files into the <code class="docutils literal notranslate"><span class="pre">data/</span></code> directory.</p>
Expand Down Expand Up @@ -545,30 +545,30 @@ <h3>Code Units<a class="headerlink" href="#Code-Units" title="Link to this headi
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
[1.10558450e+01 1.02993178e+01 9.59195549e+00 8.93896250e+00
8.32864174e+00 7.75848590e+00 7.22598369e+00 6.72858592e+00
6.26421498e+00 5.83081686e+00 5.42620155e+00 5.04864366e+00
4.69645621e+00 4.36777353e+00 4.06118666e+00 3.77532356e+00
3.50860884e+00 3.25989679e+00 3.02807142e+00 2.81181881e+00
2.61021238e+00 2.42234104e+00 2.24712484e+00 2.08381550e+00
1.93166208e+00 1.78979299e+00 1.65760302e+00 1.53446451e+00
1.41968942e+00 1.31278633e+00 1.21322188e+00 1.12046727e+00
1.03412179e+00 9.53725668e-01 8.78889287e-01 8.09295487e-01
7.44492670e-01 6.84225840e-01 6.28197359e-01 5.76099776e-01
5.27718147e-01 4.82764881e-01 4.41043793e-01 4.02342272e-01
3.66453458e-01 3.33227994e-01 3.02446805e-01 2.73990240e-01
2.47688216e-01 2.23422420e-01 2.01049388e-01 1.80460725e-01
1.61534454e-01 1.44173668e-01 1.28272126e-01 1.13746515e-01
1.00500117e-01 8.84600676e-02 7.75352688e-02 6.76579619e-02
5.87666240e-02 5.07930091e-02 4.36881105e-02 3.74080407e-02
3.18793025e-02 2.70181020e-02 2.27460221e-02 1.90019344e-02
1.57365503e-02 1.29008272e-02 1.04285647e-02 8.21052034e-03
6.08307277e-03 3.92338320e-03 1.93621450e-03 6.99128440e-04
1.85480259e-04 3.65581248e-05 5.35346523e-06 5.68845727e-07
4.38908175e-08 2.70624483e-09 1.34691188e-10 5.43173421e-12
1.76930567e-13 4.59995512e-15 9.32088975e-17 1.41486135e-18
1.51708088e-20 1.06317740e-22 4.45397680e-25 1.14219956e-27
1.04642867e-28 9.00834622e-29 7.84588136e-29 6.83347698e-29
[1.10557336e+01 1.02992403e+01 9.59191143e+00 8.93895173e+00
8.32865715e+00 7.75850789e+00 7.22599249e+00 6.72858135e+00
6.26420956e+00 5.83081478e+00 5.42620080e+00 5.04864335e+00
4.69645672e+00 4.36777515e+00 4.06118902e+00 3.77532591e+00
3.50861087e+00 3.25989842e+00 3.02807253e+00 2.81181963e+00
2.61021307e+00 2.42234147e+00 2.24712516e+00 2.08381579e+00
1.93166212e+00 1.78979290e+00 1.65760286e+00 1.53446406e+00
1.41968875e+00 1.31278546e+00 1.21322061e+00 1.12046562e+00
1.03411972e+00 9.53723000e-01 8.78885950e-01 8.09291321e-01
7.44487702e-01 6.84220071e-01 6.28190605e-01 5.76091230e-01
5.27711760e-01 4.82757140e-01 4.41035921e-01 4.02334717e-01
3.66446537e-01 3.33222129e-01 3.02442339e-01 2.73987432e-01
2.47687148e-01 2.23422946e-01 2.01051129e-01 1.80463176e-01
1.61537112e-01 1.44176170e-01 1.28274293e-01 1.13748337e-01
1.00501698e-01 8.84615589e-02 7.75367958e-02 6.76595237e-02
5.87679684e-02 5.07937245e-02 4.36879524e-02 3.74072233e-02
3.18783737e-02 2.70175128e-02 2.27460076e-02 1.90031682e-02
1.57421892e-02 1.29229042e-02 1.05062053e-02 8.44924723e-03
6.69827665e-03 5.17305825e-03 3.75786050e-03 2.35751219e-03
1.08630361e-03 3.51144052e-04 7.97325012e-05 1.26505270e-05
1.33385792e-06 1.07474163e-07 6.75578366e-09 3.34961791e-10
1.31247630e-11 4.03047526e-13 9.49677567e-15 1.65313317e-16
2.00675100e-18 1.57276265e-20 7.28047481e-23 1.83036618e-25
3.38627923e-28 9.02283461e-29 7.84588510e-29 6.83347698e-29
5.95170965e-29 5.18372240e-29 4.51483347e-29 3.93225557e-29]
</pre></div></div>
</div>
Expand Down Expand Up @@ -625,11 +625,11 @@ <h3>Code Units<a class="headerlink" href="#Code-Units" title="Link to this headi
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
[[1.35750251e-01 1.11450049e-01 1.16073436e-01 ... 1.52526930e-23
[[1.35791789e-01 1.11472047e-01 1.16092272e-01 ... 1.52526930e-23
2.11935481e-23 2.94483396e-23]
[1.29655487e-01 1.06116482e-01 1.10245276e-01 ... 1.32845402e-23
[1.29819811e-01 1.06226080e-01 1.10385025e-01 ... 1.32845402e-23
1.84588088e-23 2.56484316e-23]
[1.24179647e-01 1.01289473e-01 1.04943384e-01 ... 1.15703508e-23
[1.24467541e-01 1.01487194e-01 1.05204713e-01 ... 1.15703508e-23
1.60769503e-23 2.23388501e-23]
...
[4.45718657e-46 6.19324066e-46 8.60547999e-46 ... 2.30858850e-29
Expand Down Expand Up @@ -674,7 +674,7 @@ <h2>Reading data files<a class="headerlink" href="#Reading-data-files" title="Li
------------------------------------
Data directory : data
File names : data/data0000.hdf5
Overwrite : False
Overwrite : <span class="ansi-yellow-intense-fg">False</span>
Dumping : True
Options : {&#39;com&#39;: &#39;lzf&#39;, &#39;comopts&#39;: None}
Verbosity : 1
Expand Down Expand Up @@ -848,7 +848,7 @@ <h2>Reading Dump Files<a class="headerlink" href="#Reading-Dump-Files" title="Li
</div>
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">dustpy</span> <span class="kn">import</span> <span class="n">constants</span> <span class="k">as</span> <span class="n">c</span>

<span class="n">sim_restart</span><span class="o">.</span><span class="n">t</span><span class="o">.</span><span class="n">snapshots</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">concatenate</span><span class="p">((</span><span class="n">sim_restart</span><span class="o">.</span><span class="n">t</span><span class="o">.</span><span class="n">snapshots</span><span class="p">,</span> <span class="p">[</span><span class="mf">100001.</span><span class="o">*</span><span class="n">c</span><span class="o">.</span><span class="n">year</span><span class="p">]))</span>
<span class="n">sim_restart</span><span class="o">.</span><span class="n">t</span><span class="o">.</span><span class="n">snapshots</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">hstack</span><span class="p">((</span><span class="n">sim_restart</span><span class="o">.</span><span class="n">t</span><span class="o">.</span><span class="n">snapshots</span><span class="p">,</span> <span class="p">[</span><span class="mf">100001.</span><span class="o">*</span><span class="n">c</span><span class="o">.</span><span class="n">year</span><span class="p">]))</span>
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -885,7 +885,7 @@ <h2>Reading Dump Files<a class="headerlink" href="#Reading-Dump-Files" title="Li
<div class="output_area docutils container">
<div class="highlight"><pre>

DustPy v1.0.5
DustPy v1.0.6

Documentation: https://stammler.github.io/dustpy/
PyPI: https://pypi.org/project/dustpy/
Expand Down
333 changes: 167 additions & 166 deletions docs/1_basics.ipynb

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions docs/2_simple_customization.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>2. Simple Customization &mdash; dustpy documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=92fd9be5" />
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=eafc0fe6" />
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=fd3f3429" />
<link rel="stylesheet" type="text/css" href="_static/nbsphinx-code-cells.css" />


Expand All @@ -18,7 +18,7 @@
<script src="_static/jquery.js?v=5d32c60e"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="_static/documentation_options.js?v=5929fcd5"></script>
<script src="_static/doctools.js?v=888ff710"></script>
<script src="_static/doctools.js?v=9a2dae69"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script>window.MathJax = {"tex": {"inlineMath": [["$", "$"], ["\\(", "\\)"]], "processEscapes": true}, "options": {"ignoreHtmlClass": "tex2jax_ignore|mathjax_ignore|document", "processHtmlClass": "tex2jax_process|mathjax_process|math|output_area"}}</script>
Expand Down Expand Up @@ -442,7 +442,7 @@ <h2>Changing the Initial Conditions<a class="headerlink" href="#Changing-the-Ini
</section>
<section id="Changing-the-Snapshots">
<h2>Changing the Snapshots<a class="headerlink" href="#Changing-the-Snapshots" title="Link to this heading"></a></h2>
<p>The standard model runs for 100,000 years and starts writing data files at 1,000 years with 10 files per time decade. In this example we only want to run the simulation for 10,000 years with only 5 snapshots per decade. This can easily be set by modifying <code class="docutils literal notranslate"><span class="pre">Simulation.t.snapshots</span></code>.</p>
<p>The standard model runs for 100,000 years and starts writing data files at 1,000 years with 10 files per time decade. In this example we only want to run the simulation for 10,000 years with only 5 snapshots per decade. This can easily be set by modifying <code class="docutils literal notranslate"><span class="pre">Simulation.t.snapshots</span></code>. The starting time has to be included to write outputs for the initial conditions.</p>
<div class="nbinput nblast docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[11]:
</pre></div>
Expand All @@ -455,7 +455,9 @@ <h2>Changing the Snapshots<a class="headerlink" href="#Changing-the-Snapshots" t
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[12]:
</pre></div>
</div>
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">sim</span><span class="o">.</span><span class="n">t</span><span class="o">.</span><span class="n">snapshots</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">logspace</span><span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="n">num</span><span class="o">=</span><span class="mi">6</span><span class="p">,</span> <span class="n">base</span><span class="o">=</span><span class="mi">10</span><span class="p">)</span> <span class="o">*</span> <span class="n">c</span><span class="o">.</span><span class="n">year</span>
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">sim</span><span class="o">.</span><span class="n">t</span><span class="o">.</span><span class="n">snapshots</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">hstack</span><span class="p">(</span>
<span class="p">[</span><span class="n">sim</span><span class="o">.</span><span class="n">t</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">geomspace</span><span class="p">(</span><span class="mf">1.e3</span><span class="p">,</span> <span class="mf">1.e4</span><span class="p">,</span> <span class="n">num</span><span class="o">=</span><span class="mi">6</span><span class="p">)</span> <span class="o">*</span> <span class="n">c</span><span class="o">.</span><span class="n">year</span><span class="p">]</span>
<span class="p">)</span>
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -487,7 +489,7 @@ <h2>Changing the Output Directory<a class="headerlink" href="#Changing-the-Outpu
<div class="output_area docutils container">
<div class="highlight"><pre>

DustPy v1.0.5
DustPy v1.0.6

Documentation: https://stammler.github.io/dustpy/
PyPI: https://pypi.org/project/dustpy/
Expand All @@ -513,7 +515,7 @@ <h2>Changing the Output Directory<a class="headerlink" href="#Changing-the-Outpu
m[110] = 5.18e+03 g with
m[118] = 7.20e+04 g

Creating data directory &#39;2_data&#39;.
Creating data directory 2_data.
Writing file <span class="ansi-blue-intense-fg">2_data/data0000.hdf5</span>
Writing dump file <span class="ansi-blue-intense-fg">2_data/frame.dmp</span>
Writing file <span class="ansi-blue-intense-fg">2_data/data0001.hdf5</span>
Expand All @@ -528,7 +530,7 @@ <h2>Changing the Output Directory<a class="headerlink" href="#Changing-the-Outpu
Writing dump file <span class="ansi-blue-intense-fg">2_data/frame.dmp</span>
Writing file <span class="ansi-blue-intense-fg">2_data/data0006.hdf5</span>
Writing dump file <span class="ansi-blue-intense-fg">2_data/frame.dmp</span>
Execution time: <span class="ansi-blue-intense-fg">0:04:52</span>
Execution time: <span class="ansi-blue-intense-fg">0:04:29</span>
</pre></div></div>
</div>
<p>The simulation has now run for 10,000 years</p>
Expand Down
Loading

0 comments on commit a2ffe6e

Please sign in to comment.