|
28 | 28 | "metadata": {},
|
29 | 29 | "outputs": [],
|
30 | 30 | "source": [
|
| 31 | + "import sys\n", |
31 | 32 | "import felupe as fem\n",
|
32 | 33 | "import matplotlib.pyplot as plt\n",
|
33 | 34 | "import numpy as np\n",
|
34 | 35 | "import termtables as tt\n",
|
35 | 36 | "from pypardiso import spsolve\n",
|
| 37 | + "import pyvista as pv\n", |
| 38 | + "\n", |
| 39 | + "if \"google.colab\" in sys.modules:\n", |
| 40 | + " pv.start_xvfb()\n", |
36 | 41 | "\n",
|
37 | 42 | "import fiberreinforcedrubber as frr\n",
|
38 | 43 | "\n",
|
|
186 | 191 | "view = fem.ViewMesh(mesh)\n",
|
187 | 192 | "plotter = view.plot(\n",
|
188 | 193 | " notebook=True,\n",
|
189 |
| - " theme=\"document\",\n", |
190 | 194 | " add_axes=False,\n",
|
191 |
| - " edge_color=\"black\",\n", |
192 | 195 | " color=\"lightgrey\",\n",
|
193 |
| - " line_width=4,\n", |
194 | 196 | ")\n",
|
195 | 197 | "plotter.show(jupyter_backend=\"static\")"
|
196 | 198 | ]
|
|
213 | 215 | "view = fem.ViewMesh(fem.mesh.concatenate([fibers_1, fibers_2]))\n",
|
214 | 216 | "plotter = view.plot(\n",
|
215 | 217 | " notebook=True,\n",
|
216 |
| - " theme=\"document\",\n", |
217 | 218 | " add_axes=False,\n",
|
218 | 219 | " color=\"black\",\n",
|
219 |
| - " line_width=4,\n", |
| 220 | + " line_width=2,\n", |
220 | 221 | ")\n",
|
221 | 222 | "plotter.show(jupyter_backend=\"static\")"
|
222 | 223 | ]
|
|
420 | 421 | " view = fem.ViewSolid(field)\n",
|
421 | 422 | " plotter = view.plot(\n",
|
422 | 423 | " notebook=True,\n",
|
423 |
| - " theme=\"document\",\n", |
424 | 424 | " show_edges=False,\n",
|
425 | 425 | " add_axes=False,\n",
|
| 426 | + " color=\"lightgrey\",\n", |
426 | 427 | " )\n",
|
427 | 428 | " plotter.add_axes(label_size=(0.06, 0.06))\n",
|
428 | 429 | "\n",
|
|
441 | 442 | " plotter=plotter,\n",
|
442 | 443 | " line_width=3,\n",
|
443 | 444 | " add_axes=False,\n",
|
| 445 | + " color=\"lightgrey\",\n", |
444 | 446 | " )\n",
|
445 | 447 | " fiberplotter = fiberview1.plot(\n",
|
446 | 448 | " \"Normal Force (Range) per Undeformed Area (Fibre) in MPa\",\n",
|
|
452 | 454 | " above_color=\"lightgrey\",\n",
|
453 | 455 | " line_width=3,\n",
|
454 | 456 | " add_axes=False,\n",
|
| 457 | + " color=\"lightgrey\",\n", |
455 | 458 | " )\n",
|
456 | 459 | " fiberplotter.show(jupyter_backend=\"static\")"
|
457 | 460 | ]
|
| 461 | + }, |
| 462 | + { |
| 463 | + "cell_type": "code", |
| 464 | + "execution_count": null, |
| 465 | + "id": "f7289d31-536e-46c1-afa5-d1aee857ba1e", |
| 466 | + "metadata": {}, |
| 467 | + "outputs": [], |
| 468 | + "source": [] |
458 | 469 | }
|
459 | 470 | ],
|
460 | 471 | "metadata": {
|
|
473 | 484 | "name": "python",
|
474 | 485 | "nbconvert_exporter": "python",
|
475 | 486 | "pygments_lexer": "ipython3",
|
476 |
| - "version": "3.10.8" |
| 487 | + "version": "3.11.5" |
477 | 488 | }
|
478 | 489 | },
|
479 | 490 | "nbformat": 4,
|
|
0 commit comments