Skip to main content

pyMaterial, library for material and failure modeling.

Project description

pyMaterial

Python package pdm-managed pre-commit codecov


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.7.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

pymaterial-0.1.7-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file pymaterial-0.1.7.tar.gz.

File metadata

  • Download URL: pymaterial-0.1.7.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pymaterial-0.1.7.tar.gz
Algorithm Hash digest
SHA256 848ca81c9edead400aa37842cb78e4ff6074e475522c0a3babac420a9b111da8
MD5 a5f210441ef346fc90927a13713059cd
BLAKE2b-256 f28ac712edbb48c070a0441e8c74d45228b2e831e8f8c71a3ab268b8aa222523

See more details on using hashes here.

File details

Details for the file pymaterial-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: pymaterial-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pymaterial-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 16eed4b7d45cca37ab65016c6d4108985cca6eb799615396a25c31ea40f072ca
MD5 b9419cc328c9a3eebd487c64a2880f8b
BLAKE2b-256 e00bc3d5522183fc3aa91f5f1697a3c5e931598ac6ef6c96789b7cf3ec0c544a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page