Skip to main content

Gamut

Gamut: an open file format for parametric simulation studies

By Bijective Systems, with libraries for Python, MATLAB, Julia, C++, C and Rust.

Documentation · Installing · Examples · Specification · PyPI: bijective-gamut · Releases

CI


Gamut is a file format for parametric simulation studies: the hundreds or thousands of CFD or FEA runs behind a design sweep, an aerodynamic database or a surrogate model. One file holds the run table, each run's inputs, results and status, and, when the runs have a mesh, the mesh and every field on it, all with units. A model fitted to the runs is saved the same way, as plain numbers with no code. Every language reads and writes the file through one core, so each reads what another wrote, value for value.

Python (with the command line), MATLAB, Julia, C++, C and Rust each read and write a .gamut file through the C interface of the one C++ core; Fortran is planned.

Example

A sweep of a wing's angle of attack: six runs written at once, a seventh added later, and the lift of the runs that converged read back. cl stands for your solver's results.

alpha = np.arange(0.0, 11.0, 2.0)  # six angles of attack, in degrees
cl = 0.11 * alpha                  # stands for the solver's lift coefficients

with gamut.create("sweep.gamut", writer="example sweep",
                   parameters={"alpha": {"units": "degree", "role": "condition"}},
                   labels={"status": {"role": "status",
                                      "categories": ["converged", "failed"]}},
                   scalars={"cl": "1"}) as study:
    study.add_runs({"alpha": alpha, "cl": cl,
                    "status": ["converged"] * len(alpha)})

with gamut.open("sweep.gamut", mode="a") as study:
    study.add_run({"alpha": 12, "status": "failed"})

with gamut.open("sweep.gamut") as study:
    lift = study.get_scalar("cl", rows=study.select("status == converged"))
MATLAB
alpha = (0:2:10)';   % six angles of attack, in degrees
cl = 0.11 * alpha;   % stands for the solver's lift coefficients

study = gamut.create('sweep.gamut', 'writer', 'example sweep', ...
    'parameters', struct('alpha', struct('units', 'degree', ...
                                         'role', 'condition')), ...
    'labels', struct('status', struct('role', 'status', ...
                                      'categories', {{'converged', 'failed'}})), ...
    'scalars', struct('cl', '1'));
status = repmat({'converged'}, numel(alpha), 1);
study.addRuns(struct('alpha', alpha, 'cl', cl, 'status', {status}));
study.close();

study = gamut.open('sweep.gamut', 'mode', 'a');
study.addRun(struct('alpha', 12, 'status', 'failed'));
study.close();

study = gamut.open('sweep.gamut');
lift = study.getScalar('cl', 'rows', study.select('status == converged'));
study.close();
Julia
alpha = collect(0.0:2.0:10.0)  # six angles of attack, in degrees
cl = 0.11 .* alpha             # stands for the solver's lift coefficients

Gamut.create("sweep.gamut"; writer="example sweep",
              parameters=Dict("alpha" => (units="degree", role="condition")),
              labels=Dict("status" => (role="status",
                                       categories=["converged", "failed"])),
              scalars=Dict("cl" => "1")) do study
    status = fill("converged", length(alpha))
    Gamut.add_runs!(study, Dict("alpha" => alpha, "cl" => cl, "status" => status))
end

Gamut.open("sweep.gamut"; mode="a") do study
    Gamut.add_run!(study, Dict("alpha" => 12.0, "status" => "failed"))
end

lift = Gamut.open("sweep.gamut") do study
    Gamut.get_scalar(study, "cl"; rows=Gamut.select(study, "status == converged"))
end
C++
const std::vector<double> alpha = {0, 2, 4, 6, 8, 10};  // angles of attack, degrees
std::vector<double> cl;  // stands for the solver's lift coefficients
for (const double a : alpha) cl.push_back(0.11 * a);

auto study = gamut::create("sweep.gamut", "example sweep");
study.declare_parameter("alpha", "condition", "degree");
study.declare_label("status", "status", {"converged", "failed"});
study.declare_scalar("cl", "1");
const std::vector<std::string> status(alpha.size(), "converged");
study.add_runs({{"alpha", alpha}, {"cl", cl}, {"status", status}});
study.close();

study = gamut::open("sweep.gamut", "a");
study.add_run({{"alpha", 12.0}, {"status", "failed"}});
study.close();

study = gamut::open("sweep.gamut");
const std::vector<double> lift =
    study.get_scalar("cl", study.select("status == converged"));
Rust
let alpha = vec![0.0, 2.0, 4.0, 6.0, 8.0, 10.0];   // angles of attack, degrees
let cl: Vec<f64> = alpha.iter().map(|a| 0.11 * a).collect();   // stands for the solver's lift coefficients

let mut study = gamut::create("sweep.gamut", "example sweep", "", "")?;
study.declare_parameter("alpha", "condition", "degree")?;
study.declare_label("status", "status", &["converged", "failed"])?;
study.declare_scalar("cl", "1")?;
let status = vec!["converged"; alpha.len()];
study.add_runs(&[("alpha", alpha.into()), ("cl", cl.into()), ("status", status.into())], &[])?;
study.close()?;

let mut study = gamut::open_append("sweep.gamut")?;
study.add_run(&[("alpha", 12.0.into()), ("status", "failed".into())], &[])?;
study.close()?;

let study = gamut::open("sweep.gamut")?;
let lift = study.get_scalar("cl", study.select("status == converged")?)?;

