Skip to content

Commit

Permalink
Deploying to gh-pages from @ 3024a44 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Jan 4, 2025
1 parent 30b73ba commit 6efec38
Show file tree
Hide file tree
Showing 21 changed files with 138 additions and 142 deletions.
8 changes: 4 additions & 4 deletions Billiards.html
Original file line number Diff line number Diff line change
Expand Up @@ -15300,7 +15300,7 @@ <h1 id="Billiards-in-%CE%A6Flow">Billiards in &#934;<sub>Flow</sub><a class="anc


<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr">
<pre>/tmp/ipykernel_1934/1958517515.py:4: DeprecationWarning: phiml.math.length is deprecated in favor of phiml.math.norm
<pre>/tmp/ipykernel_1935/1958517515.py:4: DeprecationWarning: phiml.math.length is deprecated in favor of phiml.math.norm
dist_norm = math.vec_length(dist, eps=1e-4) # eps to avoid NaN during backprop of sqrt
</pre>
</div>
Expand Down Expand Up @@ -15580,7 +15580,7 @@ <h1 id="Billiards-in-%CE%A6Flow">Billiards in &#934;<sub>Flow</sub><a class="anc


<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr">
<pre>/tmp/ipykernel_1934/1958517515.py:4: DeprecationWarning: phiml.math.length is deprecated in favor of phiml.math.norm
<pre>/tmp/ipykernel_1935/1958517515.py:4: DeprecationWarning: phiml.math.length is deprecated in favor of phiml.math.norm
dist_norm = math.vec_length(dist, eps=1e-4) # eps to avoid NaN during backprop of sqrt
</pre>
</div>
Expand Down Expand Up @@ -16556,7 +16556,7 @@ <h1 id="Billiards-in-%CE%A6Flow">Billiards in &#934;<sub>Flow</sub><a class="anc


