Skip to main content

SHORE

Structured grids for overset CFD

Latest Version Build Status Coverage Supported Python versions License

A half wing-body blocked and premeshed with SHORE

Documentation · Quick start · Tutorials · Cookbook · Python API

SHORE (Structured Hyperbolic Overlapping Remeshing Engine) makes the structured multi-block grids of an overset (Chimera) CFD case and writes the files the solver reads. It is a Python package with a CLI, a scriptable Project API and a desktop GUI; all three record the same replayable journal.

  • Marched near-body grids — O-grid, cubed sphere, C-grid with wing-tip caps, OH and CH hybrids, extruded from a body with seam-aware normals and a Jacobian guard (algebraic or Steger–Chaussee hyperbolic scheme).
  • Interactive blocking — split, hole, O-grid, associate with geometry, premesh with seams matched bit for bit, wall-normal lines and a wall layer with an exact first cell.
  • Collars — intersection curves, hyperbolic surface marching and the collar volume at body junctions, half models and sharp corners included.
  • STL and CAD — STEP / IGES / BREP through OpenCascade with exact projection; fingerprinted entities so journals replay on edited models.
  • Solver output — the Xall/Xnavis bundle (.grd, cc.par, proc.input, marker boxes) for multi-component runs, CGNS, Plot3D, VTK.

Install

pipx install shore-mesh                        # CLI
pipx install 'shore-mesh[cad,gui,cgns,vis]'    # with CAD, GUI, CGNS and PyVista

Python 3.11+. For library use, pip install shore-mesh in a virtual environment. Installation has the details and the one-line installer.

A first grid

shore body sphere -o sphere.stl --subdivisions 4
shore mesh sphere.stl --ni 33 --nj 64 --nk 25 --ds 0.01 --growth 1.15 \
    -o sphere --journal sphere.py
shore check sphere_sub0.geo
shore run sphere.py              # replays the journal, bit for bit

The same in Python:

from shore.project import Project

p = Project()
p.load_geometry("sphere.stl")
p.build_topology("cubed_sphere", nk=25, ni=33, nj=64, ds=0.01, growth=1.15)
p.march()
p.write_geo("sphere")
p.save_journal("sphere.py")

Then follow the tutorials: a wing with a C-grid, a Chimera assembly and its Xall bundle, a collar, projects and replay, and a CAD wing–body blocked in Python and in the GUI.

Development

git clone https://github.com/szaghi/shore.git && cd shore
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
make test    # ~2000 tests
make lint

New algorithms are accepted against specs frozen before they are written (tests/spec/, ADR 0005); Contributing explains the workflow, and the design records what was decided and why.

Using SHORE with Claude Code

This repo ships a Claude Code skill at .claude/skills/shore/ that teaches the agent how to operate the shore CLI end-to-end — topology choice, the spacing knobs, and the full STL → mesh → Xall-bundle (grd / cc-par / proc-input) workflow, including the argument-order gotchas. Claude Code discovers it automatically when you open this repository.

To make it available in every project (so you can drive shore from any directory), copy it into your user skills directory:

cp -r .claude/skills/shore ~/.claude/skills/shore

Authors

Stefano Zaghi · stefano.zaghi@cnr.it

Chief Yak Shaver, Accidental Research Scientist, and HPC Farmer — CFD researcher who decided that one more day debugging Fortran build systems was one day too many, opened a Python REPL "just to prototype," and now finds himself maintaining a meshing library, a chimera assembler, an MPI load balancer, and the seven blog tabs he keeps meaning to read.

Andrea Di Mascio · andrea.dimascio@univaq.it

Sommo Vate & Resident Gandalf — responsible for the deep CFD intuitions SHORE pretends to know.

Claude (Anthropic)

Omniscient Code Oracle & Tireless Rubber Duck — AI pair programmer, responsible for writing the boring parts so humans don't have to.

License

SHORE is released under the MIT License.

Metadata

Release files for shore-mesh 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shore-mesh 0.7.1
File Size Uploaded Provenance Actions
shore_mesh-0.7.1.tar.gz 524.0 kB With provenance Details for shore_mesh-0.7.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shore-mesh 0.7.1
File Interpreter ABI Platform Actions
shore_mesh-0.7.1-py3-none-any.whl Python 3 none any Details for shore_mesh-0.7.1-py3-none-any.whl

Total release size: 938.3 kB

Release files / shore_mesh-0.7.1.tar.gz

Download URL shore_mesh-0.7.1.tar.gz
Size 524.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3c6e4f537e64a88669d990fb01c2f6e50e953151a8861d9726a5c2400b15d2a5
BLAKE2b-256 checksum
How to use checksums
d868cc59b095e0fa0aeae647063db3726d35557160d33a23df02007e064fc52e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / shore_mesh-0.7.1-py3-none-any.whl

Download URL shore_mesh-0.7.1-py3-none-any.whl
Size 414.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7101dfb39180ef7377c52cf25bab7eed340b02761f7573fb2955617dcbc748e5
BLAKE2b-256 checksum
How to use checksums
511b6fb5bb7e3466e1091553700f711e93e16906941f2deec6d4a5d01601b198
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for shore-mesh 0.7.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for shore_mesh-0.7.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page