Assuming that you have the necessary input data for the beam such as length, the modulus of elasticity, and the moment of inertia, you can calculate the loading function w(x) using the following steps:
main.m23 chars2 lines
where L is the length of the beam and N is the number of points to define along the beam axis.
main.m95 chars3 lines
main.m211 chars8 lines
where E
is the modulus of elasticity, I
is the moment of inertia, h
is the distance from the neutral axis to the top or bottom of the beam, and theta
is the rotation of the beam.
main.m80 chars4 lines
The resulting w
vector gives the deflection of the beam at the specified coordinates x
.
gistlibby LogSnag