O_o_Solver
Native Python package (oo-solver), build and publishing
Sphinx documentation · Benchmark comparison — Classic, Mixed Auto and commercial solvers · Derivative coverage · API reference
A linear finite element solver written in C++20 and compiled to WebAssembly for the web. It solves models supplied as typed table packages by O_o_Reader: linear statics (SOL 101), normal modes (SOL 103), linear buckling (SOL 105), static aeroelastic trim (SOL 144) and design evaluations driven by JavaScript. A static analysis can condense the components of the model onto their boundaries (the condensed path), with the results of the full path.
O_o_Reader loads native .oos models or .ooh5 model archives, and the solver takes the reader's tables:
import { loadOorReader } from "oor-reader";
import { loadOosSolver } from "oos-solver";
const oor = await loadOorReader();
const solver = await loadOosSolver();
oor.writeFile("/work/plate.oos", modelText);
const deck = oor.readModel("/work/plate.oos");
const model = solver.modelFromReader(oor, deck); // the reader's tables, handed over as table packages
solver.elementFormulations(); // [{ card: "ShellQuad4", formulations }], the default first
model.checkSupport("statics"); // { supported, refusals, ignored, isComplete }
const run = solver.run(model, "statics"); // or "modes", "buckling"
run.nodalTables[0]; // { kind: "displacements", subcase, ids, values (rows x 6), ... }
run.elementTables; // stress, strain, forces, by element type ("ShellQuad4")
run.eigenvalues; // modes and buckling: one table per subcase
run.diagnostics; // warnings, with the card and field they are about
// The condensed path: the reader's component tables, then each component condensed onto its boundary.
const parts = solver.modelFromReader(oor, deck, { condensation: true });
solver.run(parts, "statics", { condensation: "all" }).condensation; // { condensedUnits, fullUnits, interfaceDofs }
solver.run(parts, "modes", { condensation: { units: "all", modeCount: 40 } }); // Craig-Bampton; "buckling" too
const cache = solver.condensationCache(); // units condensed once for the runs given it
solver.run(parts, "statics", { condensation: { units: "all", cache, memoryMode: "low_memory" } });
solver.run(model, "statics", { streamed: true }); // the full path without a factor of the whole model
solver.run(model, "statics", { externalUnits: [{ zone, labels, stiffness }] }); // zones replaced by matrices
solver.runSuperelements(residual, [{ id: 1, model: part, boundary: [[101, 101]] }], "statics");
The interface and its diagnostics use the same neutral names as the model: card types such as ShellQuad4,
table kinds such as singlePointConstrForces, and field names such as bendingMomentA1.
The whole interface: wasm/js/index.d.ts. How a table crosses from the reader's module to the solver's: docs/table-package.md.
Documentation
JavaScript optimization: native design interfaces and derivatives. External optimization: SOL 101, 103, 105 and 144 studies, full-analysis derivatives, workers and accepted-point archives. Bar and beam derivatives: analytic section, material, mass and recovery rates.
Read Sphinx documentation · Architecture with diagrams · Documentation index
The Documentation workflow publishes the HTML site and provides a downloadable archive. See read, download and build instructions.
Shell elements
ShellQuad4 is the four-node shell of docs/shell-quad4-formulation.md (directors at the nodes, enhanced membrane strains and curvatures, transverse shear tied at the mid-sides with its residual bending flexibility, a stabilised rotation about the normal), and ShellTria3 the same element brought to three nodes (docs/shell-tria3-formulation.md), so that two triangles on the grid points of a quadrilateral behave closely to it; that document gives the measured closeness and its limits. ShellQuad8 and ShellTria6 are the shells with a director at each node on the quadratic shape functions (docs/shell-quad8-tria6-formulation.md), with the same conventions: the normals shared at the grid points, the stabilised rotation about the normal, the free thermal dilatation; the eight-node element with uniform reduced integration, the six-node element with tied transverse shears and membrane strains. All are written from methods of the open literature, cited in the documents; the choices of this project are listed in src/elements/README.md.
Element formulations
Each element card can have several formulations. ClassicFormulation is the default for every current
card. A choice applies to all elements of one card type. The model sets it with
Parameter;ShellQuad4Formulation;ClassicFormulation, or with a global
SubcaseParameter;ShellQuad4Formulation;ClassicFormulation before the first subcase.
A program can override that choice with
solver.modelFromReader(oor, model, { elementFormulations: { ShellQuad4: "ClassicFormulation" } }).
Card names must match solver.elementFormulations() exactly. Unknown cards and unavailable formulations
are reported before a calculation. Details: src/elements/README.md.
MixedHybridFormulation is chosen for the whole model, never for one card: every shell, line and solid card takes it
together, with Parameter;ElementFormulation;MixedHybridFormulation or
solver.modelFromReader(oor, model, { elementFormulation: "MixedHybridFormulation", formulationGeometry: {...} }).
Its shells and solids read their geometry from the mesh. The model's ShellNormalAngle decides where the surface
folds, and the declarations correct it edge by edge (formulationGeometry, or the SurfaceEdge, SurfaceFacet and
SurfaceLine cards of the deck: smooth, sharp and raw edges, raw elements, mesh lines); a declaration is mandatory,
and an empty one says that the angle decides every edge. Model.surfaceEdges() gives what was read at every edge. It
takes every path: full, condensed, streamed, external units, superelements and the design derivatives.
See docs/mixed-hybrid-formulation-spec.md.
Layout
| Folder | What |
|---|---|
include/oos/<module>/, src/<module>/ |
the library, in modules that each use only the ones before them: base → linalg → input → elements → assembly → reduction → aero → output → solutions → design → api |
wasm/ |
the WebAssembly module: the embind interface (src/Bindings.cpp), the JavaScript wrapper (js/), its Node.js test (test/) |
cmake/ |
compiler warnings and the dense kernel families |
docs/ |
the table package format |
Each module has a README.md in src/<module>/ that says what it holds and where to start reading.
Build
For the shared-memory build, use the wasm-threads preset and threading guide.
Native (Windows: MSYS2 UCRT64 first on the PATH, C:\msys64\ucrt64\bin; Linux: GCC 12 or later):
cmake --preset release
cmake --build build/release -j
The Native workflow makes this build with GCC 12 and runs the native checks of the element kernels
(-DOOS_BUILD_NATIVE_CHECKS=ON, build/release/checks/oos_native_checks).
WebAssembly (64-bit WebAssembly, Memory64: Node.js 24 or a browser that supports it; the Emscripten SDK on the PATH):
emcmake cmake -S . -B build/wasm -G Ninja -DCMAKE_BUILD_TYPE=Release -DOOS_BUILD_WASM=ON -DOOS_WARNINGS_AS_ERRORS=OFF
cmake --build build/wasm -j
node --test --test-concurrency=1 wasm/test/*.test.mjs # needs the O_o_Reader package built in ../O_o_Reader/build/wasm/dist
The fast input combination tests enforce a one-second ceiling per case. Use
node wasm/test/run.mjs for a compact summary and a JSON timing report.
The package is in build/wasm/dist (oos_solver_core.js, .wasm, index.js, index.d.ts, package.json).
The WebAssembly workflow builds it on every push to main that changes the sources, runs the test suites on it
(see continuous integration) and, when they pass, publishes it as
O_o_Solver-wasm.zip in two releases: wasm-latest, a pre-release
that follows the branch, and one release kept for each version of wasm/package.json (v0.2.0, ...), made by the
first build of that version and not changed afterwards; the newest of these is the latest release of the repository.
Raise the version in wasm/package.json to keep a new one. Each run also keeps the package 90 days as its
O_o_Solver-wasm artifact.
The default WebAssembly build runs on its calling thread. The wasm-threads variant enables shared-memory
workers through the same C++ thread pool. Both variants factorise with the dense kernels written on the 128-bit vector
instructions of WebAssembly, which give the bits of the portable reference kernels.
Licence
MIT, see LICENSE. The legal choices behind the project are in LEGAL.md.
Metadata
Release files for oo-solver 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oo_solver-0.2.0.tar.gz | 4.2 MB | With provenance | Details for oo_solver-0.2.0.tar.gz |
Built distributions (wheels)
Total release size: 89.3 MB
Release files / oo_solver-0.2.0.tar.gz
| Download URL | oo_solver-0.2.0.tar.gz |
|---|---|
| Size | 4.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa93241284c31a438d2a93ec50951075dba1ee8367df3ee56d557bfe97e7ab08
|
|
BLAKE2b-256 checksum How to use checksums |
d2723831b3d2de5841607f40b05d463d2abe8234c93ad5f1ab40d541e2c03de5
|
| 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 23, 2026.
Transparency logRelease files / oo_solver-0.2.0-cp314-cp314-win_amd64.whl
| Download URL | oo_solver-0.2.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 9.1 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
eac8f91a1a941a94c9ca09ff99221884054cfc594bccce9baeceef453e38532f
|
|
BLAKE2b-256 checksum How to use checksums |
72e908bcf7f4efb94039893418eabad8655b42b806da2ad8e9ae81478d201380
|
| 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 23, 2026.
Transparency logRelease files / oo_solver-0.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | oo_solver-0.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.1 MB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
894f284a342f0458a30551456b0555d02f610c38638863074c7b53a10b9759d3
|
|
BLAKE2b-256 checksum How to use checksums |
9ec501fa4e683ec51f22d861f3dbb5a32547535bfb767eee041eee37d5c798f9
|
| 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 23, 2026.
Transparency logRelease files / oo_solver-0.2.0-cp313-cp313-win_amd64.whl
| Download URL | oo_solver-0.2.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 8.9 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7e11a494e9a8fe9a9f7e9ad5e20c908e26c4e777e2ce16d151f2f3eb6f5c9600
|
|
BLAKE2b-256 checksum How to use checksums |
0d3941067b2362a7cb1342736ee4d90c377597d9b45d58f5f77c1fd95ac0d835
|
| 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 23, 2026.
Transparency logRelease files / oo_solver-0.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | oo_solver-0.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.1 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
47e9bb6741c8acd2a93b9d37bb1f8c7ba16bb04b920eecb20006fbfa5451ffee
|
|
BLAKE2b-256 checksum How to use checksums |
cd2ecd0d46fcd85b6ee224a8998f104f5fe20a675ab80b13fcfcfe857b4cdccb
|
| 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 23, 2026.
Transparency logRelease files / oo_solver-0.2.0-cp312-cp312-win_amd64.whl
| Download URL | oo_solver-0.2.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 8.9 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2d226512de34b6a9a5fddb86854cf92d96cd9d213657a89a6d0bdeedf700f127
|
|
BLAKE2b-256 checksum How to use checksums |
c734c84d64b15eff208accee6186b8744f5b9a7aa447603e192e700237ea9f11
|
| 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 23, 2026.
Transparency logRelease files / oo_solver-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | oo_solver-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.1 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
65f91ec8e498d67058a82cacc5d44c5deef585ccfaa7efddbc2a93d8abe8f8c6
|
|
BLAKE2b-256 checksum How to use checksums |
376595a3bddfddb963fde38ac6fa160a25ae9a7e9e7471403c31e07c62587103
|
| 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 23, 2026.
Transparency logRelease files / oo_solver-0.2.0-cp311-cp311-win_amd64.whl
| Download URL | oo_solver-0.2.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 8.9 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
104224efae3c7117644786d26497f8811ec36569e1aae8df4a8ff82f250805c4
|
|
BLAKE2b-256 checksum How to use checksums |
d385310234255cc943b38dc28f474008fc2fac8a61bcdbf34bd721a648054591
|
| 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 23, 2026.
Transparency logRelease files / oo_solver-0.2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | oo_solver-0.2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.1 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
3da0a61089f10e1ce5d834125be5f4f3647dbf3a861d96efd3a654a33feda0a0
|
|
BLAKE2b-256 checksum How to use checksums |
1efa89b9ce2d17e103216fd673823eed275236d1c1cb717f3369736f1eb32806
|
| 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 23, 2026.
Transparency logRelease files / oo_solver-0.2.0-cp310-cp310-win_amd64.whl
| Download URL | oo_solver-0.2.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 8.9 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1f380a21b3a50fa790b2c8a2a0c604703375b88bd0200a45d152479837384ce6
|
|
BLAKE2b-256 checksum How to use checksums |
999cea74f8d35666972df0b9fa40da31ce7eb07f5784e193b6a6ffed224c4d7c
|
| 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 23, 2026.
Transparency logRelease files / oo_solver-0.2.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | oo_solver-0.2.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.1 MB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
8aefadbc900113aed99631d2c83848664d12c83dbc497c5a7aa12e682e5dd4f7
|
|
BLAKE2b-256 checksum How to use checksums |
86e8c04fa9660d7c0a10d869f8743cb09b8477148938dfda956cc161376a15c1
|
| 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 23, 2026.
Transparency logSecurity for oo-solver 0.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 11 files in this release have been uploaded with provenance metadata.
Attestation for oo_solver-0.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 23, 2026.
Transparency logA 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.