r/coolgithubprojects • u/Emergency-Tutor-7 • Oct 12 '26
I built an open-source scientific modeling engine because simulations should be reproducible, not just look convincing
I've been working on an open-source project called Axiomize.
One problem I've run into with scientific modeling is how easy it is to produce a convincing simulation without making the underlying assumptions, units, solver choices, and validation steps explicit.
A model might run successfully and generate a nice-looking graph, but that doesn't necessarily mean the equations are physically reasonable or that someone else can reproduce the result.
I wanted to build something that makes those details harder to ignore.
Axiomize is a Python-based scientific modeling engine built around a versioned, machine-readable Model IR (intermediate representation).
Instead of keeping everything scattered across notebooks and scripts, the idea is to describe a model in a structured format and make its assumptions, parameters, equations, constraints, and validation results inspectable.
What it supports
The engine covers several areas of scientific modeling:
Mathematical and dimensional consistency checks
Algebraic equations and nonlinear solvers
Ordinary and partial differential equations
Differential-algebraic and stochastic systems
Optimization and control systems
Network and agent-based models
Discrete-event and hybrid simulations
Multiphysics modeling workflows
Parameter fitting and calibration
Uncertainty and sensitivity analysis
Bayesian inference and diagnostics
Causal modeling with identification checks
Stability, bifurcation, and numerical convergence analysis
Model comparison, experimental design, and surrogate modeling
It also includes a verification workflow that distinguishes numerical errors from uncertainty in the underlying model.
One of the changes in v1.13.0 is physical-plausibility validation.
Dimensional consistency is important, but it's not enough.
Two equations can have perfectly valid units while one violates a physical constraint.
The new validation examples demonstrate this using drag-force models, checking conservation, passivity, and agreement with independent analytical references rather than relying only on whether the simulation completes.
I've also been working on reproducible run records and visualization exports.
Reproducibility and export
Models can be exported into several formats, including JSON, Python, Jupyter notebooks, SBML, CellML, and Modelica, subject to the model and adapter capabilities.
Axiomize records modeling decisions and execution information so results can be checked or reproduced later.
Using it with AI agents
Another part of the project is making scientific tools accessible through:
A Python API and CLI
A REST interface
An MCP server for compatible AI clients
An Agent Skill describing the modeling workflow
The important distinction is that the model doesn't get to declare its own scientific result correct just because its reasoning sounds plausible. Numerical and structural checks are performed by the scientific tooling.
Installation
The main Python package is on PyPI:
https://pypi.org/project/axiomize/
pip install axiomize
There's also an npm package:
https://www.npmjs.com/package/axiomize
npm install -g axiomize
The npm distribution is a Node.js launcher for the Python CLI. It isn't a standalone JavaScript scientific engine and still requires the Python package.
Current version: v1.13.0
The GitHub repository includes source code, examples, documentation, automated tests, and scientific validation workflows.
The release pipeline includes installed-package testing on Linux, Windows, and macOS.
Limitations
I don't want to suggest that this automatically makes every scientific model correct.
It can catch certain numerical, dimensional, and physical-consistency problems, but scientific validity still depends on the model, evidence, assumptions, and experimental validation.
Some advanced backends, including PyMC/JAX and FEniCS, require additional dependencies.
The project is still evolving, and broader independent validation is important.
It's MIT-licensed and open source.
GitHub:
https://github.com/Furox-Art/axiomize
PyPI:
https://pypi.org/project/axiomize/
npm:
https://www.npmjs.com/package/axiomize
Documentation:
https://furox-art.github.io/axiomize/
I'd especially appreciate feedback from people working with scientific Python, numerical simulation, mathematical modeling, or reproducible research.
What would you consider the most important requirement for trusting a scientific simulation produced by an automated modeling system?
2
Oct 12 '26
[removed] — view removed comment
1
u/Emergency-Tutor-7 Oct 12 '26
Thanks, that's a good suggestion. I actually have an example very close to what you're describing, and I agree it should be more prominent.
The physical-plausibility example compares a correct drag model against two deliberately broken versions (wrong sign and wrong scale). All three pass the structural and dimensional checks, but the incorrect models fail the physical validation against energy conservation and an independent analytical solution.
Here's the example:
https://github.com/Furox-Art/axiomize/blob/main/examples/physical_plausibility_validation.pyAnd yes, the versioned Model IR includes solver configuration: backend, method, relative and absolute tolerances, maximum steps, and fallbacks.
The run records also capture the actual solver settings, random seed, software versions, and integrity hashes. There's a separate example demonstrating reproducibility and detecting changes in solver tolerances:
https://github.com/Furox-Art/axiomize/blob/main/examples/reproducibility_run_record.py
That doesn't guarantee identical results across different environments, but it makes the relevant differences inspectable.
I appreciate the feedback. A concrete before-and-after example definitely communicates the value better than just listing features.
1
u/hsauro 3d ago
Can you give an example of building and modeling a small metabolic pathway? I am interested in how you handle parameter provenance and annotation of the model entities (state variables)