Skip to content

Commit

Permalink
Deploying to gh-pages from @ a8c0d88 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Oct 7, 2024
1 parent 6f24a45 commit 1c0aef1
Show file tree
Hide file tree
Showing 24 changed files with 2,083 additions and 8,087 deletions.
2,166 changes: 305 additions & 1,861 deletions Billiards.html

Large diffs are not rendered by default.

1,105 changes: 274 additions & 831 deletions Cookbook.html

Large diffs are not rendered by default.

86 changes: 56 additions & 30 deletions FLIP.html

Large diffs are not rendered by default.

3,768 changes: 209 additions & 3,559 deletions Fluid_Simulation.html

Large diffs are not rendered by default.

1,087 changes: 145 additions & 942 deletions Fluids_Tutorial.html

Large diffs are not rendered by default.

571 changes: 369 additions & 202 deletions Heightmaps.html

Large diffs are not rendered by default.

325 changes: 225 additions & 100 deletions IO_with_Scenes.html

Large diffs are not rendered by default.

384 changes: 264 additions & 120 deletions Math_Introduction.html

Large diffs are not rendered by default.

225 changes: 146 additions & 79 deletions SDF.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.2909450829029083,
0.6031990647315979,
0.5909240245819092,
0.2855338454246521
0.4290919005870819,
0.653761625289917,
0.7298448085784912,
0.5049718618392944
]
},
"__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.2909450829029083
"smoothness": 0.4290919005870819
}
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.6031990647315979
"smoothness": 0.653761625289917
}
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.5909240245819092
"smoothness": 0.7298448085784912
}
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.2855338454246521
"smoothness": 0.5049718618392944
}
65 changes: 64 additions & 1 deletion phi/field/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,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, order=2, implicit: phiml.math._optimize.Solve = None, upwind: phi.field._field.Field = None, implicitness: int = None) ‑> <function <a title="phi.field.CenteredGrid" href="#phi.field.CenteredGrid">CenteredGrid()</a> at 0x7fe5ed35ec00></span>
<span>def <span class="ident">divergence</span></span>(<span>field: phi.field._field.Field, order=2, implicit: phiml.math._optimize.Solve = None, upwind: phi.field._field.Field = None, implicitness: int = None) ‑> <function <a title="phi.field.CenteredGrid" href="#phi.field.CenteredGrid">CenteredGrid()</a> at 0x7f4052552d40></span>
</code></dt>
<dd>
<div class="desc"><p>Computes the divergence of a grid using finite differences.</p>
Expand Down Expand Up @@ -1543,6 +1543,12 @@ <h2 id="args">Args</h2>
&#34;&#34;&#34;
return self._geometry

@property
def grid(self) -&gt; UniformGrid:
&#34;&#34;&#34;Cast `self.geometry` to a `phi.geom.UniformGrid`.&#34;&#34;&#34;
assert isinstance(self._geometry, UniformGrid), f&#34;Geometry is not a UniformGrid but {type(self._geometry)}&#34;
return self._geometry

@property
def mesh(self) -&gt; Mesh:
&#34;&#34;&#34;Cast `self.geometry` to a `phi.geom.Mesh`.&#34;&#34;&#34;
Expand Down Expand Up @@ -2577,6 +2583,20 @@ <h2 id="returns">Returns</h2>
return self._geometry</code></pre>
</details>
</dd>
<dt id="phi.field.Field.grid"><code class="name">prop <span class="ident">grid</span> : phi.geom._grid.UniformGrid</code></dt>
<dd>
<div class="desc"><p>Cast <code>self.geometry</code> to a <code><a title="phi.geom.UniformGrid" href="../geom/index.html#phi.geom.UniformGrid">UniformGrid</a></code>.</p></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">@property
def grid(self) -&gt; UniformGrid:
&#34;&#34;&#34;Cast `self.geometry` to a `phi.geom.UniformGrid`.&#34;&#34;&#34;
assert isinstance(self._geometry, UniformGrid), f&#34;Geometry is not a UniformGrid but {type(self._geometry)}&#34;
return self._geometry</code></pre>
</details>
</dd>
<dt id="phi.field.Field.is_centered"><code class="name">prop <span class="ident">is_centered</span></code></dt>
<dd>
<div class="desc"></div>
Expand Down Expand Up @@ -3147,6 +3167,12 @@ <h2 id="args">Args</h2>
&#34;&#34;&#34;
return self._geometry

@property
def grid(self) -&gt; UniformGrid:
&#34;&#34;&#34;Cast `self.geometry` to a `phi.geom.UniformGrid`.&#34;&#34;&#34;
assert isinstance(self._geometry, UniformGrid), f&#34;Geometry is not a UniformGrid but {type(self._geometry)}&#34;
return self._geometry

