In M00 you ran a prepared simulation. Now you will make the model stop being a rigid sequence: will receive inputs, check if they make sense, and make their first engineering decision.
YOUR MISSION
The beam cannot exceed 0,25 mm deflection or 150 MPa. Among several candidate heights, which is the lowest you meet?
When finished, the script will vouch for you. But first you will have to teach him what each number means.
Objectives
By completing M01 you will be able to demonstrate that:
- Replace scattered numbers with parameters with physical meaning and known units.
- You distinguish inputs, derived quantities, analytical references and FEA results.
- You build APDL expressions and predict their trend before executing.
- You stop invalid entries by
*IF. - You define an array with
*DIMand you walk through it using*DO. - You generate a table CSV and select the first admissible alternative.
Prerequisites and files
- Have completed M00 or recognize flow
/PREP7 → /SOLU → /POST1. - Know the meaning of elastic modulus, moment of inertia, and deflection.
- Work with the coherent system SI: meters, newtons and pascals.
01_start.macStarting point.01_parametric_beam.mac— guided solution.01_bug_hunt.mac— five deliberate defects.01_challenge.mac— challenge template.01_expected_results.csvAuto Correction
How to use this lesson
| Route | Duration | Stroke |
|---|---|---|
| First win | 25–30 min | Prediction, basic parameters and first execution with analytical references. |
| Complete | 60–70 min | In addition, arrays, loops, bug hunting, challenge and CSV evidence. |
Recommendation: Calculate uy_ref and sigma_ref on paper before running. Prediction converts simulation in a falsifiable test, not in an outline to look at passively.
Session map
- Mission: objectives, downloads and analytical prediction.
- Mental models the parametric script contract.
- Demonstration: parameters, validation, arrays and loops.
- Error hunting: diagnose parametric failures.
- Challenge: modify a variable with verifiable tolerance.
- Mastery: final test that records demonstrated mastery and recommends M02.