All five print the same line:

lift of the runs that converged: 0.00 0.22 0.44 0.66 0.88 1.10

The examples go on from here, a step at a time and in each language: a mesh shared by every run, families of shapes, meshes that change, time series, uncertainty, and models fitted to the runs.

Performance

File size and read times of Exodus II, CGNS and PhysicsNeMo-Mesh relative to Gamut, for a triangulated capsule geometry family and an XFOIL airfoil sweep. Every format uses the same mesh within each dataset.

On the triangulated capsule family, Gamut and compressed Exodus occupy about the same space, and Gamut is smaller and reads one run faster than PhysicsNeMo-Mesh, which writes faster; on the smaller airfoil sweep, PhysicsNeMo-Mesh reads faster and Gamut is smaller. PhysicsNeMo-Mesh needs triangles, so every format here uses the capsule converted to triangles. The benchmarks give the full timings, settings and machine, the original quadrilateral results, and the workloads where another approach is faster.

Install

Language Install
Python 3.11 or later pip install bijective-gamut
MATLAB R2023b or later open Gamut.mltbx from the latest release
Julia 1.10 or later Pkg.add(url="https://github.com/bijective-systems-org/gamut", subdir="julia", rev="v2.2.0")
C++ and C CMake build and install, then find_package(gamut); include gamut/gamut.hpp (C++17) or gamut/gamut.h (C)
Rust 1.70 or later bijective-gamut = { git = "https://github.com/bijective-systems-org/gamut", tag = "v2.2.0" }, with GAMUT_LIB_DIR at a release's core

In Python, install bijective-gamut, then import gamut; the PyPI project named gamut is a different package. Installing has the details for each language, and llms.txt gives coding agents a plain-text overview.

License

Apache 2.0. Made by Bijective Systems. If you use Gamut in published work, please cite it (CITATION.cff).

Metadata

Release files for bijective-gamut 2.2.0

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

Source distribution (sdist)

Source distribution for bijective-gamut 2.2.0
File Size Uploaded Provenance Actions
bijective_gamut-2.2.0.tar.gz 359.9 kB With provenance Details for bijective_gamut-2.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for bijective-gamut 2.2.0
File Actions
bijective_gamut-2.2.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for bijective_gamut-2.2.0-py3-none-win_amd64.whl
bijective_gamut-2.2.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for bijective_gamut-2.2.0-py3-none-manylinux_2_28_x86_64.whl
bijective_gamut-2.2.0-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for bijective_gamut-2.2.0-py3-none-macosx_11_0_x86_64.whl
bijective_gamut-2.2.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for bijective_gamut-2.2.0-py3-none-macosx_11_0_arm64.whl

Total release size: 8.2 MB

Release files / bijective_gamut-2.2.0.tar.gz

Download URL bijective_gamut-2.2.0.tar.gz
Size 359.9 kB
Tags Source
SHA-256 checksum
How to use checksums
773a6d43413e318bd3d6618577ff166d270cbae84791acbe8a466a2d06df34eb
BLAKE2b-256 checksum
How to use checksums
e1a45eae22503da753af9a7da51d8d7c4cc9eb2344d6715313a6b716ba446ee1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 4, 2026.

Transparency log

Release files / bijective_gamut-2.2.0-py3-none-win_amd64.whl

Download URL bijective_gamut-2.2.0-py3-none-win_amd64.whl
Size 1.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
4bddd3bde695145b41192f41e9d9b9b2b4f9bb43ca9a8be39f5add19b5006ae4
BLAKE2b-256 checksum
How to use checksums
0368aa1fdeca8894392875957609db3d99c90c9c6cd47b8a76d2802b48c5e27b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 4, 2026.

Transparency log

Release files / bijective_gamut-2.2.0-py3-none-manylinux_2_28_x86_64.whl

Download URL bijective_gamut-2.2.0-py3-none-manylinux_2_28_x86_64.whl
Size 2.4 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
45ae50acf7b44cec52f66c18701dfc617618ba50ee546c4b61ca024cd12b805e
BLAKE2b-256 checksum
How to use checksums
f7bcc85269c42b107305d6a575d1d16010b0db9b4f69990f318b6952b1d97a88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 4, 2026.

Transparency log

Release files / bijective_gamut-2.2.0-py3-none-macosx_11_0_x86_64.whl

Download URL bijective_gamut-2.2.0-py3-none-macosx_11_0_x86_64.whl
Size 2.0 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
be0d9f9d808264152fe6b6ec04872a69348a36d2a96560b4d8bbd440e435f720
BLAKE2b-256 checksum
How to use checksums
5c8ec62362ddbeeb5b03e70c9a10782aa2e38b097844f35b2f32a348b2ee630d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 4, 2026.

Transparency log

Release files / bijective_gamut-2.2.0-py3-none-macosx_11_0_arm64.whl

Download URL bijective_gamut-2.2.0-py3-none-macosx_11_0_arm64.whl
Size 1.7 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
81db02e65c34fa1b6e1d02afece274e51a3c37ff79a0632c9ac61662c8ab382d
BLAKE2b-256 checksum
How to use checksums
6abf208a238de20bc56621a52c3e7a483b7bd630b46e196a0d3aedcb5effaeef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 4, 2026.

Transparency log

Security for bijective-gamut 2.2.0

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

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for bijective_gamut-2.2.0.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 4, 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