TL;DR
This paper introduces a high-resolution, voxel-based finite element method (FEM) framework that simulates the transient thermal behavior of extrusion-based 3D printing in faster-than-real-time. By leveraging parallelized, adaptive octree meshes, the framework acts as a computational foundation for a thermal "digital twin," capable of predicting heat distribution across complex geometries and sparse infills before the physical printer even finishes its layer.
What Problem Does This Paper Address?
Extrusion-based additive manufacturing, such as Fused Deposition Modeling (FDM), builds 3D objects layer-by-layer by melting and depositing thermoplastic filaments. However, managing the thermal history of the part is a major hurdle. Improper cooling leads to internal thermal stresses, causing warping, dimensional inaccuracy, and weak interlayer bonding.
While physics-based numerical simulations can predict these thermal profiles, traditional full-body FEM approaches are notoriously compute-intensive. They struggle to balance the massive scale differences between a tiny, fast-moving nozzle and the long overall print time of a complex part. Consequently, existing simulation tools are too slow to be useful for real-time monitoring or closed-loop machine control. This paper tackles the scalability challenge to make real-time thermal simulation a reality.
Methods
The authors developed a three-stage simulation pipeline designed for speed and geometric fidelity:
- G-code to Voxel-by-Voxel (VbV) Translation: The framework parses raw G-code and projects the toolpath onto a uniform Cartesian grid. This creates a discrete time-series schedule of exactly when and where material is deposited, capturing intricate contours and infill patterns.
- Adaptive Octree Meshing: To avoid the computational bottleneck of a massive uniform grid, the framework dynamically builds a 2:1 balanced, axis-aligned linearized octree mesh. The mesh automatically refines to the highest resolution at the active printing layer and gracefully coarsens in regions that have already cooled down or represent empty air pockets.
- Parallelized Thermal FEM Solver: The transient thermal solver uses a second-order backward-difference (BDF2) time-stepping scheme. Elements are classified as Active (polymer) or Inactive (air). The framework applies distinct Robin boundary conditions to accurately simulate free convection across both external surfaces ($h_{out}$) and internal sparse infill gaps ($h_{infill}$). The solver is parallelized using the PETSc library.
Datasets
The framework was evaluated and validated using a mix of experimental data and standard geometric benchmarks:
- Single-Filament Wall Prints: Used for physical validation, comparing simulated temperature histories against experimental thermocouple data and alternative linear-element models for Acrylonitrile Butadiene Styrene (ABS) and Polyetherketoneketone (PEKK).
- Complex 3D Geometries: The framework's scalability was tested using standard computer graphics and 3D printing benchmarks: the Stanford Bunny, 3D Benchy, and a Moai head. These were evaluated at multiple voxel resolutions ($32^3$, $64^3$, and $128^3$) and varying internal infill sparsities (0% to 70%).
Key Insights and Ideas
- Layer-Synchronous Remeshing: Instead of re-computing the octree mesh at every single voxel deposition—which would ruin computational efficiency—the framework updates the mesh structure only when the print moves to a new height level ($h$).
- Disjoint Air-Polymer Boundaries: By keeping air and polymer voxels strictly separated rather than homogenizing them, the solver can apply distinct internal vs. external convection coefficients. This captures the true physics of heat trapping inside sparse lattice structures.
- Beating the Clock: The primary breakthrough is that the simulation runs faster than the physical print time. For example, a high-resolution print that takes 2.5 hours on a physical machine can be simulated in under 50 minutes.
Key Results
- High Thermal Accuracy: For ABS wall prints, the simulated peak temperatures and cooling curves matched experimental thermocouple data within a tight $\pm 2$ K window.
- Faster-Than-Real-Time Performance: When tested on a 56-CPU cluster at a high $128^3$ voxel resolution, the Stanford Bunny simulation (2.68 million final degrees of freedom) took 48 minutes, whereas the physical print required 148 minutes—representing a 3x speedup. The 3D Benchy simulation finished in 55 minutes compared to a 96-minute physical print.
- Infill Effects Captured: The framework successfully demonstrated how increasing infill sparsity (skipping internal layers) restricts conduction pathways, causing localized thermal gradients to persist longer in the part's core.
Limitations and Future Work
While this framework achieves the speed necessary for a digital twin, the authors note several areas for expansion:
- Thermal-Only Formulation: The current model only simulates heat transfer. It does not yet calculate mechanical stress, meaning it cannot directly predict warping, residual stress, or structural failure.
- Simplified Material Properties: The simulation assumes constant thermal conductivity ($k$) and specific heat ($c_p$). Real-world polymers exhibit temperature-dependent properties and phase-change kinetics (like crystallization) that alter thermal behavior.
- Enclosed Chamber Dynamics: The boundary conditions assume simple free convection, which may not fully capture the forced convection environments found in high-end industrial printers.
The ultimate goal of this research is to integrate this fast forward-solver into a closed-loop control system, allowing a 3D printer to dynamically adjust parameters like fan speed or extrusion rate mid-print based on real-time thermal predictions.
Summary updated