Skip to main content

steer-materials

Tests Lint License: AGPL v3 Python 3.10+

Material definitions for the STEER (Storage Technology for Energy and Economic Research) simulation framework. This package provides base classes for representing physical materials — metals, solvents, and other substances — with built-in unit conversion, validation, and cost tracking.

steer-materials is a support package within the broader STEER ecosystem.

Installation

pip install steer-materials

For development:

git clone https://github.com/stanford-developers/steer-materials.git
cd steer-materials
pip install -e ".[dev]"

Quick Start

from steer_materials.Base import Metal, Solvent

# Create a metal material (density in g/cm³, cost in $/kg)
aluminum = Metal(name="Aluminum", density=2.7, specific_cost=2.50, color="silver")
print(aluminum.density)         # 2.7 g/cm³
print(aluminum.specific_cost)   # 2.50 $/kg

# Create a solvent
water = Solvent(name="Water", density=1.0, specific_cost=0.01, color="clear")

Testing

pip install -e ".[test]"
pytest

With coverage:

pytest --cov=steer_materials

Documentation

Full documentation for this package is available at stanford-developers.github.io/steer-materials.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Citation

If you use this software in your research, please cite it using the metadata in CITATION.cff.

License

This project is dual-licensed:

  1. Open sourceGNU Affero General Public License v3.0 (AGPL-3.0-or-later)
  2. Commercial — A separate commercial license is available for use without AGPL-3.0 copyleft requirements. Contact nsiemons@stanford.edu for details.

See LICENSE for full terms.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

steer_materials-0.1.48.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

steer_materials-0.1.48-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file steer_materials-0.1.48.tar.gz.

File metadata

  • Download URL: steer_materials-0.1.48.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.4

File hashes

Hashes for steer_materials-0.1.48.tar.gz
Algorithm Hash digest
SHA256 e9c5a87817e2b44a118c5bc9802d5c1b775569c71a06a1161ce5a1b695d6c7ae
MD5 bfff67cfd2ea18cc8efc9616d9af7fc6
BLAKE2b-256 485a4b6a85b8c750630d96c41221af87906f4cd0223e860722a2e2a7e83626f5

See more details on using hashes here.

File details

Details for the file steer_materials-0.1.48-py3-none-any.whl.

File metadata

File hashes

Hashes for steer_materials-0.1.48-py3-none-any.whl
Algorithm Hash digest
SHA256 d6a61709be876a8fb69260002d69f0edd0923ada6572b90e66ec95e5893e9f44
MD5 91c24afdb6f42e098efaa79922cd3f17
BLAKE2b-256 4971cc004a0157a4861fbed9bdb2c04eee6ccb6f3175acde217093dac13b86e8

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.49

2 files

This release

0.1.48 This release

2 files

0.1.45

2 files

0.1.44

2 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