Skip to main content

Python library to plot Mohr's circle for visualization and analysis

Project description

MohrCirclePlotter

A Python library to plot Mohr's circle

⚠️ Disclaimer

This software is provided for educational and research purposes only. Results produced by this package should not be used as the sole basis for engineering design decisions without independent verification by a qualified professional engineer.

THE AUTHORS AND CONTRIBUTORS ACCEPT NO LIABILITY for any damages, losses, or consequences arising from the use or misuse of this software. See LICENSE for full terms.

Installation

pip install mohrcircleplotter

Documentation

Mohr's circles are plotted on a matplotlib plot. If these circles are stresses at failure, a Mohr-Coulomb failure envelope can be estimated. More details can be found in https://e-mags.github.io/MohrCirclePlotter/

from mohrcircleplotter import MohrPlot

plot = MohrPlot(halfplot=True,show_tension=True, units='MPa')

# Define some circles (sigma_x, sigma_y, tau_xy)
circles = [
    (80, 30, 30),
    (60, 20, 20),
    (40, 10, 10)
]

for sigma_x, sigma_y, tau_xy in circles:
    plot.oriented_circle(sigma_x, sigma_y, tau_xy)

# Estimate and plot the Mohr-Coulomb failure envelope
plot.estimated_mc_envelope()

Graph showing MC envelope estimated over Mohr's circles

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

mohrcircleplotter-0.0.1.tar.gz (326.3 kB view details)

Uploaded Source

Built Distribution

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

mohrcircleplotter-0.0.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file mohrcircleplotter-0.0.1.tar.gz.

File metadata

  • Download URL: mohrcircleplotter-0.0.1.tar.gz
  • Upload date:
  • Size: 326.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mohrcircleplotter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2ba4d6be41583e8ed1d7495589c964ca98ed162295e3315ae051a66eaa165127
MD5 4cb81c9e5c20a68b117572999e531c40
BLAKE2b-256 afee6ace9804b2d61daf449903cefb74a85e1c3b9d87f2dc7d97285fc370268a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mohrcircleplotter-0.0.1.tar.gz:

Publisher: deploy.yml on e-mags/MohrCirclePlotter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mohrcircleplotter-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mohrcircleplotter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f2ef84bbfb37aa1181ff1b8f78701905bc587f63ddb59ccecea2f005d77ab6c
MD5 68e6a25cdcb87e936da594231c0ee1ba
BLAKE2b-256 70b85519ad68b86edb24dc6499a0ff9305f5c4d400d8cdfc5d29f930f7dc0934

See more details on using hashes here.

Provenance

The following attestation bundles were made for mohrcircleplotter-0.0.1-py3-none-any.whl:

Publisher: deploy.yml on e-mags/MohrCirclePlotter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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