This page was generated from docs\source\examples/section.ipynb.

Definition and plotting of a CHS section#

[1]:
from sigmaepsilon.mesh.domains.section import LineSection
from sigmaepsilon.mesh.plotting.mpl import triplot_mpl_mesh
import matplotlib.pyplot as plt

section = LineSection("CHS", d=1.0, t=0.3, n=32, mesh_params=dict(n_max=20))
triobj = section.trimesh(order=1).to_triobj()
fig, ax = plt.subplots(figsize=(4, 2))
triplot_mpl_mesh(triobj, fig=fig, ax=ax, lw=0.1)
[1]:
[<matplotlib.lines.Line2D at 0x1c9267619f0>,
 <matplotlib.lines.Line2D at 0x1c926762230>]
../_images/examples_section_1_1.png