pyMaterial, library for material and failure modeling.
Project description
pyMaterial
A Python library for material and failure modeling.
Use pymaterial
to create your own materials:
from pymaterial.materials import TransverselyIsotropicMaterial
material = TransverselyIsotropicMaterial(
E_l=141000.0, E_t=9340.0, nu_lt=0.35, G_lt=4500.0, density=1.7e-9
)
Add failure criterias
from pymaterial.failure import CuntzeFailure
c_failure = CuntzeFailure()
material.add_failure(c_failure)
or use the material library of pre-exisiting materials
from pymaterial.library import steel
steel.get_failure([256,0.0, 0.0]) # sigma_x, sigma_y, tau_xy
Installation
pip install pymaterial
Development
First make sure you installed everything:
pdm sync
Running Python tests
pdm run pytest --cov pymaterial
TODOs
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
pymaterial-0.1.1.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for pymaterial-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aa4961c84e7c312b7dfe8a78456720860ba2203279ae36cb2f21f100e656bbd |
|
MD5 | be6310aa43e29baa788f6a9ae04f775a |
|
BLAKE2b-256 | ccb11f83863194736a9b3c57bb01db71dbdc43fd36f2a8b116ba8610deb2e6b8 |