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.
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.
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.
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).
This example is inputted as follows:
The Reaction forces and force summary outputs look like;
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:
The Maximum shear force and bending moment acting on the beam is outputted as:
- Allow the user to input any number of supports.
- Produce SF and BM graphs for easy visualisation.
- Add Triangular distributed load functionality