Skip to content

Commit

Permalink
Update ex01_specimen_amplitudes.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
adtzlr committed Apr 2, 2024
1 parent 74198d8 commit 03b704d
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions docs/notebooks/ex01_specimen_amplitudes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,16 @@
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"import felupe as fem\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import termtables as tt\n",
"from pypardiso import spsolve\n",
"import pyvista as pv\n",
"\n",
"if \"google.colab\" in sys.modules:\n",
" pv.start_xvfb()\n",
"\n",
"import fiberreinforcedrubber as frr\n",
"\n",
Expand Down Expand Up @@ -186,11 +191,8 @@
"view = fem.ViewMesh(mesh)\n",
"plotter = view.plot(\n",
" notebook=True,\n",
" theme=\"document\",\n",
" add_axes=False,\n",
" edge_color=\"black\",\n",
" color=\"lightgrey\",\n",
" line_width=4,\n",
")\n",
"plotter.show(jupyter_backend=\"static\")"
]
Expand All @@ -213,10 +215,9 @@
"view = fem.ViewMesh(fem.mesh.concatenate([fibers_1, fibers_2]))\n",
"plotter = view.plot(\n",
" notebook=True,\n",
" theme=\"document\",\n",
" add_axes=False,\n",
" color=\"black\",\n",
" line_width=4,\n",
" line_width=2,\n",
")\n",
"plotter.show(jupyter_backend=\"static\")"
]
Expand Down Expand Up @@ -420,9 +421,9 @@
" view = fem.ViewSolid(field)\n",
" plotter = view.plot(\n",
" notebook=True,\n",
" theme=\"document\",\n",
" show_edges=False,\n",
" add_axes=False,\n",
" color=\"lightgrey\",\n",
" )\n",
" plotter.add_axes(label_size=(0.06, 0.06))\n",
"\n",
Expand All @@ -441,6 +442,7 @@
" plotter=plotter,\n",
" line_width=3,\n",
" add_axes=False,\n",
" color=\"lightgrey\",\n",
" )\n",
" fiberplotter = fiberview1.plot(\n",
" \"Normal Force (Range) per Undeformed Area (Fibre) in MPa\",\n",
Expand All @@ -452,9 +454,18 @@
" above_color=\"lightgrey\",\n",
" line_width=3,\n",
" add_axes=False,\n",
" color=\"lightgrey\",\n",
" )\n",
" fiberplotter.show(jupyter_backend=\"static\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f7289d31-536e-46c1-afa5-d1aee857ba1e",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -473,7 +484,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.8"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 03b704d

Please sign in to comment.