Skip to main content

Open-source parametric vessel design and validation library

Project description

shipshape

Open-source parametric vessel design and validation library.

Shipshape provides boat-design-independent tools for naval engineering analysis. It is used by Solar Proa but can be applied to any parametric vessel design.

Modules

Module Description Requires FreeCAD
parameter Merge base parameters and compute derived values via a project-supplied plugin No
mass Compute component masses from a FreeCAD design and material properties Yes
buoyancy Find equilibrium pose (sinkage, pitch, roll) using Newton-Raphson iteration Yes
gz Compute the GZ righting-arm curve over a range of heel angles Yes
physics Center-of-gravity and center-of-buoyancy calculations Yes

Installation

pip install shipshape

For modules that require FreeCAD geometry (mass, buoyancy, gz, physics), install FreeCAD via conda-forge:

conda install -c conda-forge freecad

CLI Usage

Each module can be run as a CLI tool via python -m shipshape.<module>.

parameter

Merges boat and configuration JSON files, then calls a project-supplied compute_derived() function to calculate derived values.

PYTHONPATH=. python -m shipshape.parameter \
    --compute myproject.parameter.compute \
    --boat constants/boats/boat.json \
    --configuration constants/configurations/config.json \
    --output artifact/parameters.json

The --compute argument is a dotted module path. The module must export a compute_derived(data: dict) -> dict function.

mass

python -m shipshape.mass \
    --design artifact/boat.design.FCStd \
    --materials constants/material/materials.json \
    --output artifact/boat.mass.json

buoyancy

python -m shipshape.buoyancy \
    --design artifact/boat.design.FCStd \
    --materials constants/material/materials.json \
    --output artifact/boat.buoyancy.json

gz

python -m shipshape.gz \
    --design artifact/boat.design.FCStd \
    --buoyancy artifact/boat.buoyancy.json \
    --output artifact/boat.gz.json \
    --output-png artifact/boat.gz.png

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shipshape-0.9.0.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shipshape-0.9.0-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

Details for the file shipshape-0.9.0.tar.gz.

File metadata

  • Download URL: shipshape-0.9.0.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shipshape-0.9.0.tar.gz
Algorithm Hash digest
SHA256 741f6c585aecb049f5c2af26b6e0126719463bf10199f6d085a4902d0a6ff90c
MD5 9a99b16e99cfe0e1fc083fc95017bf73
BLAKE2b-256 abc0da7388d0192538e76febccb5900aa31b21ae810fea02e1acba1f53e49c07

See more details on using hashes here.

Provenance

The following attestation bundles were made for shipshape-0.9.0.tar.gz:

Publisher: publish.yml on shipshape-marine/shipshape

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file shipshape-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: shipshape-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 39.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shipshape-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f10be9465af58513613c5ee8aac9b2854646257440833290bccf59b2b65ef1df
MD5 6c52130d3b682164559328a564ed5609
BLAKE2b-256 df2526cb0c5e899513fed4f1cf237e3a6ee721e7cfbb04aa6fc2892c46b67391

See more details on using hashes here.

Provenance

The following attestation bundles were made for shipshape-0.9.0-py3-none-any.whl:

Publisher: publish.yml on shipshape-marine/shipshape

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page