Skip to content

Tutorials ​

Eight tutorials, each one story from an empty directory to a finished result. Every step shows real commands and real output; every Python snippet is a region of a script under examples/tutorials/ that runs to the end in under a minute. Run them in order the first time: each assumes what the earlier ones taught.

What each one needs ​

TutorialExtrasScript run timeWhat it builds on
1. A sphere, end to endnone (vis for the VTK export)~3 snothing
2. A wing with a C-gridnone (vis for the VTK export)~2 s1
3. A Chimera assemblynone (vis for the VTK export)~2 s1
4. The Xall bundlenone (vis for boxes-export)~7 s3
5. Collar at a junctionnone~20 s1
6. Projects and replaycgns~2 s1, 4
7. Blocking a wing–bodycad, cgns~10 s6
8. The same in the GUIgui, cadinteractive7

Install the extras with pip, e.g. pip install "shore-mesh[vis,cgns,cad]"; see Installation. The GUI needs a GPU driver with Metal, Direct3D 12 or Vulkan.

Suggested order ​

  • Near-body grids by marching: 1, then 2 for lifting surfaces.
  • A solver-ready overset run: 1, 3, 4.
  • Junctions between bodies: 1, then 5.
  • Interactive multi-block grids on CAD: 6, 7, then 8.

For a single task without the story, see the Cookbook; for how the algorithms work, the Concepts.

Released under the MIT License.