Skip to content

Commit 5044de7

Browse files
committed
💄
1 parent c444bb2 commit 5044de7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/fem-shapeopt/demo.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"\n",
2828
"The design space is defined using a geometry library called PyVista, which does not support automatic differentiation. However, we can enable differentiability of this operation by using a finite difference approximation of the Jacobian matrix.\n",
2929
"\n",
30-
"We denote the design space as a function $g$ that maps the design variables to a signed distance field. Then, we can then define the density field $\\rho(\\mathbf{x})$ as a function of the SDF value $g(\\mathbf{x})$. Finally we denote the differentiable finite element method (FEM) solver as $f$, which takes the density field as input and returns the structure's compliance. Therefore, the optimization problem can be formulated as follows:\n",
30+
"We denote the design space as a function $g$ that maps the design variables to a signed distance field. Then, we can then define the density field $\\rho(\\mathbf{x})$ as a function of a signed distance field (SDF) value $g(\\mathbf{x})$. Finally we denote the differentiable finite element method (FEM) solver as $f$, which takes the density field as input and returns the structure's compliance. Therefore, the optimization problem can be formulated as follows:\n",
3131
"\n",
3232
"\\begin{equation}\n",
3333
"\\min_{\\theta} f(\\rho(g(\\theta))).\n",
@@ -213,7 +213,7 @@
213213
},
214214
{
215215
"cell_type": "code",
216-
"execution_count": 6,
216+
"execution_count": null,
217217
"id": "c5c123c8",
218218
"metadata": {},
219219
"outputs": [
@@ -239,6 +239,7 @@
239239
" params,\n",
240240
" radius=bar_radius,\n",
241241
" )\n",
242+
" # Concatenate all pipe geometries into a single PolyData object\n",
242243
" geometry = sum(geometries, start=pv.PolyData())\n",
243244
" sdf = compute_sdf(params, radius=bar_radius, Lx=Lx, Ly=Ly, Nx=Nx, Ny=Ny)\n",
244245
" isoval = sdf.contour(isosurfaces=[0.0], scalars=\"implicit_distance\")\n",

examples/fem-shapeopt/fem_tess/tesseract_environment.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: jax-fem-env
22
channels:
33
- conda-forge
4-
- defaults
54
dependencies:
65
- python==3.12
76
- numpy==2.3.0

0 commit comments

Comments
 (0)