Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Interactive Stress State Explorer

An interactive visualization tool for plane stress transformation in solid mechanics built with Streamlit, NumPy, and Plotly.

This app lets you explore how stress components change with rotation angle, see principal stresses, and visualize Mohrโ€™s Circle โ€” all in a clean, responsive UI.


๐Ÿ“Œ Features

โœ” Visualizes stress transformation equations
โœ” Shows ฯƒโ‚“', ฯƒแตง', and ฯ„โ‚“แตง' vs rotation angle ฮธ
โœ” Computes principal stresses and max shear
โœ” Plots Mohrโ€™s Circle
โœ” Purple-pink dark theme
โœ” No heavy dependencies


๐ŸŽ“ What It Does

The app computes the stress transformation equations:

๐Ÿ”น Normal Stress on Rotated Face

$$ \sigma_{x'} = \frac{\sigma_x + \sigma_y}{2} + \frac{\sigma_x - \sigma_y}{2}\cos(2\theta) + \tau_{xy}\sin(2\theta) $$

๐Ÿ”น Shear Stress on Rotated Face

$$ \tau_{x'y'} = -\frac{\sigma_x - \sigma_y}{2}\sin(2\theta) + \tau_{xy}\cos(2\theta) $$

It also computes:

  • Principal stresses
  • Maximum shear stress
  • Mohrโ€™s Circle representation

๐Ÿš€ How to Run

Clone the repository:

git clone https://github.com/LASTHALFBLOODPRINCE/Assignments.git
cd Assignments
Install dependencies:

pip install -r requirements.txt
Run the app:

streamlit run app.py
Open your browser to view the interactive UI.

----------------------------------
๐Ÿง  Usage
Use the sidebar sliders to adjust:

ฯƒโ‚“ (normal stress in x direction)

ฯƒแตง (normal stress in y direction)

ฯ„โ‚“แตง (shear stress)

ฮธ (rotation angle)

Real-time plots update to show the resulting stress state.

๐Ÿ›  Built With
Streamlit

NumPy

Plotly

๐Ÿ“Œ Author
Hemant Nagar
Roll No: 2024UCS0093

About

Here is the Deployed link of the application .

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages