Skip to main content
New · Free engineering tools Spring calculator and shaft power drive sizing. Animated, with charts and PDF export. Open tools →

Why I Wrote The Sheet Mechanic (And Why Calculations Aren’t Enough)

For engineers who already know the math—but still lose projects. For the last few years, I’ve been sharing technical guides here on Mechanical Design Handbook —how to size a motor, how to calculate fits, and (as you recently read) how to choose between timing belts and ball screws. But after 25 years in industrial automation, I realized something uncomfortable: Projects rarely fail because the math was wrong. They fail because: The client changed the scope three times in one week. A critical vendor lied about a shipping date (and no one verified it). The installation technician couldn’t fit a wrench into the gap we designed. University taught us the physics. It didn’t teach us the reality. That gap is why I wrote my new book, The Sheet Mechanic . This is not a textbook. It is a field manual for the messy, political, and chaotic space between the CAD model and the factory floor. It captures the systems I’ve used to survive industrial projec...

Stop trying to be a hero. Start being a mechanic.

Get the book →

The Sheet Mechanic on Amazon. Affiliate link, I earn from qualifying purchases.

Gauss Elimination: Dynamic N x N Scaling (Part 5)


Figure 1: Visualizing dynamic matrix scaling for large engineering systems.

Scaling Up: Handling N x N Systems

In Part 4, we looked at the basic user interface. But engineering problems aren't fixed at 3x3. A truss analysis might need 10 equations; a thermal grid might need 100.

A professional Excel tool must be Dynamic. It should automatically resize the input table based on the user's needs, clearing old data and preparing fresh cells for input.

Advertisement

1. User Input for Dimensions

The process starts with a simple input request. In our design, clicking "Main Menu" > "New Equations" triggers a VBA InputBox or UserForm asking for the number of variables (N).

Figure 2: The user selects "New Equations" from the main menu.

For this example, let's input 10 to simulate a larger structural problem.

Figure 3: Specifying a 10-variable system.

2. Managing Data Integrity

When resizing a matrix, you must decide what to do with old data. Our reference design includes a safety check: "Existing equations will be deleted." This prevents users from mixing data from a 3x3 problem with a new 10x10 grid.

Figure 4: A safety warning prevents accidental data loss.

3. Automating the Resize (VBA Logic)

Behind the scenes, your VBA code needs to do the heavy lifting.

How it works conceptually:

  • Clear Range: The code identifies the old range (e.g., B3:D5) and runs .ClearContents.
  • Redefine Range: Based on the input N=10, the code calculates the new range (B3:K12).
  • Formatting: It applies borders and background colors to the new range so the user knows exactly where to type.
Figure 5: The spreadsheet automatically formats a clean 10x10 input grid.
Advertisement

4. Solving the Large System

Once the data is entered, the Gauss Elimination algorithm we wrote in Part 1 handles the 10x10 matrix just as easily as the 3x3.

Figure 6: Inputting coefficients for a larger system.

Clicking "Solve" populates the 10x1 result vector instantly.

Figure 7: The algorithm computes the 10 unknowns instantly.

5. Verification: The MMULT Function

Trust but verify. A good engineer always checks the results. In Excel, you can use the built-in function =MMULT() to multiply your original [A] matrix by the calculated {X} vector.

If the result matches your original {B} vector, the solution is correct.

Figure 8: Using MMULT to multiply [A]*{X} confirms the solution matches {B}.

Conclusion

By combining robust math (Gauss Elimination) with smart VBA (Dynamic Ranges), you can build powerful engineering tools that rival commercial software.

In the final post, we will share a video demonstration of this tool in action.

Continue to Part 6:
Solving System of Equations using Gauss Elimination Method (Part 6: Video Demo)

Comments

Popular posts from this blog

Dowel Pins & Locating Pins: The Basics of Fixture Design

Dowel pins are precision cylindrical pins used for accurate part alignment in assemblies. They control position, not clamping force. This guide explains tolerances, fits, sizing rules, and design best practices. Figure 1: A typical fixture setup. Notice how dowel pins (silver) provide precise location, while bolts (not shown here) provide the clamping force. In the world of Precision Engineering , the difference between a high-quality product and a scrap part often comes down to microns. While bolts hold parts together, they are terrible at positioning them. This is where Dowel Pins and Locating Pins become essential components in industrial tooling . Advertisement What is a Dowel Pin? Dowel pins are precision-ground fasteners used to secure the relative position of two parts. They are typically machined to extremely tight tolerances (often within 0.0001 inches) and are available in materials like: Hardened Steel: For high-wea...

PLC, Networks and Safety: Controls for Mechanical Engineers

You can design the mechanism . This is the other half of the machine: the sensing, the logic, the wire, and the safety case that decides whether your motion ever runs. If you specify machines, judge quotations, or lead the people who build them, and your training was mechanical, this is the ground you are missing. What follows is the big picture first, then the detail. Where a topic has real depth, it sits behind a deep dive toggle you can open or skip. Every number here is attributed, and where a standard is paywalled or a figure is vendor specific, that is said rather than hidden. What this covers The big picture: one loop, repeated fast Sensing and IO: digital, analog, remote, IO-Link Relays and the PLC: what each is still for Industrial networks: EtherNet/IP, PROFINET, EtherCAT, CC-Link, Modbus Drives and motion: VFD, servo, stepper, electronic cam Machine safety: stop categories, PL and SIL, safety over a network What the specificat...

Gearbox Service Factor: AGMA Class I, II & III Guide

You sized your motor correctly. You calculated your belt tension. Yet, six months later, the gearbox overheats and leaks oil, or the output shaft shears off. Why? The answer is almost always the Service Factor (S.F.) . Selecting a gearbox based solely on motor horsepower is the most common mistake in mechanical design. In this guide, we will break down the AGMA Standards for service factors to ensure your gear reducer survives the real-world shocks of operation. Table of Contents 1. What is Service Factor? 2. AGMA Classes (I, II, III) Explained 3. The Hidden Killer: Thermal Rating 4. Worked Example: Selecting a Gearbox Advertisement 1. What is Service Factor? The Service Factor is a multiplier applied to the motor's power to account for shock loads, continuous operation, and external stresses. The Golden Rule of Selection: Gearbox Mechanical Rating ≥ Motor HP × Service Factor This i...