Material properties for biomedical simulation, each stored with the conditions it holds under, so a simulation can check that a value applies before it uses it.

What it is

OpenMaterica is an open, fail-closed format for the physical properties of substances in and around the human body, and a Python reader for it. A material value holds only under conditions: a viscosity at a temperature and a shear rate, a stiffness on a specimen of a given shape. OpenMaterica records those conditions with every value, with its source and its uncertainty (or that the source gave none), for tissues and body fluids, the media and phantoms that stand in for them, agents introduced into them, and the materials of devices that enter or touch them. A simulation asks for a value at its own operating conditions, and the reader answers met, not_met or unknown, with its reasons. The specification is normative: where the Python package disagrees with it, the package is wrong.

Example uses

The curated library does not exist yet; three example records show the format. These are the uses it is built for.

Imaging needs more. Schema 0.1 holds the bulk, fluid, magnetic and biocompatibility sections; the acoustic, radiological, optical and thermal sections come later, and scenes and layered paths are specified but not yet in the Python package.

What it is not

Status

Pre-release. The specification is a draft for schema 0.1.0, and the record format will change before 0.1.0 is released. A development pre-release, 0.1.0.dev4, is on PyPI. It reads constants, intervals, compositions, evidence and tables, a table's end value outside its readable range under an extrapolation, and alternatives with no pick. It also checks a build over records: a declaration on its own, each fault refused with its rule's case, and the records the declaration lists read into results, each with its status, the reasons nothing covers and its verdict by the declaration's acceptances. Later steps build the rest, among it picks, overlays, combinations, trainable fields, watches and the trust of a label, and the curated material library does not exist yet. Schema 0.1.0 covers the bulk, fluid, magnetic and biocompatibility sections; other sections are added when a consumer needs them.

Core ideas

Records state facts, with provenance and conditions.
Each value records where it came from, the conditions of the test, the specimen it was measured on and what its spread represents. A condition the source does not state is recorded as unstated, never filled in.
Consumers declare their choices.
A record never says where a value applies, which stand-in is acceptable or which of competing values wins. The consumer declares its operating conditions, its tolerances and its choices, and the build checks the records against them.
Checks give met, not_met or unknown.
Each check of a declaration against a record gives one of three results, with its reasons. An unstated condition gives unknown, never met, and a refusal is a result, not an error.
Two integration targets: plain JSON and OpenUSD.
Records are plain JSON files that any language can read with a JSON parser and no OpenMaterica code, and the Python package depends on nothing outside the standard library. For simulators built on USD, the specification defines an OpenUSD binding that expresses the same records in USD scenes. It is optional, and not yet in the Python package.
Check points for model parameters (specified, not yet in the Python package).
A model parameter set names a versioned model family and carries check points: inputs with the outputs the model must give. A solver that evaluates the model in the wrong convention fails them loudly instead of running silently with wrong physics.
Content hashes.
Each record carries a SHA-256 hash of its content, serialised as canonical JSON (RFC 8785), so a consumer can pin the exact record it read. A further review does not change the hash; a change to a value does.

Scope

OpenMaterica describes substances, never systems: not an apparatus or its calibration, not a device as built, not a simulator's tuning. It records measured properties of specimens, with their test conditions, at the scale where a simulation consumes them.