CLI commands
Every shore command and sub-command, grouped as in the sidebar. Each page lists the options exactly as shore <command> --help prints them, with their defaults. shore --version prints the installed version (shore 0.4.0); shore --help and shore <command> --help list the commands and options.
Grids
| Command | Purpose | Extras |
|---|---|---|
shore mesh | Full pipeline: STL or CAD → k=0 wall → marched volume → .geo files, for the cubed_sphere, ogrid, cgrid, ch and oh topologies. | cad for STEP/IGES/BREP |
shore primitive box | Cartesian box, one block. | |
shore primitive annulus | Annular cylinder, one block, optionally a j sector. | |
shore primitive flat-caps | 5-block cylinder without a central hole (Chimera background). | |
shore primitive h-grid-rect | Rectangular-duct H-grid, one block. | |
shore primitive h-grid-tube | Circular-bore H-grid, five blocks (O-H cross-section). | |
shore collar | Collar block at the junction of two bodies; half-collar on a symmetry plane; split at sharp corners. | cad for CAD bodies |
shore cap-tip | Wing-tip cap blocks from a C-grid body .geo. | |
shore project | Project a lat-lon sphere grid onto a body: the k=0 layer only, as .npz. | cad for CAD input |
shore run | Replay a journal; optionally save the project it builds. | whatever the journal uses |
shore gui | The desktop GUI over a project (also shore-gui). | gui |
Bodies
| Command | Purpose | Extras |
|---|---|---|
shore profile naca | NACA 4- or 5-digit section as a Selig .dat. | |
shore body sphere | Icosahedral sphere STL. | |
shore body cylinder | Closed cylinder STL, axis z. | |
shore body torus | Torus STL, axis z. | |
shore body box | Box STL. | |
shore body capsule | Capsule STL, axis z. | |
shore body extrude | Wing STL extruded from a Selig section (taper, sweep, twist). |
Xall and chimera
| Command | Purpose | Extras |
|---|---|---|
shore xall | The Xall run of every component of a project: per-component files, merged .grd and cc.par, one proc.input. | |
shore grd | Pack .geo files into a binary .grd. | |
shore grd-merge | Concatenate .grd files of several components. | |
shore cc-par | .adjacency.json sidecar → cc.par (BCs, connection patches, marker boxes). | |
shore cc-par-merge | Concatenate cc.par files, shifting block and patch indices. | |
shore proc-input | proc.input from a .grd, blocks balanced over MPI ranks. | |
shore proc-input-merge | Concatenate proc.input files. | |
shore boxes-from-stl | Hole-cutting marker boxes from a body STL, as JSON for cc-par --boxes. | |
shore boxes-export | Marker boxes → .vtm for ParaView. | vis |
shore split | Split blocks along index planes, keeping the face graph. | |
shore balance | Plan splits for MPI load balance (split.toml or bsplit.par). |
Exports and inspection
| Command | Purpose | Extras |
|---|---|---|
shore cgns | A project as one CGNS/HDF5 file. | cgns |
shore plot3d | A project's blocks as one multi-block Plot3D grid. | |
shore export | .geo / .npz → VTK (.vts, .vtm) for ParaView. | vis |
shore info | Shape and extent of a .geo or .npz. | |
shore check | Cell Jacobians of a .geo, layer by layer. | |
shore view | Interactive PyVista window on a .geo or .npz. | vis |
Files
| Command | Purpose | Extras |
|---|---|---|
shore config | template: print a default mesh config; validate PATH: check one. | |
| File formats | .geo, .grd, cc.par, proc.input, .adjacency.json, .npz, project directory, CGNS, Plot3D. |
Options shared by the grid commands
| Option | Commands | Description |
|---|---|---|
--project DIR | mesh, collar, primitive * | Add the result to the project in DIR (created if missing) and save it (ADR 0018). |
--component C | mesh, collar, primitive * | The component of --project to build: default main (collar for shore collar). |
--no-replay | mesh, collar, primitive *, xall, cgns, plot3d, gui | Open the project from its saved grids instead of replaying its journal (ADR 0033). |
--journal PATH | mesh, primitive *, cap-tip, split, grd, cc-par, proc-input | Also write the run as a replayable journal for shore run. |
--adjacency-json PATH | mesh, primitive *, collar, cap-tip | Also write the .adjacency.json face graph, the input of shore cc-par. |
-c / --config PATH | mesh, primitive box/annulus/flat-caps, split | Read parameters from a TOML file; explicit flags win (Config files). |
Parameter precedence everywhere: explicit flag → --config file → built-in default. Errors print one line and exit with code 1.
Extras
pip install 'shore-mesh[extra]':
| Extra | Installs | Needed by |
|---|---|---|
cad | build123d | STEP/IGES/BREP input to mesh, collar, project, Project.load_geometry |
gui | PySide6-Essentials, pygfx, wgpu, rendercanvas | shore gui, shore-gui |
cgns | h5py | shore cgns, Project.write_cgns |
vis | pyvista | export, view, boxes-export |
See also
- Project scripts: the Python layer behind every grid command
- Python API
- Quick start