Building a Mohr’s Circle Calculator for Stress Analysis in Python

Building a Mohr’s Circle Calculator for Stress Analysis in Python

Perform 2D stress analysis and use Mohr’s Circle to visualise the complete stress field

⏰ 3 h 34 min | 9 lessons
Published: July 2021
4.61
After completing this course, you will...
have a complete understanding of 2D stress analysis
understand how to use Mohr’s circle to evaluate the state of 2D stress at a point in a structure
understand how to implement and automate your calculations in Python
be comfortable building data visualisations using the plotting library Matplotlib
PROJECT OVERVIEW

In this Python project we’re going to build a Mohr’s Circle calculator. By the end of this project, you will have built your own stress analysis Python code. You’ll also have enough knowledge to expand and personalise your code to your own needs. Along the way we’ll cover all of the fundamental topics that lead up to Mohr’s circle of stress. You will learn about:

  • how we use the 2D stress element to represent the state of stress at a point
  • the purpose of stress transformation equations
  • principal stresses and principal planes
  • planes of maximum shear stress
  • and of course Mohr’s circle!

You don’t need to be a Python programmer to work through this project!

We’ll be using the Jupyter Notebook development environment to write our Python code. If you’re new to Jupyter Notebooks (or Python) and need a little help getting up and running – check out this lecture (part of another course but covers what you need to get up and running).

If you’re new to Python, don’t let it intimidate you! Once you get comfortable with the basics – it will unlock so many doors in your day-to-day work as a student or engineer.

Section 1
Building a Mohr’s Circle Calculator
1. Understanding the 2D stress element
25:13
2. The stress transformation equations
23:25
3. Visualising transformation equations
30:59
4. Principal stresses and principal planes
28:32
5. Finding maximum shear stresses
25:21
6. 2D stress analysis worked example
15:40
7. Stress analysis Python worked example
21:35
8. Understanding Mohr's circle of stress
16:51
9. Mohr's circle worked example in Python 📂
26:29
getting-started
Dr Seán Carroll
BEng (Hons), MSc, PhD, CEng MIEI, FHEA
Hi, I’m Seán, the founder of EngineeringSkills.com (formerly DegreeTutors.com). I hope you found this tutorial helpful. After spending 10 years as a university lecturer in structural engineering, I started this site to help more people understand engineering and get as much enjoyment from studying it as I do. Feel free to get in touch or follow me on any of the social accounts.

Do you have some knowledge or expertise you'd like to share with the EngineeringSkills community?
Check out our guest writer programme - we pay for every article we publish.
TRY THIS NEXT
Finite Element Analysis of Continuum Structures in Python
Finite Element Analysis of Continuum Structures in Python
Use the Isoparametric Finite Element Method to build an analysis tool for 2D structures in Python.