@property
def mesh(self) -&gt; Mesh:
&#34;&#34;&#34;Cast `self.geometry` to a `phi.geom.Mesh`.&#34;&#34;&#34;
Expand Down Expand Up @@ -4181,6 +4207,20 @@ <h2 id="returns">Returns</h2>
return self._geometry</code></pre>
</details>
</dd>
<dt id="phi.field.Field.grid"><code class="name">prop <span class="ident">grid</span> : phi.geom._grid.UniformGrid</code></dt>
<dd>
<div class="desc"><p>Cast <code>self.geometry</code> to a <code><a title="phi.geom.UniformGrid" href="../geom/index.html#phi.geom.UniformGrid">UniformGrid</a></code>.</p></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">@property
def grid(self) -&gt; UniformGrid:
&#34;&#34;&#34;Cast `self.geometry` to a `phi.geom.UniformGrid`.&#34;&#34;&#34;
assert isinstance(self._geometry, UniformGrid), f&#34;Geometry is not a UniformGrid but {type(self._geometry)}&#34;
return self._geometry</code></pre>
</details>
</dd>
<dt id="phi.field.Field.is_centered"><code class="name">prop <span class="ident">is_centered</span></code></dt>
<dd>
<div class="desc"></div>
Expand Down Expand Up @@ -4750,6 +4790,12 @@ <h2 id="args">Args</h2>
&#34;&#34;&#34;
return self._geometry

@property
def grid(self) -&gt; UniformGrid:
&#34;&#34;&#34;Cast `self.geometry` to a `phi.geom.UniformGrid`.&#34;&#34;&#34;
assert isinstance(self._geometry, UniformGrid), f&#34;Geometry is not a UniformGrid but {type(self._geometry)}&#34;
return self._geometry

