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.
- A microrobot swimming in a blood vessel needs the viscosity of blood or plasma at body
temperature and at the shear rates its own motion creates. Blood's viscosity at room temperature is not its
viscosity at body temperature, and blood is thicker in slow flow than in fast flow. A value measured
outside the robot's conditions reads
not_met, naming the condition that failed. - A magnetically steered device needs its magnet's remanence. A magnet grade gives a
range, not one number: the reader returns the bounds, or a nominal value you declare, carried with the
assumption it rests on. If the source never stated the temperature the range holds at, the read says
unknown, notmet. - A bench test with a phantom fills a model vessel with water or a glycerol mixture in place of blood. The phantom's properties come from a record of the phantom itself, at the bench's temperature; whether it stands in for blood is your declaration, never the library's claim.
- A device design review looks up a material's biocompatibility evidence: the test reports, the standards they followed and what they tested. It is information about the evidence, never a claim that the material is safe.
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.
- Photoacoustic imaging through layered tissue needs, for each layer from the skin to a target vessel, optical absorption and scattering at the laser's wavelength, how efficiently absorbed light becomes pressure (the Grüneisen parameter), and the speed and attenuation of sound at the transducer's frequency. Blood's absorption depends on the wavelength and on how oxygenated the blood is, the Grüneisen parameter changes markedly between room and body temperature, and attenuation depends on frequency.
- Ultrasound in a robotics simulator built on USD needs each tissue's sound speed, density and attenuation at the probe's frequency, bound to the meshes of the scene. Tuning such as speckle stays with the simulator.
- C-arm fluoroscopy of a device in a vessel needs each material's X-ray attenuation across the tube's energy spectrum: tissue and bone, blood carrying a contrast agent, and the device's own materials. Attenuation jumps at an element's absorption edge, and iodine's and neodymium's both fall inside the diagnostic band, so a contrast agent and a magnet each need a spectrum, not one number.
What it is not
- Not a simulator. It computes no physics: it is not a solver, a mesher, a segmenter or a renderer, and none of its code runs inside a simulation's loop.
- Not a source of anatomy or patient data. Geometry is scene data.
- Not a judge of whether a value applies to your use. Whether a record's specimen stands in for yours is your declaration.
- Not a database service, and not yet a curated library. The library does not exist yet; three example records show the format.
- Not a medical device, and never a source of safety or biocompatibility claims.
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_metorunknown. - Each check of a declaration against a record gives one of three results, with its reasons. An unstated
condition gives
unknown, nevermet, 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.
Links
- Source code on GitHub
- Specification (draft for schema 0.1.0, on GitHub for now)
- JSON Schemas and vocabulary (schema 0.1, in development)
- Contributing
- Licences: code under the Apache License 2.0; the data of the curated library, once released, under CC0 1.0.