<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr">
<pre>/tmp/ipykernel_1934/1958517515.py:4: DeprecationWarning: phiml.math.length is deprecated in favor of phiml.math.norm
<pre>/tmp/ipykernel_1935/1958517515.py:4: DeprecationWarning: phiml.math.length is deprecated in favor of phiml.math.norm
dist_norm = math.vec_length(dist, eps=1e-4) # eps to avoid NaN during backprop of sqrt
</pre>
</div>
Expand Down Expand Up @@ -16651,7 +16651,7 @@ <h1 id="Billiards-in-%CE%A6Flow">Billiards in &#934;<sub>Flow</sub><a class="anc
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr">
<pre>/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/phiml/math/_functional.py:628: RuntimeWarning: Using torch for gradient computation because numpy does not support jacobian()
warnings.warn(f&#34;Using {math.default_backend()} for gradient computation because {key.backend} does not support jacobian()&#34;, RuntimeWarning)
/tmp/ipykernel_1934/1958517515.py:4: DeprecationWarning: phiml.math.length is deprecated in favor of phiml.math.norm
/tmp/ipykernel_1935/1958517515.py:4: DeprecationWarning: phiml.math.length is deprecated in favor of phiml.math.norm
dist_norm = math.vec_length(dist, eps=1e-4) # eps to avoid NaN during backprop of sqrt
</pre>
</div>
Expand Down
106 changes: 53 additions & 53 deletions Cookbook.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions Fluid_Simulation.html

Large diffs are not rendered by default.

39 changes: 14 additions & 25 deletions Heightmaps.html

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions IO_with_Scenes.html

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions Math_Introduction.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions Unstructured.html
Original file line number Diff line number Diff line change
Expand Up @@ -15210,17 +15210,17 @@ <h2 id="Loading-an-Unstructured-Mesh">Loading an Unstructured Mesh<a class="anch
<span class="ansi-green-intense-fg ansi-bold"> 1357</span> results<span style="color: rgb(98,98,98)">.</span>append(f_output)
<span class="ansi-green-intense-fg ansi-bold"> 1358</span> <span class="ansi-bold" style="color: rgb(0,135,0)">if</span> <span style="color: rgb(0,135,0)">isinstance</span>(results[<span style="color: rgb(98,98,98)">0</span>], <span style="color: rgb(0,135,0)">tuple</span>):

File <span class="ansi-green-fg">/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/phi/geom/_mesh.py:489</span>, in <span class="ansi-cyan-fg">load_su2</span><span class="ansi-blue-fg">(file_or_mesh, cell_dim, face_format)</span>
<span class="ansi-green-intense-fg ansi-bold"> 475</span> <span style="color: rgb(175,0,0)">&#34;&#34;&#34;</span>
<span class="ansi-green-intense-fg ansi-bold"> 476</span> <span style="color: rgb(175,0,0)">Load an unstructured mesh from a `.su2` file.</span>
<span class="ansi-green-intense-fg ansi-bold"> 477</span>
File <span class="ansi-green-fg">/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/phi/geom/_mesh.py:494</span>, in <span class="ansi-cyan-fg">load_su2</span><span class="ansi-blue-fg">(file_or_mesh, cell_dim, face_format)</span>
<span class="ansi-green-intense-fg ansi-bold"> 480</span> <span style="color: rgb(175,0,0)">&#34;&#34;&#34;</span>
<span class="ansi-green-intense-fg ansi-bold"> 481</span> <span style="color: rgb(175,0,0)">Load an unstructured mesh from a `.su2` file.</span>
<span class="ansi-green-intense-fg ansi-bold"> 482</span>
<span class="ansi-green-fg"> (...)</span>
<span class="ansi-green-intense-fg ansi-bold"> 486</span> <span style="color: rgb(175,0,0)"> `Mesh`</span>
<span class="ansi-green-intense-fg ansi-bold"> 487</span> <span style="color: rgb(175,0,0)">&#34;&#34;&#34;</span>
<span class="ansi-green-intense-fg ansi-bold"> 488</span> <span class="ansi-bold" style="color: rgb(0,135,0)">if</span> <span style="color: rgb(0,135,0)">isinstance</span>(file_or_mesh, <span style="color: rgb(0,135,0)">str</span>):
<span class="ansi-green-fg">--&gt; 489</span> <span class="ansi-bold" style="color: rgb(0,135,0)">from</span> <span class="ansi-bold" style="color: rgb(0,0,255)">ezmesh</span> <span class="ansi-bold" style="color: rgb(0,135,0)">import</span> import_from_file
<span class="ansi-green-intense-fg ansi-bold"> 490</span> mesh <span style="color: rgb(98,98,98)">=</span> import_from_file(file_or_mesh)
<span class="ansi-green-intense-fg ansi-bold"> 491</span> <span class="ansi-bold" style="color: rgb(0,135,0)">else</span>:
<span class="ansi-green-intense-fg ansi-bold"> 491</span> <span style="color: rgb(175,0,0)"> `Mesh`</span>
<span class="ansi-green-intense-fg ansi-bold"> 492</span> <span style="color: rgb(175,0,0)">&#34;&#34;&#34;</span>
<span class="ansi-green-intense-fg ansi-bold"> 493</span> <span class="ansi-bold" style="color: rgb(0,135,0)">if</span> <span style="color: rgb(0,135,0)">isinstance</span>(file_or_mesh, <span style="color: rgb(0,135,0)">str</span>):
<span class="ansi-green-fg">--&gt; 494</span> <span class="ansi-bold" style="color: rgb(0,135,0)">from</span> <span class="ansi-bold" style="color: rgb(0,0,255)">ezmesh</span> <span class="ansi-bold" style="color: rgb(0,135,0)">import</span> import_from_file
<span class="ansi-green-intense-fg ansi-bold"> 495</span> mesh <span style="color: rgb(98,98,98)">=</span> import_from_file(file_or_mesh)
<span class="ansi-green-intense-fg ansi-bold"> 496</span> <span class="ansi-bold" style="color: rgb(0,135,0)">else</span>:

<span class="ansi-red-fg">ModuleNotFoundError</span>: No module named &#39;ezmesh&#39;</pre>
</div>
Expand Down
Binary file modified data/sim_000000/batched_noise_data_000000.npz
Binary file not shown.
8 changes: 4 additions & 4 deletions data/sim_000000/description.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
null
],
"data": [
0.06428778916597366,
0.6195746660232544,
0.07410836964845657,
0.9235832691192627
0.4464888870716095,
0.8391245603561401,
0.6090283393859863,
0.1093357652425766
]
},
"__tensors__": [
Expand Down
Binary file modified data/sim_000000/noise_data_000000.npz
Binary file not shown.
Binary file modified data/sim_000001/batched_noise_data_000000.npz
Binary file not shown.
2 changes: 1 addition & 1 deletion data/sim_000001/description.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"smoothness": 0.06428778916597366
"smoothness": 0.4464888870716095
}
Binary file modified data/sim_000002/batched_noise_data_000000.npz
Binary file not shown.
2 changes: 1 addition & 1 deletion data/sim_000002/description.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"smoothness": 0.6195746660232544
"smoothness": 0.8391245603561401
}
Binary file modified data/sim_000003/batched_noise_data_000000.npz
Binary file not shown.
2 changes: 1 addition & 1 deletion data/sim_000003/description.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"smoothness": 0.07410836964845657
"smoothness": 0.6090283393859863
}
Binary file modified data/sim_000004/batched_noise_data_000000.npz
Binary file not shown.
2 changes: 1 addition & 1 deletion data/sim_000004/description.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"smoothness": 0.9235832691192627
"smoothness": 0.1093357652425766
}
2 changes: 1 addition & 1 deletion phi/field/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ <h2 id="args">Args</h2>
</dl></div>
</dd>
<dt id="phi.field.divergence"><code class="name flex">
<span>def <span class="ident">divergence</span></span>(<span>field: phi.field._field.Field,<br>order=2,<br>implicit: phiml.math._optimize.Solve = None,<br>upwind: phi.field._field.Field = None,<br>implicitness: int = None) ‑> <function <a title="phi.field.CenteredGrid" href="#phi.field.CenteredGrid">CenteredGrid()</a> at 0x7f54fc1f82c0></span>
<span>def <span class="ident">divergence</span></span>(<span>field: phi.field._field.Field,<br>order=2,<br>implicit: phiml.math._optimize.Solve = None,<br>upwind: phi.field._field.Field = None,<br>implicitness: int = None) ‑> <function <a title="phi.field.CenteredGrid" href="#phi.field.CenteredGrid">CenteredGrid()</a> at 0x7fb9c1408360></span>
</code></dt>
<dd>
<details class="source">
Expand Down
7 changes: 7 additions & 0 deletions phi/geom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7774,6 +7774,9 @@ <h2 id="args">Args</h2>
&#39;boundary_slices&#39;: boundary_slices,
}

