# what are the partial differential equations for shear and bending moment diagrams?

by alpha754293
Tags: bending, diagrams, differential, equations, moment, partial, shear
 P: 20 I'm trying to write a very simple program to generate shear and bending moment diagrams for beams. The thing is that I don't know what kind of loading that the beam may see so I want to be able to write it as generically as possible. I'm trying to find a web resource (not a book, unless it's an ebook or PDF) for the differential equations or for hints on how I can derive it from first principles. (I'm guessing that it has something to do with Newton's Second Law of Motion?) If anybody can help point me in the right direction, that would be greatly appreciated. Just googling "partial differential equations solid mechanics" brings up a lot of links ABOUT PDEs in solid mechanics but not the equations themselves (whereas I'm actually looking for the PDEs). Thanks.
 HW Helper Thanks P: 4,309 Shear force and bending moment in prismatic beams are generally governed by ordinary differential equations, rather than PDEs. Try googling Euler-Bernoulli beam, or bending of beams. In a nutshell: if y = deflection, theta = slope, M = moment, and V = shear, and the beam runs along the x-axis, then dy/dx = theta d(theta)/dx = M/EI, where E is Young's modulus, I = 2nd moment of area of the beam cross-section. dM/dx = V dV/dx = load on the beam.
 P: 20 Thanks.
P: 5,462

## what are the partial differential equations for shear and bending moment diagrams?

There are no simple equations that hold for the length of a beam.

You either have to

1) Solve a set of ordinary differential equations, set up for different portions of the beam.

2) Use the impulse function, otherwise known as macaulay's method or macaulay's brackets.

The second programs well in a computer and does provide a single equation to work on.

Google will find plenty on this.
P: 20
 Quote by Studiot There are no simple equations that hold for the length of a beam. You either have to 1) Solve a set of ordinary differential equations, set up for different portions of the beam. 2) Use the impulse function, otherwise known as macaulay's method or macaulay's brackets. The second programs well in a computer and does provide a single equation to work on. Google will find plenty on this.
Yea...I started doing research into that, but from the looks of it; you might have to know some stuff about the possible loading conditions so that the singularity functions can be programmed in.

The thing is that I don't know what kind of loading conditions (on the beam) will be thrown at me, so the debate now is whether I want to go with the singularity function or effectively end up (accidently) writing a FEA code that might be discretized in both time and space.

(and then trying to figure out how I want to do the spatial discretization)

(it's for a class that I am taking AT work...)
 P: 5,462 Macaulay was designed to make things easy. It has been discussed many times at PF for example.
P: 20
 Quote by Studiot Macaulay was designed to make things easy. It has been discussed many times at PF for example.
Yes, but how would you code it up if you don't know what kind of loading conditions it's going to be?

what happens say...for the distributed loading if it wasn't a constant value but rather some function of x?

Or that you can pretty much have anything under the sun in terms of the shape and size of beam, where the loading might occur, supports, multiple supports.

It's a free-for-all smorgasbord where anything goes (in nearly any combination).

And the code should be flexible enough that no matter what you throw at it - it should be able to handle it. (And that it'll actually come up with the singularity function formulation by itself and solve it by itself based on the inputs that you're feeding it (forces, supports, and positions of both).)

So, if you to write it for the generic case (no case structure); how would you go about doing that?

(I didn't think you could unless you basically start coding up "element types" which dictate the formulation for the different singularity functions, but please correct me if I'm wrong in my way of thinking about this problem.)
P: 5,462
 I'm trying to write a very simple program to generate shear and bending moment diagrams for beams.

The example I showed used specific figures.

Create a variable for each one and use symbolic calculation.

Standard cases might be point load, constantDL, triangularDL, parabolic DL and so on.

You have to do this to tell the program about the geometry in any case.

I also think you are being too ambitious if you think you can create a simple but all singing all dancing beam program.

You would effectively be coding up KleinLogel, Pilkey or Roark.

You will probably find some code segments in

Numerical Recipes

Press, Flannery, Teukolsky and Vetterling

Cambridge University Press
P: 20
 Quote by Studiot The example I showed used specific figures. Create a variable for each one and use symbolic calculation. Standard cases might be point load, constantDL, triangularDL, parabolic DL and so on. You have to do this to tell the program about the geometry in any case. I also think you are being too ambitious if you think you can create a simple but all singing all dancing beam program. You would effectively be coding up KleinLogel, Pilkey or RoarK. You will probably find some code segments in Numerical Recipes Press, Flannery, Teukolsky and Vetterling Cambridge University Press
Yea...that's why I am trying to do some background research on this before I just dive right into it.

Like I said, I think that if I want my program to do what I am hoping for it to do - it'll end up being an FEA code (almost entirely by accident).

"Accident" being that I didn't really set out to write a FEA code, but because I don't know what kind of loadings and supports that I might get, it ends up being one in order for it to be the most general/generic case.

*sigh*...thanks for the help though guys.
 HW Helper Thanks P: 4,309 If you don't know what kind of loads the beam will have, then your code must include sections which handle each type of load. For most beam loadings, the following are generally encountered: 1. concentrated point load at a given location. 2. concentrated moment at a given location. 3. constant distributed load over a given portion of the beam. 4. distributed load with a linearly varying load distribution (triangular distribution). Other types of loading (e.g., parabolic distribution, etc.) can be derived, but they are somewhat less common.
P: 20
 Quote by SteamKing If you don't know what kind of loads the beam will have, then your code must include sections which handle each type of load. For most beam loadings, the following are generally encountered: 1. concentrated point load at a given location. 2. concentrated moment at a given location. 3. constant distributed load over a given portion of the beam. 4. distributed load with a linearly varying load distribution (triangular distribution). Other types of loading (e.g., parabolic distribution, etc.) can be derived, but they are somewhat less common.
Well...ultimately this "beam program" is going to be used somewhat to do simple (early) analysis of truck frames. We're simplifying it down to a beam problem, but the actual frame rails aren't technically/strictly beams.

(That's the reason why I need it to be able to handle a wide variety of loading conditions beacuse of the final application of the program.)

And by building in all of these flexibilities into the code, then yes, it would run slower than if it was just the straight singularity functions, but I can do it for any ladder-frame based vehicle basically. (SUVs, crossovers, pickup trucks, any-duty trucks (light, medium, heavy), and some military vehicles too.)
 P: 5,462 Stream King's list still will still be far from comprehensive since the beam may be loaded eccencentrically, or at some other angle to transversally or in torsion. Further you must consider fixity conditions at the supports. FE will not help directly with any of this unless you are prepared to vary your approximating functions. Edit : Torsion is highly significant with ladder frames.
P: 20
 Quote by Studiot Stream King's list still will still be far from comprehensive since the beam may be loaded eccencentrically, or at some other angle to transversally or in torsion. Further you must consider fixity conditions at the supports.
Yea...I know...hence why I was looking for the ODEs so that I would be able to solve this as a IVP/BVP.
 P: 5,462 You may be able to achieve something useful with a parametric drawing program such as DesignView, Imagination Engineer (came with MathCad once) or other.
 P: 20 Thanks.

 Related Discussions Engineering, Comp Sci, & Technology Homework 2 Engineering, Comp Sci, & Technology Homework 10 Engineering, Comp Sci, & Technology Homework 1 Engineering, Comp Sci, & Technology Homework 5 Advanced Physics Homework 1