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.6.tar.gz
(12.8 kB
view hashes)
Built Distribution
pymaterial-0.1.6-py3-none-any.whl
(16.1 kB
view hashes)
Close
Hashes for pymaterial-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4082de5a92ccdffd93c9f0bdf0bac17c3db1b6ff08b6c74bfd889bb00a2cd0c4 |
|
MD5 | c4e228afa2c573e299167a25f6c9d033 |
|
BLAKE2b-256 | 6cb9e635701cc30704343a9eb76d85992302f4e365a4c871bd4ed5f1c89ffb4e |