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.
โ 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
The app computes the stress transformation equations:
It also computes:
- Principal stresses
- Maximum shear stress
- Mohrโs Circle representation
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