Skip to content

Commit

Permalink
Deploying to gh-pages from @ e181b87 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Jan 4, 2025
1 parent 6efec38 commit 45eafe7
Show file tree
Hide file tree
Showing 19 changed files with 128 additions and 122 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_1935/1958517515.py:4: DeprecationWarning: phiml.math.length is deprecated in favor of phiml.math.norm
<pre>/tmp/ipykernel_1883/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_1935/1958517515.py:4: DeprecationWarning: phiml.math.length is deprecated in favor of phiml.math.norm
<pre>/tmp/ipykernel_1883/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_1935/1958517515.py:4: DeprecationWarning: phiml.math.length is deprecated in favor of phiml.math.norm
<pre>/tmp/ipykernel_1883/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_1935/1958517515.py:4: DeprecationWarning: phiml.math.length is deprecated in favor of phiml.math.norm
/tmp/ipykernel_1883/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
111 changes: 57 additions & 54 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.

26 changes: 13 additions & 13 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.

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.4464888870716095,
0.8391245603561401,
0.6090283393859863,
0.1093357652425766
0.7729326486587524,
0.2218468189239502,
0.2407831847667694,
0.018296517431735992
]
},
"__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.4464888870716095
"smoothness": 0.7729326486587524
}
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.8391245603561401
"smoothness": 0.2218468189239502
}
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.6090283393859863
"smoothness": 0.2407831847667694
}
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.1093357652425766
"smoothness": 0.018296517431735992
}
7 changes: 5 additions & 2 deletions 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 0x7fb9c1408360></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 0x7f79f81b82c0></span>
</code></dt>
<dd>
<details class="source">
Expand Down Expand Up @@ -2006,7 +2006,10 @@ <h2 id="returns">Returns</h2>
Returns:
`phi.Tensor`
&#34;&#34;&#34;
result = math.mean(field.values, dim=dim)
if field.is_grid:
result = math.mean(field.values, dim=dim)
else:
result = math.mean(field.values, dim=dim, weight=field.geometry.volume)
if (instance(field.geometry) &amp; spatial(field.geometry)) in result.shape:
return field.with_values(result)
return result</code></pre>
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 0x7fb9c14094e0>,<br>obstacles: tuple,<br>separation: float = 0.5) ‑> <function PointCloud at 0x7fb9c14094e0></span>
<span>def <span class="ident">boundary_push</span></span>(<span>particles: <function PointCloud at 0x7f79f81b9440>,<br>obstacles: tuple,<br>separation: float = 0.5) ‑> <function PointCloud at 0x7f79f81b9440></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 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>
<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 0x7f79f81b82c0> = 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 45eafe7

Please sign in to comment.