Skip to main content

spacemat

Python tools for spaceflight materials selection.

The package bundles a snapshot of the NASA GSFC outgassing database (all 13,582 ASTM E595 test entries as of the retrieval date, fetched from outgassing.nasa.gov) so it can be queried offline, plus cryogenic property curves for the alloys and insulators commonly used in cryo tank and instrument work.

pip install -e .
spacemat summary "scotchweld 2216"
64 test(s) matching 'scotchweld 2216': 18 pass, 46 fail, 0 incomplete
TML  min 0.10  median 1.10  max 2.85
CVCM min 0.00  median 0.03  max 1.50

Keeping the per-test history matters: EC-2216 is usually quoted as passing E595, but across 64 tests it failed 46 times depending on lot and cure schedule. Single quoted values hide this spread.

Outgassing database

Each entry has material, manufacturer, TML, CVCM, WVR, application, cure schedule, data reference, and year. NASA data is a US Government work and may be redistributed. python scripts/fetch_nasa_outgassing.py rebuilds the snapshot from the live site.

from spacemat import outgassing

outgassing.search("RTV 566")
outgassing.screen(tml_max=1.0, cvcm_max=0.1, contains="epoxy")
outgassing.summarize("braycote")
outgassing.snapshot_info()

The same things from the shell:

spacemat search "rtv 566"
spacemat screen --tml 1.0 --cvcm 0.1 --application adhesive --csv passing.csv
spacemat info

Numeric screens drop entries with missing values, so a screen result means tested and passed, not no data found.

Cryogenic property curves

Thermal conductivity, specific heat, thermal contraction, and Young's modulus are evaluated from the curve-fit equations NIST publishes for cryogenic materials, using NIST's own coefficients (scripts/fetch_nist_fits.py parses them off the NIST pages). Materials covered this way: 304L, 316, 6061-T6, Inconel 718, Ti-6Al-4V, Invar 36, PTFE, polyimide, and G-10, most over 4 to 300 K.

NIST does not publish strength fits, so the yield and ultimate curves are typical values from the open literature, with a source string on each entry. They are suitable for trade studies, not design allowables. The same applies to 301 cold rolled and Al-Li 2195 in general, which NIST does not cover.

Queries outside a curve's measured range return None; the thermal tools raise. Cryogenic data is never extrapolated.

from spacemat import screen, TML, CVCM, YIELD_STRENGTH, CONTRACTION, K

screen(TML < 1.0, CVCM < 0.1, YIELD_STRENGTH > 1000, T_service=90*K)
screen(CONTRACTION < 0.3, T_service=77*K)

Thermal tools

Heat leak through a support depends on the integral of k dT across the temperature span. The integral is computed exactly for point curves and numerically for the NIST fits:

from spacemat import K
from spacemat.thermal import heat_leak, contraction_mismatch

heat_leak("G-10", area_m2=1.1e-4, length_m=0.3, T_cold=90*K, T_hot=295*K)
contraction_mismatch("PTFE", "304L", 77*K)   # differential strain, percent

examples/strut_heat_leak.py contains a worked strut-sizing example.

Compliance reports

spacemat report 304L "RTV 566" "Vespel SP-1" --temp 90 -o compliance.md

Generates a Markdown report with E595 pass/fail, flammability flags, and properties at the service temperature. Non-metals are also checked against the bundled NASA database, reporting the number of upstream tests and their TML/CVCM spread. Materials that exceed the TML limit only because of absorbed water (TML minus WVR under the limit) are marked CONDITIONAL, since these are normally accepted after bakeout.

examples/vet_bom.py runs the same check over a bill of materials.

Other utilities

  • compare(["304L", "Al-Li 2195"], T_service=90*K) prints a trade table
  • ashby_plot(DENSITY, YIELD_STRENGTH, T_service=90*K) scatter plots, requires pip install spacemat[plot]
  • spacemat.export flattens materials and database entries to CSV or dict records for pandas
  • The test suite enforces that every data value carries a source string

Development

pip install -e .[dev]
pytest

MIT licensed. Data contributions must include a source.

Metadata

Release files for spacemat 0.3.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 spacemat 0.3.0
File Size Uploaded
spacemat-0.3.0.tar.gz 427.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spacemat 0.3.0
File Interpreter ABI Platform
spacemat-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 850.7 kB

Release files / spacemat-0.3.0.tar.gz

Download URL spacemat-0.3.0.tar.gz
Size 427.5 kB
Tags Source
SHA-256 checksum
How to use checksums
46c91785783852e2a1f5e3dcd36c191203870dba3fa1d4ad68fd4c7594ba925e
BLAKE2b-256 checksum
How to use checksums
64c6a15aee036aa40d1458bbafa11d4ac4c9ddc3fea790d0e0820af0a1ea54bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 11, 2026.

Transparency log

Release files / spacemat-0.3.0-py3-none-any.whl

Download URL spacemat-0.3.0-py3-none-any.whl
Size 423.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4dbe334ab10906200ace23c9d73583414fd356dd6ee198d6cb5f912abb8851c7
BLAKE2b-256 checksum
How to use checksums
3673e078f8f7c8030fede00211e6846987260f2eb4546deb6817db94c7ab7ce3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

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