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()
In questa pagina del sito puoi guardare il video online Python For Mechanical Engineers I Create Mohr Circle with Python Program. della durata di ore minuti seconda in buona qualità , che l'utente ha caricato 3D Technocrafts 13 giugno 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 9,562 volte e gli è piaciuto 159 spettatori. Buona visione!