@property
def mesh(self) -&gt; Mesh:
&#34;&#34;&#34;Cast `self.geometry` to a `phi.geom.Mesh`.&#34;&#34;&#34;
Expand Down Expand Up @@ -5784,6 +5830,20 @@ <h2 id="returns">Returns</h2>
return self._geometry</code></pre>
</details>
</dd>
<dt id="phi.field.Field.grid"><code class="name">prop <span class="ident">grid</span> : phi.geom._grid.UniformGrid</code></dt>
<dd>
<div class="desc"><p>Cast <code>self.geometry</code> to a <code><a title="phi.geom.UniformGrid" href="../geom/index.html#phi.geom.UniformGrid">UniformGrid</a></code>.</p></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">@property
def grid(self) -&gt; UniformGrid:
&#34;&#34;&#34;Cast `self.geometry` to a `phi.geom.UniformGrid`.&#34;&#34;&#34;
assert isinstance(self._geometry, UniformGrid), f&#34;Geometry is not a UniformGrid but {type(self._geometry)}&#34;
return self._geometry</code></pre>
</details>
</dd>
<dt id="phi.field.Field.is_centered"><code class="name">prop <span class="ident">is_centered</span></code></dt>
<dd>
<div class="desc"></div>
Expand Down Expand Up @@ -7489,6 +7549,7 @@ <h4><code><a title="phi.field.Field" href="#phi.field.Field">Field</a></code></h
<li><code><a title="phi.field.Field.geometry" href="#phi.field.Field.geometry">geometry</a></code></li>
<li><code><a title="phi.field.Field.gradient" href="#phi.field.Field.gradient">gradient</a></code></li>
<li><code><a title="phi.field.Field.graph" href="#phi.field.Field.graph">graph</a></code></li>
<li><code><a title="phi.field.Field.grid" href="#phi.field.Field.grid">grid</a></code></li>
<li><code><a title="phi.field.Field.grid_scatter" href="#phi.field.Field.grid_scatter">grid_scatter</a></code></li>
<li><code><a title="phi.field.Field.is_centered" href="#phi.field.Field.is_centered">is_centered</a></code></li>
<li><code><a title="phi.field.Field.is_graph" href="#phi.field.Field.is_graph">is_graph</a></code></li>
Expand Down Expand Up @@ -7551,6 +7612,7 @@ <h4><code><a title="phi.field.Field" href="#phi.field.Field">Field</a></code></h
<li><code><a title="phi.field.Field.geometry" href="#phi.field.Field.geometry">geometry</a></code></li>
<li><code><a title="phi.field.Field.gradient" href="#phi.field.Field.gradient">gradient</a></code></li>
<li><code><a title="phi.field.Field.graph" href="#phi.field.Field.graph">graph</a></code></li>
<li><code><a title="phi.field.Field.grid" href="#phi.field.Field.grid">grid</a></code></li>
<li><code><a title="phi.field.Field.grid_scatter" href="#phi.field.Field.grid_scatter">grid_scatter</a></code></li>
<li><code><a title="phi.field.Field.is_centered" href="#phi.field.Field.is_centered">is_centered</a></code></li>
<li><code><a title="phi.field.Field.is_graph" href="#phi.field.Field.is_graph">is_graph</a></code></li>
Expand Down Expand Up @@ -7613,6 +7675,7 @@ <h4><code><a title="phi.field.Field" href="#phi.field.Field">Field</a></code></h
<li><code><a title="phi.field.Field.geometry" href="#phi.field.Field.geometry">geometry</a></code></li>
<li><code><a title="phi.field.Field.gradient" href="#phi.field.Field.gradient">gradient</a></code></li>
<li><code><a title="phi.field.Field.graph" href="#phi.field.Field.graph">graph</a></code></li>
<li><code><a title="phi.field.Field.grid" href="#phi.field.Field.grid">grid</a></code></li>
<li><code><a title="phi.field.Field.grid_scatter" href="#phi.field.Field.grid_scatter">grid_scatter</a></code></li>
<li><code><a title="phi.field.Field.is_centered" href="#phi.field.Field.is_centered">is_centered</a></code></li>
<li><code><a title="phi.field.Field.is_graph" href="#phi.field.Field.is_graph">is_graph</a></code></li>
Expand Down
7 changes: 7 additions & 0 deletions phi/geom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ <h2 id="args">Args</h2>
<dd>
<div class="desc"><p>Tests that two objects have the same spatial rank. Objects can be of types: <code>int</code>, <code>None</code> (no check), <code><a title="phi.geom.Geometry" href="#phi.geom.Geometry">Geometry</a></code>, <code>Shape</code>, <code>Tensor</code></p></div>
</dd>
<dt id="phi.geom.bounding_box"><code class="name flex">
<span>def <span class="ident">bounding_box</span></span>(<span>geometry: Union[phiml.math._tensors.Tensor, phi.geom._geom.Geometry])</span>
</code></dt>
<dd>
<div class="desc"></div>
</dd>
<dt id="phi.geom.build_mesh"><code class="name flex">
<span>def <span class="ident">build_mesh</span></span>(<span>bounds: phi.geom._box.Box = None, resolution=(), obstacles: Union[phi.geom._geom.Geometry, Dict[str, phi.geom._geom.Geometry]] = None, method='quad', cell_dim: phiml.math._shape.Shape = (cellsⁱ=None), face_format: str = 'csc', max_squish: Optional[float] = 0.5, **resolution_: Union[int, phiml.math._tensors.Tensor, tuple, list, Any]) ‑> phi.geom._mesh.Mesh</span>
</code></dt>
Expand Down Expand Up @@ -8256,6 +8262,7 @@ <h2 id="returns">Returns</h2>
<ul class="two-column">
<li><code><a title="phi.geom.as_sdf" href="#phi.geom.as_sdf">as_sdf</a></code></li>
<li><code><a title="phi.geom.assert_same_rank" href="#phi.geom.assert_same_rank">assert_same_rank</a></code></li>
<li><code><a title="phi.geom.bounding_box" href="#phi.geom.bounding_box">bounding_box</a></code></li>
<li><code><a title="phi.geom.build_mesh" href="#phi.geom.build_mesh">build_mesh</a></code></li>
<li><code><a title="phi.geom.concat" href="#phi.geom.concat">concat</a></code></li>
<li><code><a title="phi.geom.embed" href="#phi.geom.embed">embed</a></code></li>
Expand Down
4 changes: 2 additions & 2 deletions phi/physics/fluid.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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 0x7fe5ed35fba0>, obstacles: tuple, separation: float = 0.5) ‑> <function PointCloud at 0x7fe5ed35fba0></span>
<span>def <span class="ident">boundary_push</span></span>(<span>particles: <function PointCloud at 0x7f4052553ce0>, obstacles: tuple, separation: float = 0.5) ‑> <function PointCloud at 0x7f4052553ce0></span>
</code></dt>
<dd>
<div class="desc"><p>Enforces boundary conditions by correcting possible errors of the advection step and shifting particles out of
Expand Down Expand Up @@ -104,7 +104,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, obstacles: <a title="phi.physics.fluid.Obstacle" href="#phi.physics.fluid.Obstacle">Obstacle</a> = (), solve: phiml.math._optimize.Solve = auto with tolerance None (rel), None (abs), max_iterations=1000, active: <function CenteredGrid at 0x7fe5ed35ec00> = None, order: int = 2, correct_skew=False, 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, obstacles: <a title="phi.physics.fluid.Obstacle" href="#phi.physics.fluid.Obstacle">Obstacle</a> = (), solve: phiml.math._optimize.Solve = auto with tolerance None (rel), None (abs), max_iterations=1000, active: <function CenteredGrid at 0x7f4052552d40> = None, order: int = 2, correct_skew=False, wide_stencil: bool = None) ‑> Tuple[phi.field._field.Field, phi.field._field.Field]</span>
</code></dt>
<dd>
<div class="desc"><p>Projects the given velocity field by solving for the pressure and subtracting its spatial_gradient.</p>
Expand Down
Loading

0 comments on commit 1c0aef1

Please sign in to comment.