14. Simulation & Generation
Applying forces virtually prevents catastrophic failures in the real world. Simulation-driven design means using computational analysis to predict how your robot's parts will behave under real-world conditions -- before you spend money manufacturing them. Instead of overbuilding everything "just in case," you can precisely determine where material is needed and where it can be removed. Advanced CAD tools go even further: topology optimization and generative design let algorithms propose geometry that no human would intuit, producing parts that are lighter, stiffer, and stronger than anything designed by hand. This module covers the simulation and generative tools that separate competent CAD work from truly optimized engineering.
Finite Element Analysis (FEA)
FEA is the cornerstone of structural simulation. It works by dividing your solid model into thousands of tiny elements (a mesh), applying physics equations to each element, and assembling the results to predict how the entire part responds to forces, pressures, and temperatures.
- What It Is: A numerical method that approximates the behavior of continuous materials by breaking them into discrete elements (triangles in 2D, tetrahedra in 3D). Each element is simple enough to solve mathematically; the assembly of all elements models complex real-world behavior.
- Mesh Generation: The mesh is the grid of elements overlaid on your geometry. Finer meshes produce more accurate results but take longer to solve. Use adaptive meshing: fine mesh in high-stress areas (fillets, holes, load application points) and coarse mesh in low-stress bulk regions.
- Boundary Conditions -- Fixtures: Fixtures define how the part is held in place. A fixed constraint locks all degrees of freedom at a face (simulating a bolted connection). A pin constraint allows rotation but prevents translation. Incorrect fixtures are the most common source of meaningless FEA results.
- Boundary Conditions -- Loads: Loads are the forces and pressures acting on the part. Apply forces at the exact locations and in the exact directions they occur in real life. A point load on a face, a distributed pressure, a bearing load on a hole -- each type produces very different stress distributions.
- Material Properties: FEA requires accurate material data: Young's modulus (stiffness), Poisson's ratio (lateral contraction), yield strength (when permanent deformation begins), and density. Using the wrong material properties invalidates the entire analysis.
- Interpreting Stress Heatmaps: The color-coded stress plot shows where stress concentrates. Blue regions are under low stress; red regions are near or above the material's yield strength. Focus on the red zones -- these are where failure will initiate.
- Safety Factor: The safety factor is the ratio of the material's yield strength to the maximum stress in the part. A safety factor of 2.0 means the part can handle twice the applied load before yielding. Minimum safety factors depend on the application: 1.5 for static loads, 3-4 for dynamic/impact loads.
- Von Mises Stress: Von Mises stress is a combined stress metric that accounts for all stress components (tension, compression, shear) into a single value that can be compared directly to the material's yield strength. It is the default stress measure for ductile metals and plastics in FEA.
Topology Optimization
Topology optimization starts with a solid block of material and mathematically carves away everything that is not carrying load, leaving behind an organic, skeletal structure that is as light as possible while meeting your stiffness and strength requirements.
- Define Preserve Regions: Mark the areas that must remain solid -- bolt holes, mounting faces, bearing seats. These regions are excluded from the optimization and remain intact in the final result.
- Define Obstacle Regions: Mark areas where material must not exist -- clearance zones for other parts, cable routing channels, mechanism paths. The optimizer will not place material in these regions.
- Set Load Cases: Apply the same fixtures and loads you would use in FEA. You can define multiple load cases (e.g., driving forward, turning, impact) and the optimizer will find geometry that works for all of them simultaneously.
- Optimization Goals: The most common goal is to minimize mass while maintaining a target stiffness or safety factor. Alternatively, you can maximize stiffness for a given mass budget. The optimizer iteratively removes low-stress material and redistributes loads.
- Interpreting Organic Results: The raw output looks like a coral reef or bone structure -- beautiful but not directly manufacturable. The organic shapes follow the natural load paths through the part, showing you where material is truly needed.
- Post-Processing for Manufacturing: The raw topology result must be smoothed, simplified, and adapted for your manufacturing method. For 3D printing, the organic shapes may be usable directly. For CNC, you must remodel the result using machinable features (flat faces, uniform wall thickness, filleted corners).
Generative Design
Generative design extends topology optimization by exploring multiple manufacturing methods simultaneously. Instead of producing one optimized shape, it generates dozens of design alternatives, each tailored to a specific manufacturing process and material.
- How It Differs from Topology Optimization: Topology optimization produces one result for one set of constraints. Generative design runs many optimizations in parallel -- one for 3D printing, one for 3-axis CNC, one for 5-axis CNC, one for casting -- and presents all the results for you to compare. You choose the best trade-off of weight, cost, and performance.
- Setting Up a Study: Define obstacle geometry (where material cannot go), preserve geometry (where material must stay), and the loads and fixtures the part must withstand. Then select which manufacturing methods and materials to explore.
- Manufacturing Constraints: Generative design applies manufacturing rules during optimization. A CNC-targeted result will avoid undercuts and respect tool access directions. A casting-targeted result will include draft angles and uniform wall thickness. The geometry is born manufacturable.
- Exploring Results: The outcome is a gallery of designs ranked by mass, stress, cost, and manufacturing method. Use filters to compare: "Show me all designs under 200g that can be 3-axis milled from aluminum." Select the winner and export it as a solid body for further refinement.
Thermal & Modal Analysis
Beyond static stress, advanced simulation addresses heat flow and vibration -- two critical concerns in robotics.
- Heat Transfer Simulation: Robots generate heat from motors, motor drivers, and onboard computers. Thermal FEA simulates conduction through solid parts, convection to surrounding air, and radiation from hot surfaces. Use it to verify that electronics stay within operating temperature, to size heat sinks, and to design cooling fin geometry. Apply heat sources (wattage) to components and fixed-temperature or convection boundary conditions to exposed surfaces.
- Natural Frequency Analysis (Modal): Every structure has natural frequencies at which it vibrates freely. If a motor, drivetrain, or external vibration excites a natural frequency, the structure resonates -- amplifying deflections and stresses dramatically. Modal analysis calculates these natural frequencies and their associated mode shapes (the pattern of deformation). Design robot arms and frames so that their lowest natural frequency is well above (or well below) the operating frequencies of motors and actuators. A typical rule of thumb: keep the first natural frequency at least 20% away from any excitation frequency.
Simulation Workflow
Follow this process for any simulation study to ensure reliable, meaningful results.
1
Define Study Type
Choose the analysis type based on your question: static stress for strength, modal for vibration, thermal for heat, topology optimization for weight reduction.
2
Assign Materials
Apply accurate material properties to every body in the study. Use material libraries built into your CAD tool, or enter custom properties from the material's data sheet.
3
Apply Constraints (Fixtures)
Fix the model the way it is held in the real world. Bolt holes get fixed constraints; sliding surfaces get frictionless constraints; symmetry planes get symmetry constraints to reduce solve time.
4
Apply Loads
Add forces, pressures, moments, thermal loads, or remote loads at the correct locations and magnitudes. Include all load cases the part will experience in service.
5
Generate Mesh
Create the finite element mesh. Start with the default settings, then refine the mesh in critical areas. Use mesh convergence studies: solve at progressively finer meshes until the peak stress stabilizes (changes less than 5% between refinements).
6
Solve
Run the solver. For simple parts, this takes seconds. For complex assemblies with fine meshes, it can take minutes or hours. Monitor for convergence errors or element warnings.
7
Analyze Results
Review stress plots, displacement plots, safety factor maps, and (for modal) mode shapes. Identify the highest-stress locations and verify they are below the material's yield strength with adequate safety margin.
8
Iterate
Modify the design based on results -- add material where stress is too high, remove material where safety factor is excessive -- then re-run the simulation. Repeat until the design meets all requirements with minimum weight.
Interpreting Results
Simulation produces a wealth of data. Knowing what to look at -- and what the numbers mean -- is critical for making sound engineering decisions.
| Result Type |
What It Shows |
Key Guidelines |
| Stress Color Map |
Blue = low stress, green = moderate, yellow = approaching yield, red = at or above yield strength |
Focus on red zones. If red appears only at a sharp corner or point load, it may be a stress singularity (a mesh artifact) -- refine the mesh and re-check. |
| Displacement Plot |
How much each point of the part moves under load (shown exaggerated for visibility) |
Check that maximum deflection is within your tolerance. For robot arms, even 0.5mm of tip deflection can affect accuracy. |
| Safety Factor |
Ratio of yield strength to actual stress at each point |
Minimum 1.5 for static loads on well-understood parts. 3-4 for dynamic, impact, or fatigue loads. Below 1.0 means the part will yield (permanent deformation). |
| Convergence Check |
Whether the solution has stabilized as mesh density increases |
Run at least 2-3 mesh refinement levels. If peak stress changes more than 5-10% between levels, the mesh is too coarse and results are unreliable. |
| Mode Shapes (Modal) |
The deformation pattern at each natural frequency |
Ensure the first natural frequency is at least 20% away from any motor or drivetrain operating frequency to avoid resonance. |
Simulation Reality Check: FEA results are only as good as your boundary conditions. A simulation with incorrect fixtures, missing loads, or wrong material properties will produce precise but meaningless numbers. Always validate critical designs with physical testing. Build a prototype, instrument it with strain gauges or load cells, and compare measured values to your simulation predictions. Use simulation to guide and optimize your design, not as a replacement for real-world validation.