Skip to content

tanishk001-ai/engineering-plot-cli

Repository files navigation

Engineering Plot CLI + Structural Visualization

Lightweight Python utilities for scientific and structural engineering visualization using Matplotlib, pandas, and Xarray.

This repository was created as part of the FOSSEE Osdag Semester Internship – Software Development Screening Task.


Features

General plotting (CLI)

  • Read CSV or NetCDF files
  • Line plots
  • Bar charts
  • Heatmaps
  • Save PNG images

Structural visualization (Osdag task specific)

  • Shear Force Diagram (SFD)
  • Bending Moment Diagram (BMD)
  • 3D bridge frame visualization

Installation

pip install pandas matplotlib xarray netcdf4

1️⃣ Generic Plotting Tool

Example (CSV)

python3 tool.py --input sample.csv --plot line --x time --y force --out plot.png

Example (NetCDF)

python3 tool.py --input data.nc --plot heatmap --out heat.png

2️⃣ Structural Task – SFD/BMD (From Xarray dataset)

Extracts:

  • Vy → Shear force
  • Mz → Bending moment
  • for selected girder/element

Usage

python3 sfd_bmd.py --input simulation.nc --element 0 --out girder0

Output

girder0_SFD.png
girder0_BMD.png

3️⃣ Structural Task – 3D Bridge Visualization

Plots:

  • node coordinates
  • element connectivity
  • bridge frame structure

Usage

python3 visualize_3d.py --input simulation.nc --out frame3d.png

Project Structure

tool.py                -> Generic plotting CLI
sfd_bmd.py             -> Shear & Bending moment diagrams
visualize_3d.py        -> 3D structural frame visualization
generate_sample_nc.py  -> Sample NetCDF generator (demo only)
sample.csv             -> Example dataset
requirements.txt       -> Dependencies

Notes

  • Works with any Osdag-generated NetCDF/Xarray dataset
  • Designed to be lightweight and CLI-based
  • No GUI or web framework required

Author

Tanishk Tiwari FOSSEE Osdag Screening Submission – Software Development Track


License

This project is released under the MIT License.

You are free to use, modify, and distribute this software for educational and research purposes. See the LICENSE file for full details.


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages