A G-Code-Driven Modeling and Thermo-Mechanical Coupling Analysis Method for the FDM Process of Complex Lightweight Structures
Related Experiment Video
Updated: Mar 29, 2026

Automatic Laser-based Geometry Capture for Finite Element Analysis of Weld Beads
Published on: July 25, 2025
Dinghe Li1, Yiheng Dun1, Zhuoran Yang1
1Sino-European Institute of Aviation Engineering, Civil Aviation University of China, Tianjin 300300, China.
Abstract:
Accurate prediction of thermo-mechanical behavior in Fused Deposition Modeling (FDM) is often limited by mismatches between idealized Computer-Aided Design (CAD) geometry and path-dependent material deposition. This paper presents a G-code-driven, filament-level modeling and process-simulation workflow for complex geometries and infill strategies, especially toolpaths with in-plane inclinations. Extrusion segments are parsed from slicing G-code to obtain endpoints and process parameters, and each filament is reconstructed as a path-aligned rectangular bead using a dedicated local coordinate system. Progressive deposition is simulated in ANSYS Parametric Design Language (APDL) via an element birth-death method, enhanced by a centroid-based element selection strategy that reduces dependence on strictly aligned hexahedral partitions and improves robustness for complex meshes. A nonlinear transient thermal analysis is performed, and temperatures are mapped to the structural model through an indirect thermo-mechanical coupling scheme to predict warpage and residual stresses. Case studies on square plates with triangular and hexagonal infills (with/without sidewalls and a bottom base) show that the high-temperature zone follows newly deposited paths with peak temperatures near 220 °C, while displacement and von Mises stress accumulate and are strongly affected by infill topology and boundary conditions.
Related Concept Videos
Unsymmetric Loading of Thin-Walled Members: Problem Solving
To compute the shear forces, find the shear flow at a specific distance from the endpoint using the vertical shear and the moment of inertia values. The total shear force on the flange is calculated by integrating the shear flow from one end of the flange to the other.
Next, calculate the moments of...
Unsymmetric Loading of Thin-Walled Members
The concept of the shear center is crucial in countering the...
Design of Transmission Shafts - Stress Analysis
Thin-Walled Hollow Shafts
Design of Prismatic Beams for Bending
Mesh Analysis
A fundamental concept in mesh analysis is the definition of meshes and mesh currents. A mesh is a closed...

