Skip to content

This project aims to automate a time consuming task learnt in the first year of my Aerospace Engineering Degree. This project also provides an opportunity to enhance my learning of programme development using C++ and Git.

Notifications You must be signed in to change notification settings

AlexCrownshaw/ShearForceBendingMomentsCalculator

Repository files navigation

ShearForceBendingMomentsCalculator

Calculates Shear Forces and bending moments along a simply supported two-dimensional beam of any length. The beam is assumed to be in equilibrium. Forces acting on the beam can include any number of single point forces and uniformily distributed loads. The number of supports is currently limited to two. The calculator divides the beam into 100 points and calculates the shear force and bending moment at each point.

Context

This is my first project in my learning of C++ and also my first repository in my learning of git/github. The project aims to automate concepts learnt from my statics module of my first year Aerospace Engineering degree. Any feedback (C++ or git related) is very welcome.

User Inputs

The user will be prompted to enter each component in the following order:

  • Length of beam - Can be entered as an integer or a float in metres.
  • Number of Point Forces
  • Point forces - Each point force should be entered one at a time. Two values are required for each. The first is the Force in Newtons and the second is the distance of the force from the left-hand side of the beam in metres. Each value should be separated with a space.
  • Number of UDL's
  • UDL's - Each UDL should be entered one at a time. Three values are required for each. The first is the distributed force entered in Newtons/Metre. The second is the starting distance of the UDL from the left-hand side of the beam in metres. The third is the end distance of the UDL from the left-hand side of the beam in metres. The Third value must be larger than the second. Each value should be speperated by a space.
  • Distance of Supports - Each distance should be entered one at a time in metres from the left-hand side of the beam.

Example

This example shows how the shear forces and bending moments can be solved for a simply supported beam with two point loads and two uniformily distributed loads. (NOTE: The UDL's are inputted in Newtons, NOT Kilo Newtons).

Beam Word art

This example is inputted as follows:

Input example

The Reaction forces and force summary outputs look like;

Example Reactions and forces

The programme with calculate the shear forces and bending moments at 1000 points on the beam. While it is too long to include the entire calculation, here is a short snippet:

Example Calculations

The Maximum shear force and bending moment acting on the beam is outputted as:

Example Max

Planned features

  • Allow the user to input any number of supports.
  • Produce SF and BM graphs for easy visualisation.
  • Add Triangular distributed load functionality

About

This project aims to automate a time consuming task learnt in the first year of my Aerospace Engineering Degree. This project also provides an opportunity to enhance my learning of programme development using C++ and Git.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages