Package for handling unit systems and materials
Project description
pyMatUnits - Python Materials and Units handling package
Package for handling units systems and conversion, leveraging the pint package, as well as material property definition for use with in physics-based modeling.
Changelog
v1.2: Encoding improvements, material unit system conversion
to/read_json: allow for saving unit string in JSON files
Material.unit_system can be set, which will convert all quantities
Built-In/Saved Materials and Unit Systems
mat_prop and units modules have builtin_dir and builtin_paths to lead to saved JSON files
Unit Systems
Module name : units
Works on top of the pint package. UnitSystem class allows for
storage of system of units (length, mass, time, etc.), as well as the ability to check for internal
consistency of said system using check_consistency method. Logs consistency issues as well as returning
conversion factors to be used when converting inconsistent units.
Unit systems can be stored or read from JSON file format using .to_json/.read_json, similar to Pandas.
- Main class :
UnitSystem - Unit conversion function :
convert
Materials
Module name : mat_prop
Allows for material definitions, based on those defined in Abaqus. Can create materials in Abaqus CAE or Nastran input file (bdf) if the appropriate dependencies are in place (Abaqus API or Nastran Utils package).
Materials can be stored or read from JSON file format using .to_json/.read_json, similar to Pandas.
Apps
Dash apps (units_app.py and mat_app.py) for creating, reading, or writing unit systems or material
objects.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymatunits-1.2.tar.gz.
File metadata
- Download URL: pymatunits-1.2.tar.gz
- Upload date:
- Size: 31.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86c9f3540bf1c8979c9e6a4b39a14bd85c1fe40128b73838364406b5673847a0
|
|
| MD5 |
ff0ab714f474a2197fda03663516d3a3
|
|
| BLAKE2b-256 |
3477dd19d0d3955387bdbef62891ea0d5d1d2312dede2861509791f1711d5ad8
|
File details
Details for the file pymatunits-1.2-py3-none-any.whl.
File metadata
- Download URL: pymatunits-1.2-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20696a28f5c33987a18f7065bfc93319d0028aacea8171a8a0e1465cfe00094a
|
|
| MD5 |
daa1ec90a41e0b1acbc58362d32e79bf
|
|
| BLAKE2b-256 |
3f540a3ad177fd0e45df03f2860608f70d198be13027223f6397059fe0766c1d
|