def _build_faces(self):
return build_faces(self.vertices.center, self.elements, self.boundaries, self.element_rank, self.periodic, self._vertex_mean, self.face_format)

@property
def face_shape(self) -&gt; Shape:
return instance(self.elements) &amp; dual
Expand Down Expand Up @@ -7816,6 +7819,8 @@ <h2 id="args">Args</h2>
return {self.face_shape.dual.name: slice(0, instance(self).volume)}

def pad_boundary(self, value: Tensor, widths: Dict[str, Dict[str, slice]] = None, mode: Extrapolation or Tensor or Number = 0, **kwargs) -&gt; Tensor:
if not widths:
return value
mode = as_extrapolation(mode)
if self.face_shape.dual.name not in value.shape:
value = rename_dims(value, instance, self.face_shape.dual)
Expand Down Expand Up @@ -8980,6 +8985,8 @@ <h2 id="returns">Returns</h2>
<span>Expand source code</span>
</summary>
<pre><code class="python">def pad_boundary(self, value: Tensor, widths: Dict[str, Dict[str, slice]] = None, mode: Extrapolation or Tensor or Number = 0, **kwargs) -&gt; Tensor:
if not widths:
return value
mode = as_extrapolation(mode)
if self.face_shape.dual.name not in value.shape:
value = rename_dims(value, instance, self.face_shape.dual)
Expand Down
4 changes: 2 additions & 2 deletions phi/physics/fluid.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h2 id="returns">Returns</h2>
<p>Velocity of same type as <code>velocity</code></p></div>
</dd>
<dt id="phi.physics.fluid.boundary_push"><code class="name flex">
<span>def <span class="ident">boundary_push</span></span>(<span>particles: <function PointCloud at 0x7f54fc1f9440>,<br>obstacles: tuple,<br>separation: float = 0.5) ‑> <function PointCloud at 0x7f54fc1f9440></span>
<span>def <span class="ident">boundary_push</span></span>(<span>particles: <function PointCloud at 0x7fb9c14094e0>,<br>obstacles: tuple,<br>separation: float = 0.5) ‑> <function PointCloud at 0x7fb9c14094e0></span>
</code></dt>
<dd>
<details class="source">
Expand Down Expand Up @@ -222,7 +222,7 @@ <h2 id="returns">Returns</h2>
</dl></div>
</dd>
<dt id="phi.physics.fluid.make_incompressible"><code class="name flex">
<span>def <span class="ident">make_incompressible</span></span>(<span>velocity: phi.field._field.Field,<br>obstacles: <a title="phi.physics.fluid.Obstacle" href="#phi.physics.fluid.Obstacle">Obstacle</a> = (),<br>solve: phiml.math._optimize.Solve = auto with tolerance None (rel), None (abs), max_iterations=1000,<br>active: <function CenteredGrid at 0x7f54fc1f82c0> = None,<br>order: int = 2,<br>correct_skew=False,<br>wide_stencil: bool = None) ‑> Tuple[phi.field._field.Field, phi.field._field.Field]</span>
<span>def <span class="ident">make_incompressible</span></span>(<span>velocity: phi.field._field.Field,<br>obstacles: <a title="phi.physics.fluid.Obstacle" href="#phi.physics.fluid.Obstacle">Obstacle</a> = (),<br>solve: phiml.math._optimize.Solve = auto with tolerance None (rel), None (abs), max_iterations=1000,<br>active: <function CenteredGrid at 0x7fb9c1408360> = None,<br>order: int = 2,<br>correct_skew=False,<br>wide_stencil: bool = None) ‑> Tuple[phi.field._field.Field, phi.field._field.Field]</span>
</code></dt>
<dd>
<details class="source">
Expand Down

0 comments on commit 6efec38

Please sign in to comment.