Questions and discussion for this lecture live here. Fire away by hitting Reply below
What if I have different types of beams for a frame? I and A are no longer constant. They change as the type of beam changes. How this affect the code?
Hey @Study,
This is actually pretty easy to handle and we do it in some of the courses that follow this one. Basically, you’ll want to generate an array to hold all of the member areas and another array to hold all of the I values. Then, whenever you need the area or moment of inertia (usually while iterating through a loop), you just index into your array for member i
, e.g. A[i]
rather than simply accessing a constant for the area.
Hope that helps.
Seán