Latest / Mechanical Engineering Made Simple / (#34) Systems Engineering - Defining Requirements.
Transcript
- 0:00Welcome back to Mechanical Engineering Made Simple.
- 0:02Today we're really taking a step back.
- 0:05We're doing a deep dive into the process that, well, kind of runs
- 0:10underneath everything in modern technical design.
- 0:12Yeah, moving beyond just the components themselves.
- 0:14Exactly. We're looking at the, you know,
- 0:16the organizational brain, systems engineering, dynamic
- 0:20modeling, and maybe most importantly, the control systems
- 0:23that make complex machines actually do what we want them
- 0:27to. It's all about managing
- 0:28complexity. That's the goal.
- 0:30We want you to walk away with some quick but really solid
- 0:33knowledge about how engineers get a handle on these massive,
- 0:36intricate projects, how they make sure things actually
- 0:39succeed. And it's interesting how the
- 0:41source material defines systems engineering right off the bat.
- 0:44It's not just equations and diagrams.
- 0:46No. What is this?
- 0:47It's framed as the right mix of mathematical theory, yes, but
- 0:51also behavioral and management ideas all brought together to
- 0:54tackle these big, messy real world problems.
- 0:58See how? Well, problems with large scale,
- 1:00wide scope, and, crucially, involving information that's
- 1:03often incomplete, uncertain, maybe even just plain imperfect.
- 1:07It's about making sense of that. OK, let's unpack this a bit
- 1:10because that sounds huge, like solving global crises.
- 1:14If that's the big picture, what's the actual, like,
- 1:17day-to-day mission for an engineer using systems
- 1:20engineering? Where does it even begin?
- 1:22Right. The functional mission is much
- 1:23more concrete. It's really the art and science
- 1:26of producing something. Could be hardware, could be a
- 1:29service that performs its function, is reliable, high
- 1:32quality, trustworthy. The basics you'd expect.
- 1:35Yes. But here's the kicker.
- 1:37Doing all that within the cost and time constraints you're
- 1:40given, that's critical. Ah, so the perfect machine built
- 1:43too late or too expensively is actually a systems failure.
- 1:47Precisely the process failed, even if the machine itself is
- 1:50brilliant. OK.
- 1:50So thinking about that process, that product life cycle from
- 1:54idea to reality, what are the absolute essential phases we
- 1:57need to understand? You know, real world projects
- 2:00break down to lots of steps, concept planning, detailed
- 2:03design, testing, you name it. But fundamentally it really
- 2:07boils down to three core stages, definition, then development,
- 2:11and finally deployment. That's the basic arc from What
- 2:15do we need to Here it is. Working definition, development,
- 2:19deployment. Got it.
- 2:20And if there's one nugget to really latch onto here, it's
- 2:23this, that first phase, the definition phase, specifically
- 2:27the requirement specification part, that's arguably the most
- 2:31critical step in the entire journey.
- 2:32Why so important? Because its goal is the detailed
- 2:35definition of the needs, the objectives, the things the
- 2:38system absolutely must fulfill. Get that definition wrong or
- 2:42incomplete. And everything that follows is
- 2:44built on a shaky foundation. Exactly.
- 2:46The quality of that requirements definition heavily influences
- 2:49everything downstream. You could have the world's best
- 2:52engineers optimizing perfectly for the wrong goal.
- 2:54That's an expensive way to fail. Makes total sense.
- 2:57Garbage in, garbage out, as they say.
- 2:59So how do engineers actually dig out these requirements,
- 3:03especially when things are complex, when maybe the client
- 3:08isn't even totally sure what they need yet?
- 3:10That happens right at the start in what's called the issue
- 3:12formulation step. It's about defining the problem
- 3:15clearly and also designing the value system, figuring out what
- 3:19the client really values. Is it speed?
- 3:21Cost. Safety.
- 3:23And how do you find that out? The sources give us a few
- 3:25methods. First the obvious one.
- 3:28Just asking. Talking to people.
- 3:31Right, direct declarative approach.
- 3:33If the uncertainty is low, the problem's pretty well
- 3:35understood. You go to the experts, the
- 3:36stakeholders, and you ask them what the system needs to do.
- 3:39OK. Seems straightforward enough.
- 3:40What else? Second method is descriptive
- 3:42identification. This means you study existing
- 3:45similar systems. Very common if you're upgrading
- 3:48something. Like looking at the old version
- 3:49to design the new one. Exactly.
- 3:51But there's a big caution here. This approach often leads to
- 3:54only small, incremental improvements.
- 3:58Why that? Because you risk getting
- 4:00anchored to the old system. You might accidentally carry
- 4:04over its limitations, its bottlenecks, maybe even flaws
- 4:07you didn't realize were there into the new design.
- 4:10So you end up designing a slightly faster horse when maybe
- 4:14you should have been thinking about a car.
- 4:15That's a perfect analogy. You optimize based on
- 4:18yesterday's problems, not tomorrow's needs.
- 4:20OK, so asking descriptive identification, it's the third.
- 4:25Way that's normative synthesis. This one's more forward-looking.
- 4:29It involves studying things like future planning documents,
- 4:31upcoming regulations, industry standards, trying to figure out
- 4:35the desirable objectives for a system that maybe doesn't even
- 4:38exist yet. So trying to anticipate the
- 4:41future needs. Right now, once you start
- 4:43gathering all this stuff, requirements, components,
- 4:46objectives, constraints, it can become overwhelming hundreds of
- 4:50interacting pieces. How do you possibly keep track?
- 4:54Yeah, how do you avoid just drowning in details?
- 4:57You have to impose structure. You need to map out the
- 5:00connections, make the complexity visible.
- 5:02Listing parts isn't enough, you need to see how they influence
- 5:04each other. What tools help with that?
- 5:06Interaction matrices are really powerful.
- 5:08Think of a big grid like a spreadsheet.
- 5:11It lets you systematically map the relationships between
- 5:14elements, maybe objectives versus design alternatives, or
- 5:18subsystem A versus subsystem B. So you can see hit independent.
- 5:22Exactly. Oh, changing this effects that
- 5:25over there. And the other key tool is using
- 5:28trees. Like organizational charts?
- 5:30Sort of their graphical ways to show hierarchy or branching
- 5:34structures. Think work breakdown structures
- 5:36or functional decomposition. Breaking a big function down
- 5:40into smaller and smaller pieces. It just makes the whole thing
- 5:42easier to grasp, easier to communicate which.
- 5:45Is vital for keeping a large team on the same page.
- 5:48Absolutely everyone needs to be building the same thing for the
- 5:50same reasons. OK, requirements are defined,
- 5:52structured. Now this is where, for me at
- 5:55least, it gets really interesting.
- 5:57We move into dynamic modeling, core mechanical engineering
- 6:00stuff. But why bother with abstract
- 6:03math models? Why not just build the thing and
- 6:06test it? Isn't simplifying it with a
- 6:07model like inherently less accurate?
- 6:10Maybe even negligent. That's a fair question, and it
- 6:13gets asked a lot, but the reason for modeling is actually very
- 6:16practical. It comes down to accessibility.
- 6:18Accessibility. Yeah, a mathematical model is
- 6:20just way more accessible than the real physical system.
- 6:24It's much less expensive to create and run.
- 6:26It's faster. It's far easier to modify.
- 6:29Safer to test extreme conditions I imagine.
- 6:31Definitely. You can simulate failures, push
- 6:34boundaries, ask all sorts of what if questions, even about
- 6:37systems that haven't been built yet without breaking expensive
- 6:41hardware or worse, causing accidents.
- 6:44OK, that makes sense from a practical standpoint.
- 6:46And here's a key take away from the sources on this.
- 6:49The best engineering model isn't necessarily the most complex or
- 6:53the most accurate one. Really.
- 6:54Really, the best model is the simplest model that gives you
- 6:58the information you need to make a specific decision.
- 7:01So it's about fit for purpose, not absolute fidelity.
- 7:04Exactly. If a quick back of the envelope
- 7:07calculation tells you design A is better than design B, and a
- 7:10super complex week long simulation tells you the same
- 7:13thing, you probably wasted a lot of time and effort on the
- 7:16complex model for that particular decision.
- 7:20It's always a trade off, fidelity versus the effort
- 7:22needed. That really changes how you
- 7:24think about modeling. It's a tool for decision making,
- 7:27not just description. So when we build these dynamic
- 7:30models, say for a suspension system or an electric circuit or
- 7:33a fluid flow, is there a unified way to approach it?
- 7:36Yes, and that's one of the really elegant things here.
- 7:39The unified approach uses what are called ideal elements, and
- 7:42these are all based on the concept of energy.
- 7:43Energy flow and storage. Precisely, to model energy
- 7:47properly, you need a pair of related variables.
- 7:50The source material calls them a through variable and an across
- 7:53variable. OK, explain those.
- 7:54Think about electricity. The through variable is the
- 7:57current, how much charge flows through a point per second.
- 8:00The across variable is the voltage, the potential
- 8:02difference across 2 points that drives the current.
- 8:05You need both flow and potential for power.
- 8:08Like force and velocity in mechanics or flow rate and
- 8:11pressure in fluids. Exactly forces through velocity
- 8:15differences across. Flow rate is through pressure
- 8:17differences across. It's the same fundamental
- 8:19pairing. And what do these ideal elements
- 8:22represent? They do one of two things, they
- 8:24either store energy or they dissipate it.
- 8:27Energy storage elements are called T type or a type.
- 8:31Think springs. Storing potential energy depends
- 8:34on displacement of a cross variable or masses.
- 8:37Storing kinetic energy depends on velocity a through variable.
- 8:41And dissipation. Those are D type elements,
- 8:44dampers and mechanical systems, resistors and electrical
- 8:46systems. They turn useful energy into
- 8:48heat, basically. OK, so we have these building
- 8:50blocks. How do we connect them?
- 8:52Using system relations, which are just the interconnection
- 8:55laws, there are two kinds. Continuity relations apply to
- 8:58those through variables. They ensure things like dynamic
- 9:01equilibrium, Newton's laws, Kirchhoff's current law, sum of
- 9:05flows into a junction is 0. Makes sense.
- 9:08And the other kind. Compatibility relations.
- 9:11These apply to the across variables.
- 9:13They usually represent geometrical constraints or
- 9:15things like Kirchhoff's voltage law.
- 9:18The sum of voltage drops around a loop is 0.
- 9:20And the beauty of this? Yeah.
- 9:22Why is this unified approach so powerful?
- 9:26This is the really cool part when you find different physical
- 9:29systems, one mechanical, one electrical, maybe 1 fluidic,
- 9:33that end up having the exact same generalized mathematical
- 9:36model using these elements and relations.
- 9:39They're called analogs. Meaning the math sees them as
- 9:42identical. Fundamentally, yes.
- 9:44The math is telling you that, say, a simple spring mass damper
- 9:47system behaves exactly like an electrical RLC circuit.
- 9:51The underlying dynamics are the same.
- 9:53Wow. And this is incredibly useful,
- 9:55especially for modern systems that are often hybrids.
- 9:57Part mechanical, part electrical, maybe with fluid or
- 10:00thermal elements too. This unified modeling lets you
- 10:03handle the whole thing consistently.
- 10:05It's a powerful concept. OK, so we have this elegant,
- 10:08hopefully simplified model. The next logical step is
- 10:11control, making the system do what we want.
- 10:14What's the standard setup for a control system?
- 10:16The classic structure, the one you see everywhere from
- 10:19thermostats to cruise control to industrial robots, is the
- 10:23feedback control loop. Feedback OK components.
- 10:26You start with a command that's the desired value, what you want
- 10:29the system to achieve. Then you need an error detector.
- 10:32This compares the command to the actual measured output of the
- 10:37system. The difference is the error.
- 10:39Right, that error signal feeds into the controller.
- 10:42This is the brain, the logic element containing the control
- 10:45algorithm. The controller calculates a
- 10:47control signal, sends it to an actuator.
- 10:49That's the muscle, like a motor or a valve.
- 10:52The thing that actually affects the system.
- 10:54Exactly. The actuator acts on the plant,
- 10:56which is just the term for the system you're trying to control,
- 10:59and then, crucially, you measure the plant's output and feed it
- 11:03back to the error detector, closing a loop.
- 11:05So the goal is always to drive that error signal towards 0.
- 11:09That's the fundamental job of the controller, yeah.
- 11:11Keep the output close to the command.
- 11:13Let's focus on that controller logic, the algorithm we hear PID
- 11:17mentioned all the time. Why is PID control so dominant
- 11:21and what are you trying to achieve when you design one?
- 11:24PID, Proportional Integral derivative.
- 11:26It's just ubiquitous. It's popular because it tackles
- 11:29the main control objectives pretty effectively and
- 11:32intuitively, which are typically you have three main goals.
- 11:35First, minimize the steady state error.
- 11:38You want the system to eventually settle exactly at the
- 11:41target value. Second, minimize the settling
- 11:44time. How quickly does it get there?
- 11:45And 3rd, minimize overshoot. You don't want it to swing
- 11:49wildly past the target before settling down.
- 11:52And each letter and PID addresses one of these.
- 11:54Broadly speaking, yes. The proportional P term gives
- 11:57you a basic response proportional to the current
- 12:00error. The integral action is the key
- 12:02for eliminating that steady state error.
- 12:04It keeps accumulating the error over time, providing an
- 12:07automatic reset that pushes the system until the error is truly
- 12:100. And the derivative.
- 12:12Primitive D action provides damping.
- 12:14It looks at the rate of change of the error, so it anticipates
- 12:17future error, helping to handle sudden changes or oscillations.
- 12:21Often this is done using a velocity feedback, like
- 12:24measuring motor speed with a tachometer.
- 12:26OK, PID seems straightforward, but you mentioned the integral
- 12:30term. The sources flag a specific
- 12:33problem with it. Reset windup or integrator
- 12:36buildup. What's that about?
- 12:38Sounds painful. It can be a real pain point.
- 12:40Yeah, reset wind up happens when your actuator, the motor, the
- 12:44valve, whatever heads its physical limit, it gets
- 12:47saturated. Like telling a motor to go
- 12:49faster than it physically can. Exactly.
- 12:51Imagine commanding 120% power. When it maxes out at 100%, the
- 12:55error signal command minus actual is still there, telling
- 12:57the controller we're not there yet.
- 12:59So the interval term whose job it is to accumulate error, it
- 13:03just keeps accumulating. It winds up demanding more and
- 13:06more control effort that the actuator simply cannot deliver.
- 13:09Oh, what happens then? Well, while the actuator is
- 13:12saturated, nothing much changes. But later, when the system
- 13:15conditions change, maybe the command drops or the disturbance
- 13:18goes away and the system can start responding again.
- 13:21You've got this huge stored up value in the integrator.
- 13:25Like a tightly wound spring. Good analogy.
- 13:28That wound U value has to unwind and it forces the actuator to
- 13:32keep ushing hard even when it shouldn't.
- 13:35The result is usually a massive undesirable overshoot of the
- 13:38target value before things finally settle down.
- 13:42It really messes up the performance.
- 13:43So. Managing that windup is a key
- 13:45design challenge for controllers with integral action.
- 13:48Absolutely. You often need specific anti
- 13:51windup logic to prevent the integrator from accumulating
- 13:54excessively when the actuator is saturated.
- 13:57OK. Moving beyond PID, you mentioned
- 13:59the world's gone digital. How is digital control change
- 14:02things, especially for more complex systems?
- 14:04Digital control just offers so much more flexibility and power.
- 14:07You can implement much more complex algorithms, and
- 14:10importantly, you can often handle system nonlinearities
- 14:12more directly. Nonlinearities like things that
- 14:15don't behave in a simple proportional way.
- 14:17Right friction, changing inertia, aerodynamic drag.
- 14:21Lots of real world systems are nonlinear.
- 14:24Great example of using digital control to tackle this is the
- 14:26computed torque method often used in robotics.
- 14:29How does that work? Well, a robot arms dynamics are
- 14:32highly nonlinear. It's inertia, the effect of
- 14:35gravity on it, it all changes drastically depending on the
- 14:38arm's position and speed. It's complex I can imagine.
- 14:41So the computed torque method uses the robots dynamic model
- 14:45inside the controller in real time.
- 14:47It calculates the expected non linear torques, especially those
- 14:50due to gravity and Coriolis effects, and then it actively
- 14:53cancels them out by adding opposing torques through the
- 14:56motors. So it computationally removes
- 14:58the non linearity. Essentially, yes.
- 15:00It linearizes the system on the fly.
- 15:02What's left is a much simpler, effectively linear system which
- 15:05can then be controlled very easily and accurately using a
- 15:08standard linear controller like APID.
- 15:11It's a clever way to use computing power to simplify the
- 15:13control problem. That's fascinating, using the
- 15:16model to actively fight the complexity.
- 15:19OK, so we've designed the system, modeled it, created this
- 15:23brilliant controller, but it all relies on measurement, right?
- 15:26We have to know what the system is actually doing, and
- 15:29measurements aren't perfect. Let's clarify what's the real
- 15:32difference between accuracy and precision?
- 15:34People mix those up. They do.
- 15:36They're related, but distinct accuracy is about how close your
- 15:40measurement reading is to the actual true value of whatever
- 15:44you're measuring, like. Hitting the bullseye on a
- 15:45target. Exactly.
- 15:47Precision, on the other hand, is about repeatability.
- 15:50It's the degree to which multiple readings agree with
- 15:53each other. Like all your shots landing very
- 15:55close together, even if they're not near the bullseye.
- 15:57Perfect. So you can have high precision
- 16:00but low accuracy. All your measurements are
- 16:02tightly clustered, but they're all wrong by the same amount.
- 16:05And high precision doesn't automatically mean you're
- 16:07accurate. Not at all.
- 16:09To get accuracy, you need proper calibration against a known
- 16:13trusted standard. Something priceable back to a
- 16:15national standard, like NIST in the US.
- 16:18Right. And another measurement issue is
- 16:20when the act of measuring changes the thing you're
- 16:23measuring. The source calls this loading.
- 16:27Can you give us an intuitive feel for that?
- 16:28Sure. Imagine you have a tiny cup of
- 16:30very hot coffee and you want to measure its temperature if you
- 16:33stick a big cold metal thermometer into it.
- 16:36The thermometer itself will cool the coffee down.
- 16:38Exactly. The thermometer draws heat out
- 16:42of the coffee, so the temperature you read is lower
- 16:44than the coffee's original temperature.
- 16:46The measuring instrument has loaded the system, altering the
- 16:50quantity it was trying to measure.
- 16:52How do engineers think about this technically?
- 16:54It's often framed using impedance concepts.
- 16:57Impedance is like a generalized resistance to effort.
- 17:01The key idea is if you're measuring an effort variable
- 17:04like voltage, pressure, or force, the input impedance of
- 17:08your measuring instrument needs to be much, much higher than the
- 17:11output impedance of the thing you're measuring.
- 17:13High input impedance for the meter?
- 17:14No way. Think of voltage.
- 17:16An ideal voltmeter has infinite resistance impedance.
- 17:19You connect it across 2 points. If it had low resistance, it
- 17:23would draw significant current, changing the voltages in the
- 17:26circuit you're trying to measure.
- 17:27By having very high impedance, it draws almost no current, so
- 17:31it doesn't disturb the circuit voltage as much.
- 17:33The measure value depends on the ratio of those impedances.
- 17:37How does that translate to mechanical systems, say,
- 17:40measuring force? Well, in mechanics, the
- 17:44analogous concept to impedance for static measurements is often
- 17:47stiffness. Imagine using a load cell, which
- 17:50is essentially A calibrated spring with stiffness to measure
- 17:53the force in a structure. OK.
- 17:55If the structure itself is very flexible, meaning it has a low
- 17:58output stiffness, and your load cell is relatively stiff,
- 18:02inserting the load cell actually changes how the structure
- 18:05deforms under load. Because you've added another
- 18:07spring in series, essentially. Yeah, precisely.
- 18:10Which means the force indicated by the load cell might not be
- 18:13the same as the force that would have been there without the load
- 18:15cell. To avoid this loading effect
- 18:18when measuring force, your load cell needs to be significantly
- 18:21sniffer than the system it's placed in.
- 18:23Its impedance needs to be high relative to the system's output
- 18:27impedance. So the instrument shouldn't
- 18:29significantly alter the system's behavior.
- 18:31Makes sense. OK, OK, last piece, error
- 18:34analysis. We know measurements have
- 18:37errors. How do engineers figure out
- 18:39which measurements they need to be most careful about where to
- 18:42focus their effort? This comes down to understanding
- 18:44air propagation, how small uncertainties in your individual
- 18:48measurements combine to create uncertainty in your final
- 18:51calculated result. Got an example?
- 18:52The classic one is measuring the acceleration due to gravity
- 18:55dollars using a simple pendulum. The basic physics tells us the
- 18:59dollars is proportional to the pendulum's length divided by the
- 19:02square of its period. 2 dollars, 222 so dollar and propto LT22.
- 19:05OK, measure length, measure time period.
- 19:07Right now, suppose you can measure the length dollars with
- 19:10some probable error and the period dollars with some
- 19:12probable error. How do these errors combine to
- 19:15infect the error in your calculated dollars?
- 19:18Let's call it Ed. The formula for the probable
- 19:22error using standard propagation of uncertainty methods shows
- 19:26that Ed is roughly proportional to the square root of EE dollars
- 19:29plus two ET $2.00. Wait, there's a $2.00 in front
- 19:33of the time error? Yes, and notice the errors are
- 19:36squared. That factor of 2 comes from the
- 19:38fact that $2.00 is squared in the formula for $2.00.
- 19:40When you square that term to ETO dollars, you get $4.00 ET $2.00.
- 19:45So the error in the time measurement contributes 4 times
- 19:48as much to the final error variance as the error in the
- 19:51length measurement. Exactly.
- 19:52That's the crucial insight, because the period dollars is
- 19:54squared in the physics equation, uncertainty in measuring dollars
- 19:58has a much larger impact on the final uncertainty in dollars
- 20:01than the uncertainty in measuring dollars.
- 20:03So if you want to improve your measurement of dealers, you
- 20:04should just spend way more effort getting a precise
- 20:06measurement of the time period than the length.
- 20:09Absolutely. That's where you'll get the most
- 20:11bang for your buck in reducing the overall uncertainty.
- 20:14You focus your precision efforts on the most sensitive
- 20:16parameters, the ones with the highest exponents or largest
- 20:20influence in your calculation. That's a really practical take
- 20:23away. Yeah, OK.
- 20:24This has been quite a journey. We've gone all the way from the
- 20:27high level need for systems thinking and getting
- 20:30requirements right. Down through the elegance of
- 20:32unified modeling using those ideal elements and analogies.
- 20:36Then into the practicalities of control, PID, its strengths,
- 20:41pitfalls like reset wind up, and even advanced techniques like
- 20:44computed torque. And finally, landing on the hard
- 20:46reality of measurement accuracy versus precision loading
- 20:50effects, and crucially, how error analysis tells us where to
- 20:53focus our efforts. It really paints a picture of
- 20:55the whole systematic framework engineers used to tackle
- 20:58complexity and actually deliver working systems.
- 21:02And maybe one final thought, underpinning all this structure,
- 21:04all this math, we have to remember the human element.
- 21:08The source material actually points this out.
- 21:10How so? It mentions common human
- 21:12cognitive biases, things like availability bias, over relying
- 21:16on recent info, anchoring like we discussed with requirements,
- 21:20selective perception, confusing facts with values.
- 21:23These biases can easily lead to flawed judgments, even with
- 21:26smart people. So the systems engineering
- 21:28process itself helps counteract. That That's the idea.
- 21:32By demanding an explicit, structured, iterative process,
- 21:35defining requirements clearly, modeling assumptions, analyzing
- 21:38trade-offs, checking results, systems engineering provides A
- 21:41framework to help detect and correct these potential human
- 21:44errors. It pushes us beyond what unaided
- 21:47intuition alone can achieve, improving the quality of both
- 21:50the design and the decisions made along the way.
- 21:52A structured way to keep ourselves honest, basically.
- 21:55Great final point, keep your Nets torqued and spring hard
- 21:57design junkies.