Gains:
- Ability to divide a strength problem into assumption, free body diagram, formula and unit steps
- Ability to inspect AI's stress/deflection/safety coefficient output with dimensional analysis and orders of magnitude
- Ability to reproduce the calculation by independent method or code and catch the AI's arithmetic and logic errors
Strength (the branch of science that studies how materials strain under load, how much they change shape, and when they are damaged) is the backbone of mechanical engineering. The answers to the questions "Will a shaft break, will a beam deflect too much, will a bolt be stripped?" are here. Artificial intelligence (AI: software that generates text and code by learning from texts) is a powerful aid in breaking down a strength problem into steps, recalling the correct formula, unit conversion, and automating the calculation with Python code. But the AI makes arithmetic errors, chooses the wrong formula, confuses the boundary condition, and most dangerously, presents it in extremely confident language. That is why the golden rule in strength calculation does not change: each output of the AI is inspected by size (unit) analysis, order of magnitude control and reproduction by an independent method. On a safety-critical part, AI output will never replace qualified engineer approval. In this unit you will learn how to safely solve a strength problem with AI.
Breaking a Strength Problem into Steps
The right account starts with the right organization. Put each problem into this framework; Also impose this framework on the AI:
- Assumptions. Is it static or dynamic, is the material linear elastic, is the load point or distributed, what is the beam type (built-in, simply supported)?
- Free body diagram (FBD). Draw all the forces and moments acting on the part and the support reactions. If this step is skipped, the entire account is rotten.
- Balance equations. Find the unknown reactions with ΣF = 0 and ΣM = 0.
- Internal forces. Extract the shear force and bending moment distribution; Determine the most critical section.
- Stress and deflection. Calculate the stress with the relevant formula (e.g. σ = M·c/I for bending) and the corresponding relation for deflection.
- Safety coefficient. SF = material strength / calculated stress. Compare with acceptance criteria by application.
Tip: Before having the AI solve the problem, tell it to "just set up the assumptions and free-body diagram first, don't go into calculations." After verifying the organization together, proceed to the account. Perfect arithmetic based on wrong foundation is perfectly wrong.
Three Layers of Verification
Pass the AI strength output through three independent filters. These capture each other; If one misses, the other catches it.
strainer
What controls
example
Size (unit) analysis
Do both sides of the equation have units?
σ = M·c/I → (N·mm·mm)/mm⁴ = N/mm² = MPa ✓
order of magnitude
Is the result physically reasonable?
The tension of the handpiece should not exceed GPa
Independent reproduction
Do different methods/sources give the same result?
Hand calculation, table formula and Python should come out the same
Attention: MPa = N/mm² is the most commonly used unit identity in strength. If you keep the force N, the length mm, the area mm², and the moment of inertia mm⁴, the stress increases directly to MPa. If meters and millimeters are mixed, the result deviates by a factor of 1000 or 1,000,000; The order of magnitude check captures this.
Step by Step Working Example
Let's find the maximum bending stress in a steel cantilever beam with a length of L = 300 mm, rectangular section (b = 20 mm, h = 40 mm), one end of which is fixed (embedded in the wall), loaded with F = 500 N from the free end. Maximum moment at the support: M = F·L = 500 · 300 = 150,000 N·mm. Moment of inertia I = b·h³/12 = 20·40³/12 = 106.667 mm⁴. Edge distance c = h/2 = 20 mm. Stress σ = M·c/I = 150,000·20/106,667 ≈ 28.1 MPa. Since the yield strength of S235 steel is ~235 MPa, the safety coefficient SF ≈ 235/28.1 ≈ 8.4. Having the AI do each step of this calculation and then manually supplying these three values (M, I, σ) yourself instantly catches typical AI errors (taking h² instead of h³, substituting c for h in the I formula).
Prompt posing the problem
Role: Experienced strength engineer.Task: SOLVE the following problem; just do the installation first. Problem: Cantilever beam with one end fixed, 500 N load from the free end, length 300 mm, rectangular section b = 20 mm h = 40 mm, material S235. Output: - Assumptions (static, linear elastic, etc.) - Verbal description of the free body diagram and support reactions - Which formulas to use (symbolic, putting numbers) - Which unit system to work with Rule: Numerical result in this step don't give; I will verify the organization.
Prompt that makes the calculation and shows the unit
Now do the math. Write the unit clearly at EVERY step (N, mm, mm^4, MPa). Requested: maximum bending moment, moment of inertia, maximum bending stress, safety factor according to yield strength. Rule: Also show units of intermediate results; State that you are using the identity MPa = N/mm^2. Comment on whether the order of magnitude in the last line is reasonable.
Independent verification prompt
Solve the same problem AGAIN using an independent method (e.g. from the standard beam formula table). Don't look at my previous result, do it from scratch. Then compare the two results; If there is a difference, show me where it is.
Provision prompt with Python
Write a short Python function that does this calculation. Input: F, L, b, h, yield strength. Output: M, I, sigma, SF. Specify the units in the comment line. Also add a known test case: For F=500,L=300,b=20,h=40, sigma should be ~28.1 MPa; Check with assert.
Weak Prompt / Strong Prompt
Weak prompt:
Will this beam break?
No geometry, material, load or support type; AI either asks questions or makes up assumptions. The "unbreakable" answer based on a made-up assumption is dangerous.
Powerful prompt:
Built-in cantilever beam, 500 N at the end, L = 300 mm, cross-section 20x40 mm, S235. Calculate the maximum bending stress and the factor of safety according to yield. Show the unit at each step, provide the result in order of magnitude and repeat the same calculation with an independent method. Mark the assumption you are unsure of.
The second prompt gives all input, forces independent repetition with unit and rank control; indicates uncertainty.
Three Mini Cases (By Numbers)
Case 1 - Moment of inertia trap. An engineer mistakenly prints I = b·h²/12 into the AI instead of I = b·h³/12; For b=20, h=40, it turns out to be 2.667 mm⁴ instead of 106.667 mm⁴, and the stress appears to be 1.125 MPa instead of 28 MPa. The order of magnitude check ("it can't be 1 GPa in 40 mm steel at this load, it would have already passed yielding") catches the error; Unit analysis also confirms that it should be h³.
Case 2 - Meter-millimeter confusion. The intern enters L with 0.3 m, F with 500 N, and leaves I with mm⁴. The result deviates by a factor of 1000: 0.028 MPa instead of 28 MPa. The statement "It can't be this strong, it turned out to be SF 8000" reveals the inconsistency. Lesson: choose a single unit system and convert all inputs to it.
Case 3 - Wrong formula choice. AI uses the fixed beam deflection formula (δ = FL³/3EI) for a simply supported beam; whereas for a simple beam loaded at the centre, δ = FL³/48EI. The difference is 16 times. The engineer confirms the support type with the free body diagram and moves to the correct formula. Lesson: verify not the formula, but the boundary condition to which the formula belongs.
Common mistakes
- Skipping the free body diagram: Starting the calculation before the load path and reactions are clear.
- Mixing the system of units: leaving m and mm, N and kN, MPa and Pa in the same account.
- Wrong boundary condition: Using simple support formula instead of anchor (or vice versa).
- Not interpreting the factor of safety: Not just finding the number and comparing it with the application's acceptance criteria.
- Relying on a single source: Not reproducing AI output in an independent way.
- Not considering the static load as dynamic: Thinking that static calculation is sufficient if there is fatigue/impact.
In summary
- Strength calculation is divided into assumption, free body diagram, balance, internal force, stress and factor of safety steps.
- AI is strong in organization, formula recall, and automation; but makes mistakes in arithmetic and choice of formula.
- Each output is three-layer validated by size analysis, order of magnitude, and independent reproduction.
- The identity MPa = N/mm² and the discipline of a single unit system prevent the most frequent errors (1000-fold deviation).
- On the security-critical account, AI is a blueprint; Approval and responsibility remain with the competent engineer.
Application task
Choose a simple strength problem (a cantilever beam, a tension rod, or a bolt shear calculation). Just have the AI build the assumptions and free-body diagram first; Verify the organization. Then have the calculation done by showing units at each step. Then perform all three verifications: manually check the unit analysis, query the order of magnitude of the result, and solve the same problem again using an independent method (table formula or Python) and compare the two results. If there is a discrepancy, write the source. Finally, state in one sentence whether this part is safety-critical and what approvals are required.
checklist
- [ ] Assumptions and free body diagram were established and verified before calculation.
- [ ] A single unit system was chosen; all inputs were translated into it.
- [ ] The unit is clearly indicated at each calculation step (MPa = N/mm²).
- [ ] Sanity check has been performed.
- [ ] The same problem was solved and compared again with an independent method.
- [ ] The safety factor is interpreted by the application's acceptance criteria; approval was left to the engineer.