Skip to content

Commit

Permalink
deploy: 71e9bb9
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Oct 18, 2024
1 parent b3e6b39 commit dbdc912
Show file tree
Hide file tree
Showing 28 changed files with 76 additions and 78 deletions.
2 changes: 1 addition & 1 deletion dev/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 37e1094b872701f012f1ec1521e9ad24
config: bbca65ea61b4626601705519f8ef392b
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified dev/.doctrees/environment.pickle
Binary file not shown.
Binary file modified dev/.doctrees/index.doctree
Binary file not shown.
4 changes: 2 additions & 2 deletions dev/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &#8212; Paramak 0.1.dev1+g2fe55cb documentation</title>
<title>Overview: module code &#8212; Paramak 0.1.dev1+g71e9bb9 documentation</title>



Expand Down Expand Up @@ -37,7 +37,7 @@
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
<script src="../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>

<script src="../_static/documentation_options.js?v=f1016d45"></script>
<script src="../_static/documentation_options.js?v=9045835f"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/sphinxcadquerystatic/three.js"></script>
Expand Down
17 changes: 9 additions & 8 deletions dev/_modules/paramak/assemblies/spherical_tokamak.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>paramak.assemblies.spherical_tokamak &#8212; Paramak 0.1.dev1+g2fe55cb documentation</title>
<title>paramak.assemblies.spherical_tokamak &#8212; Paramak 0.1.dev1+g71e9bb9 documentation</title>



Expand Down Expand Up @@ -37,7 +37,7 @@
<link rel="preload" as="script" href="../../../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
<script src="../../../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>

<script src="../../../_static/documentation_options.js?v=f1016d45"></script>
<script src="../../../_static/documentation_options.js?v=9045835f"></script>
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/sphinxcadquerystatic/three.js"></script>
Expand Down Expand Up @@ -414,7 +414,7 @@ <h1>Source code for paramak.assemblies.spherical_tokamak</h1><div class="highlig
<span class="n">sum_up_to_gap_before_plasma</span><span class="p">,</span>
<span class="n">sum_up_to_plasma</span><span class="p">,</span>
<span class="n">sum_before_after_plasma</span><span class="p">,</span>
<span class="n">LayerType</span>
<span class="n">LayerType</span><span class="p">,</span>
<span class="p">)</span>
<span class="kn">from</span> <span class="nn">..workplanes.blanket_from_plasma</span> <span class="kn">import</span> <span class="n">blanket_from_plasma</span>
<span class="kn">from</span> <span class="nn">..workplanes.center_column_shield_cylinder</span> <span class="kn">import</span> <span class="n">center_column_shield_cylinder</span>
Expand Down Expand Up @@ -555,7 +555,7 @@ <h1>Source code for paramak.assemblies.spherical_tokamak</h1><div class="highlig
<span class="n">triangularity</span><span class="o">=</span><span class="n">triangularity</span><span class="p">,</span>
<span class="n">rotation_angle</span><span class="o">=</span><span class="n">rotation_angle</span><span class="p">,</span>
<span class="n">extra_cut_shapes</span><span class="o">=</span><span class="n">extra_cut_shapes</span><span class="p">,</span>
<span class="n">extra_intersect_shapes</span><span class="o">=</span><span class="n">extra_intersect_shapes</span>
<span class="n">extra_intersect_shapes</span><span class="o">=</span><span class="n">extra_intersect_shapes</span><span class="p">,</span>
<span class="p">)</span></div>


Expand Down Expand Up @@ -631,7 +631,6 @@ <h1>Source code for paramak.assemblies.spherical_tokamak</h1><div class="highlig
<span class="n">center_column</span><span class="o">=</span><span class="n">blanket_cutting_cylinder</span><span class="p">,</span>
<span class="p">)</span>


<span class="n">my_assembly</span> <span class="o">=</span> <span class="n">cq</span><span class="o">.</span><span class="n">Assembly</span><span class="p">()</span>

<span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">entry</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">extra_cut_shapes</span><span class="p">):</span>
Expand All @@ -643,13 +642,13 @@ <h1>Source code for paramak.assemblies.spherical_tokamak</h1><div class="highlig

<span class="c1"># builds up the intersect shapes</span>
<span class="n">intersect_shapes_to_cut</span> <span class="o">=</span> <span class="p">[]</span>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">extra_intersect_shapes</span><span class="p">)</span><span class="o">&gt;</span><span class="mi">0</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">extra_intersect_shapes</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
<span class="n">all_shapes</span> <span class="o">=</span> <span class="p">[]</span>
<span class="k">for</span> <span class="n">shape</span> <span class="ow">in</span> <span class="n">inner_radial_build</span> <span class="o">+</span> <span class="n">blanket_layers</span><span class="p">:</span>
<span class="n">all_shapes</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">shape</span><span class="p">)</span>

<span class="c1"># makes a union of the the radial build to use as a base for the intersect shapes</span>
<span class="n">reactor_compound</span><span class="o">=</span><span class="n">inner_radial_build</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
<span class="n">reactor_compound</span> <span class="o">=</span> <span class="n">inner_radial_build</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
<span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">entry</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">inner_radial_build</span><span class="p">[</span><span class="mi">1</span><span class="p">:]</span> <span class="o">+</span> <span class="n">blanket_layers</span><span class="p">):</span>
<span class="n">reactor_compound</span> <span class="o">=</span> <span class="n">reactor_compound</span><span class="o">.</span><span class="n">union</span><span class="p">(</span><span class="n">entry</span><span class="p">)</span>

Expand All @@ -676,7 +675,9 @@ <h1>Source code for paramak.assemblies.spherical_tokamak</h1><div class="highlig
<span class="n">shapes_and_components</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">entry</span><span class="p">)</span>

<span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">entry</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">shapes_and_components</span><span class="p">):</span>
<span class="n">my_assembly</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">entry</span><span class="p">,</span> <span class="n">name</span><span class="o">=</span><span class="sa">f</span><span class="s2">&quot;layer_</span><span class="si">{</span><span class="n">i</span><span class="o">+</span><span class="mi">1</span><span class="si">}</span><span class="s2">)&quot;</span><span class="p">)</span> <span class="c1">#TODO track the names of shapes, even when extra shapes are made due to splitting</span>
<span class="n">my_assembly</span><span class="o">.</span><span class="n">add</span><span class="p">(</span>
<span class="n">entry</span><span class="p">,</span> <span class="n">name</span><span class="o">=</span><span class="sa">f</span><span class="s2">&quot;layer_</span><span class="si">{</span><span class="n">i</span><span class="o">+</span><span class="mi">1</span><span class="si">}</span><span class="s2">)&quot;</span>
<span class="p">)</span> <span class="c1"># TODO track the names of shapes, even when extra shapes are made due to splitting</span>

<span class="n">my_assembly</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">plasma</span><span class="p">,</span> <span class="n">name</span><span class="o">=</span><span class="s2">&quot;plasma&quot;</span><span class="p">)</span>

Expand Down
Loading

0 comments on commit dbdc912

Please sign in to comment.