Python For Mechanical Engineers I Create Mohr Circle with Python Program.

Published: 13 June 2020
on channel: 3D Technocrafts
9,562
159

In this video we will see how to create mohr circle with python program.
Udemy Course - Python for Mechanical Engineers
Use Python Program to solve problems from Mechanical Engineering Fields
use below link to get 60% off.
https://www.udemy.com/course/python-f...
Whole Syllabus -    • Python For Mechanical Engineers - Complete...  
Alternate Link
https://www.udemy.com/course/python-f...
Support the work on Patreon
patreon link -   / 3dtechnocrafts  
Python Video
Link for python program to create SFD and BMD -    • Python For Mechanical Engineers Series - C...  

ADAMS Video
1. Robot Simulation with ADAMS -    • Robotic System Simulation in MSC ADAMS! Tu...  

2. All Terrain Vehicle Analysis with - ADAMS -    • All Terrain Vehicle Simulation using MSC A...  

3. Excavator Simulation with ADAMS -    • Excavator Simulation using MSC ADAMS/View  

Code


import numpy as np
import matplotlib.pyplot as plt
sigma_x = 100
sigma_y = 20
tau_xy = 50
theta = np.linspace(0,2*np.pi,360)
theta_p = (2*np.pi/180)*20
s1 = 0.5*(sigma_x+sigma_y)+(0.5*(sigma_x-sigma_y)*np.cos(2*theta_p))+(tau_xy*np.sin(2*theta_p))
s2 = 0.5*(sigma_x+sigma_y)-(0.5*(sigma_x-sigma_y)*np.cos(2*theta_p))+(tau_xy*np.sin(2*theta_p))
R = np.sqrt((0.5*(sigma_x-sigma_y))**2+tau_xy**2)
S_avg = (sigma_x+sigma_y)/2

x = S_avg + R*np.cos(theta)
y = R*np.sin(theta)

print(s1,s2)
plt.plot([S_avg-R-10,S_avg+R+10],[0,0],linestyle='--',color='black')
plt.plot([S_avg,S_avg],[-R-10,R+10],linestyle='--',color='black')
plt.plot(x,y)
plt.plot([sigma_x,sigma_y],[-tau_xy,tau_xy],[sigma_x,sigma_x],[-tau_xy,0],[sigma_y,sigma_y],[tau_xy,0],linestyle='--',color='g')
plt.xlabel(r'$\sigma$')
plt.ylabel(r'$\tau$')
plt.title("Mohr's Circle")
plt.show()


On this page of the site you can watch the video online Python For Mechanical Engineers I Create Mohr Circle with Python Program. with a duration of hours minute second in good quality, which was uploaded by the user 3D Technocrafts 13 June 2020, share the link with friends and acquaintances, this video has already been watched 9,562 times on youtube and it was liked by 159 viewers. Enjoy your viewing!