Application of CFD to Food 3D Printing: History
Please note this is an old version of this entry, which may differ significantly from the current revision.

CFD (Computational Fluid Dynamics) is one of the computer simulation methods used to characterize fluid flow behavior under certain geometries with boundary conditions. The criterion for its performance is how well numerical simulation outcomes align with experimental results conducted under specific conditions, and how well simulations can predict extremely complicated processes that cannot be analyzed in the real world. CFD has gained recognition as an emerging science around the world, particularly since the late 2000s when there was a significant increase in the development and application of CFD to all areas related to fluid behaviors associated with momentum, heat, and mass transfer.

  • food 3D printing
  • computational fluid dynamics (CFD)
  • Residual stress
  • Die swell

1. Introduction

Three-dimensional printing (3DP) is a rapid prototyping technology that combines material science with computing and control technologies [1]. The application of 3DP to food began primarily with digitally controlled extrusion operations that could accurately build up the material deposition layer by layer from a pre-designed file such as stereolithography (STL) or computer-aided design (CAD) [2][3]. Several studies have emerged with strong efforts in applying 3DP technology to various designs of food products. In the early stage, the material used in food 3DP was limited to chocolate products [4][5][6], but recently, various materials have been applied successfully and their characteristics in the 3DP have been reported (i.e., potato starch with pea protein, wheat, corn starch, lemon juice gel, alginate with pea protein, cereal food, oat protein, meat product, and surimi [7][8][9][10][11]). 3DP applications were accompanied by a large number of trial-and-error attempts and conservative designs, which resulted in a waste of resources and time during the experiments. This is in part due to a lack of accurate instruments for predicting the results of the process [9]. Recently, patents associated with food 3DP technology have presented computational methods, mainly computational fluid dynamic (CFD) simulation, to predict and quantify the performance of 3DP [12][13][14].

CFD is one of the computer simulation methods used to characterize fluid flow behavior under certain geometries with boundary conditions [12][14]. The criterion for its performance is how well numerical simulation outcomes align with experimental results conducted under specific conditions, and how well simulations can predict extremely complicated processes that cannot be analyzed in the real world [9]. CFD has gained recognition as an emerging science around the world, particularly since the late 2000s when there was a significant increase in the development and application of CFD to all areas related to fluid behaviors associated with momentum, heat, and mass transfer [15]. As a result of its ability to anticipate the success of modern designs or systems before they are manufactured or applied, CFD has played an important role in many industries in the engineering design and research environments [16]. CFD is being used increasingly in the food and bioprocess industries by researchers, system manufacturers, and process engineers to study the flow behavior and efficiency of process equipment such as baking ovens, refrigerators, spray dryers, and 3D printers [9][17][18]. In the 3DP process, CFD technology has been used to identify the critical parameters that dictate the shape of the printed product as well as to find the best material deposition strategy. Thus, CFD has contributed to the reduction in production costs, improvements in the product quality, and increase in productivity (i.e., printing speed) [12][19][20].

In the design of 3DP food products and 3DP processes, the CFD simulations are now considered to be standard numerical tools to predict not only the fluid behavior during extrusion, but also the complicated flow characteristics associated with heat and mass transfer, phase transfer (i.e., solidification), chemical reactions (i.e., bindings and wall stickiness), mechanical movements (i.e., impeller turning, or pistons movement), and stress or deformation of related solid structures (i.e., total collapse) [9][21]. The CFD model involved in 3DP has been continuously developed and extensively studied. Woodfield et al. [22] defined the flow behavior of biomaterials through the nozzle using the Hagen–Poiseuille rule. Based on the rheological properties of the material and layer thickness, Oyinloye and Yoon [9] evaluated the influence of residual-stress components and total deformation across the printed alginate and pea protein sample. Li et al. [23] developed a numerical model for the relationship between volumetric velocity in gels, scaffold pore diameter, and porosity. The fluid flow properties of lemon juice gel in the syringe were also studied using CFD [1].

Many review articles have examined the general applications of CFD for various unit operations involved in food processing for final product such as freezing systems in meat as well as for food ingredients such as spray drying of tomato pulp [15][17][24][25][26][27]. To the best of our knowledge, previous reviews have focused mainly on the material properties, food formulations, and machine design for 3D printing; however, one research paper focused on the use of CFD in terms of tissue engineering with potential in 3DP fabrication [11]. Unlike previous studies, this entry provides an overview of recent developments in CFD use in 3D food printing as well as a discussion of various problems faced during the 3D printing process and their solutions. This work can be seen as a quick guide for the use of CFD in the design of different forms of food 3DP processes.

2. Overview of Studies on the CFD Analysis of 3DP

Over the last 20 years, a total of 44 research articles on CFD research and its applications in 3D food printing and extrusion analysis have been reported when searched using specific keywords (CFD, food, numerical simulation, 3D printing, and extrusion process) on Google Scholar. The annual distribution of findings reflects the growing importance of the topic, with more than half of the publications occurring in the last four years ( Figure 1 ). The majority of them focused on the development of novel food items. Several researchers have recently begun exploring issues related to 3D food printing processes such as the die swell effect at the 3D printer nozzle, residual stress component in the extruded products, and the shape of printed products during and after the 3DP process. However, such information is disseminated in several publications with differing technical foci. The related articles published during the last 10 years were analyzed ( Table 1 ).

Figure 1. The number of publications with the keywords: CFD, food, numerical simulation, 3DP, and extrusion process. Data was found in ‘Google Scholar’ and searched over the last 20 years.
Table 1. CFD simulation on food 3DP in the last 10 years.
Application Software Code Aim Time-Dependent State Author
3D printing of alginate and pea protein gel ANSYS Discovery AIM To predict the residual stress, total deformation, and printing precision requirement. Transient [9]
3D printing of cereal grains. ANSYS POLYFLOW To investigate the use of cereal grains as alternative printing material. Transient [28]
3D printing of lemon juice gel ANSYS POLYFLOW Evaluation of the fluid characteristics of lemon juice gel in the 3D printer flow channel. Steady [1]
Comparative study of a syringe and screw-based 3D food printer COMSOL Multiphysics Developing CFD models to investigate and compare the flow field characteristic of two 3D extrusion-based printing units (syringe and Screw based printing). Transient [21]
Soy white flakes based dough in a single screw extruder ANSYS POLYFLOW To characterize the rheological properties of soy white flakes-based dough in a single screw extruder and analyze the flow behavior in the high shear rate zone extruder. Transient [29]
Extrusion process of soy white flakes Design Expert To analyze the extrusion process of Jatropha seeds by a single screw extruder. Steady [30]
3D deposition of porous scaffolds for cartilage tissue engineering   To establish the flow of biomaterials through the nozzle.   [22]
Mixing in food extrusion ANSYS POLYFLOW and
ANSYS Fluent
To characterize the dispersive mixing of oil in the plasticized starch matrix within a twin-screw extruder. Transient [14]

3. Fundamentals of the CFD Extrusion Process

By applying these conservation laws over discrete spatial volumes in a fluid domain, it is possible to achieve a systematic account of the changes in mass, momentum, and energy as the flow crosses volume boundaries. Although direct solving of Navier–Stokes equations is possible for laminar flow, computationally solving fluid motion in the Kolmogorov microscales in turbulent flow is not yet possible; hence, turbulence models need to be solved in addition to the Navier–Stokes equations in the case of turbulent flow regime, which is generally encountered in the modeling of a low viscosity food process because of the high flow rates and complex geometry involved [31]. As a result, choosing a suitable turbulence model is crucial and has a direct impact on the CFD results of the 3DP process. Several review studies are available on selecting the suitable turbulence models for various food processing, comparable to the 3D printing process, based on accuracy, computing time, and cost, thus this review will not go into detail [25][31].

For boundary conditions used in simulations, the various temperature loading conditions such as uniform, time-dependent, or spatially varying temperature throughout the selected geometry are used as boundary conditions to calculate the heat losses due to conduction and convection heat transfer associated with the 3DP process. The heat source for 3DP on a localized distribution spot is usually assumed to be an ellipsoid-moving heat source with a normally distributed heat flux density in the form of a Gaussian function ( Figure 2 ). The localized heat distribution strongly affects the 3DP process as well as the 3DP products. Thus, temperature-dependent heat losses around the geometry must be analyzed. Radiation and convection heat transfer are the major modes for the localized heat distribution for all boundaries in the geometry. In this case, the heat transfer can be modeled by Equation (6), (6) − λ ∂ T ∂ n = α k T − T 0+ ε C 0T 4− T 04 where α k is the heat transfer coefficient due to free convection; ε is the emission coefficient; C 0 is the radiation coefficient; T is the component temperature; and T 0 is the ambient temperature. Radiation and convection are significant only on the upper part of the geometry, but relatively less on the lower part. Thus, ε can be assumed to be 0. The local heating of the component causes an uneven thermal expansion, whereby the colder environment hinders the expansion of the warm areas. This leads to the component-stress formation in the material, which results in deformation [9].

Figure 2. Heat source model for 3D printing material. (a) Finite element (FE)-heat source model. (b) Weaving thermal deposition. (c) Deposited material volume produced by the heat source. Source: Alaluss and Mayr [32].

The selection of appropriate approaches to discretize the modeled fluid continuum is a critical factor for the application of CFD. The most prominent of these include finite difference (FD), finite elements (FE), and finite volumes (FV). Due to difficulties in the handling of complex geometry, FD techniques are of limited use in engineering flows. FE has been used to successfully model the piston-based 3DP of the mixture of alginate and pea protein [9] as well as the screw-based 3D extrusion process of potato paste [21]. However, the FE requires special care to ensure a conservative solution. Although the FE method must be carefully formulated to be conservative, it is far more stable than the FD method [33]. The FE method may demand more memory and may require more time to obtain solutions than the FV method [34]. Because of the complexities inherent in programming and implementing this technique, there are few commercial FE software available. Fortunately, such challenges may be avoided by employing FV approaches [35] that provide ease in understanding, programming, memory usage, solution speed, and versatility of finite volumes, particularly for large problems, high Reynolds number turbulent flows, and source term dominated flows. It is now the most commonly used numerical technique in CFD code development, and as a result, it is considered the most commonly used method to form design solutions for the 3DP process. In the FV method, the governing partial differential equations such as the Navier–Stokes equations, the mass and energy conservation equations, and the turbulence equations are developed in a conservative form, and then solved over discrete control volumes.

All CFD problems are defined by initial and boundary conditions, which must be specified correctly. The initial values of heat and mass flow variables must be specified at all solution points in the computational domain. When modeling heat and mass transfer in the 3DP model, the distribution of all flow variables at the inlet boundary must be specified. In the case of 3DP with molten chocolate, the flow variables include inlet volume flow rate, pressure, turbulent intensity, and temperature [36]. The 3D printer’s piston speed along with the dimensional parameters of the 3D printer chamber is used to define the inlet volume flow rate. Temperature and flow property distributions at the inlet are usually specified based on the experimental data [9]. Outlet boundary conditions can be stated and used in conjunction with the inlet boundary conditions. This type of boundary condition is specified mostly where outlet velocity is known. At the outlet of the flow domain, the force conditions are set (Equation (7)); (7) F n = V s = 0  N where subscript n and s represent the normal and tangential components of the force and velocity, respectively. When the 3D printer’s outlet position is far away from the chamber, the flow reaches a fully developed state with no change in the flow direction. As long as a fully developed state is maintained, the gradient of all variables could be equated to zero in the flow direction, except pressure [35]. In the chamber of the 3D printer, the continuity and the momentum conservation equations (Equations (8) and (9)) are usually used: ( 8) ∇ · v ¯ = 0 (9) ρ ∂ ν ∂ t + ν - · ∇ ν = − ∇ p + ∇ · τ = where ν - is the velocity vector; ρ is the material density; p is the hydrostatic pressure; and τ = is the extra stress tensor. Mostly, the effect of gravity is neglected [10][21][28]. This seems to be a reasonable assumption in materials with high viscosity. At the wall boundary condition, models are usually established as no-slip between the material and the wall of the channel during the extrusion process wherein the normal component of velocity is fixed at zero, and the tangential component is set equal to the velocity of the wall (Equation (10)) [1]: (10) V s = V n = 0  mm / s where V s and V n represent tangential and normal components, respectively. Although it may seem counterintuitive, the no-slip condition has been firmly established in both experiment and theory [37]. The wall is the most common boundary condition considered when solving heat and mass flow problems, specifically during the structural analysis of 3D printed food components. The bottom face of the printing bedplate on which molten materials are printed is supplied with a steady pre-heat temperature. Conduction heat transfer between the molten material and the bedplate occurs, and the temperature difference is important to control the cooling rate of the bottom layer. For the boundary conditions involving heat transfer, it is necessary to specify the rate of heat transfer through the walls. In general, the heat flux q ˙ is defined by (Equation (11)): (11) q ˙ = K T b e d − T s a m p l e r s → o r   q ˙ = c o n s t a n t where T b e d and T s a m p l e are the bedplate temperature and molten sample temperature, respectively. The overall heat transfer coefficient K depends on the thermal conductivity and thickness of the conductive solid material as well as the fluid material properties (density, heat capacity, etc.) and flow characteristics (geometry specification, turbulence, etc.). The radiant heat coefficient r s is determined by factors specific to the printing environment or the ambient temperature.

4. CFD Applications in Food 3DP

The thermo-mechanical characteristics of food materials are studied in the food 3DP process to predict material behavior during or after printing in a wide range of factors describing their internal states (i.e., temperature, residual stress, and deformations) and structures (i.e., model shape or permeability). Changes in state parameters and structural characteristics of printed food material are induced by the energy exchange and mechanical interaction of a material with the environment. When a material is deformed, the strength describes the critical stresses. The residual stress is usually taken into account throughout the 3D printing process [9].

Residual stresses are the stresses maintained by a printed solid model after external or internal force loads have been removed and an equilibrium condition has been reached. These stresses are caused by misalignments in the form of components from different regions and phases. In addition, the residual stress is influenced by local variations of material properties such as elasticity and thermal properties. Residual stress can have several negative effects on the characteristics of a model part such as bending of the surface of the printed model or, in extreme cases, the entire deformation of the printed model [9][38]. The primary source of residual stresses in printed foods could be directly related to the material properties (viscosity, storage modulus, and loss modulus, etc.) and the parameters of the printing process such as nozzle size, printing speed, and layer height. Furthermore, the residual stress can be influenced by printing processes that incorporate temperature changes, which vary the material properties as well as cause phase transitions. Oyinloye and Yoon [9] investigated the mechanical behavior of printed alginate and pea protein paste at 45 °C on a 22 °C printing bed using numerical simulations. The finite element method (FEM) based numerical simulation was conducted to predict the residual stress and distortion of the printed material as the nozzle size was varied ( Figure 3 ). The stress of the samples was typically concentrated at the layers in the center of the sample toward the edges, and the stress value increased with increasing nozzle size. As the diameter of the nozzle increases, the extrusion flow rate increases and the printing time decreases. This limits the solidification and stability of each printed layer before printing another layer on top. Furthermore, it was observed that the increasing stress value became constant as soon as the build-up phase ended and the cooling phase began ( Figure 3 ). This was due to a decrease in the thermal gradient in the printed sample.

Figure 3. Simulation result of stress distribution during the buildup and cooling phase (A) and according to deposit thickness, 0.20 mm (B), 0.68 mm (C), and 1.00 mm (D). Source: Oyinloye and Yoon [9].

The quality of the final products can be influenced by various process parameters in food 3DP. The primary process parameters in 3DP are nozzle size/diameter, layer height, printing speed, extrusion rate, and material rheological properties (viscosity, storage, and loss moduli). To conduct CFD simulations for 3DP, the following variables must be set: preheat temperature, deposition thickness, dwell time, scanning speed, hatch spacing, layer thickness, density, number of heat sources, cool down condition, and working atmosphere. Previous research for extrusion-based food printing has focused on two critical factors in determining product quality: the printability of the materials during extrusion and the stability of the products after printing [9].

Based on the aforementioned assertions, it is clear that numerical simulation could be used to better understand the distribution of flow properties (viscosity, shear rate, and pressure) of food materials during extrusion, particularly at the nozzle exit (outlet). Furthermore, numerical techniques can quickly and visually simulate and predict an object’s stress distribution and fluid state without the need for repeated printing experiments.

This entry is adapted from the peer-reviewed paper 10.3390/pr9111867


  1. Yang, F.; Guo, C.; Zhang, M.; Bhandari, B.; Liu, Y. Improving 3D printing process of lemon juice gel based on fluid flow numerical simulation. LWT-Food Sci. Technol. 2019, 102, 89–99.
  2. Malone, E.; Lipson, H. : The Personal Desktop Fabricator Kit. Rapid Prototyp. J. 2007, 13, 245–255.
  3. Periard, D.; Malone, E.; Lipson, H. Printing Embedded Circuits. Proceedings of the 2007 International Solid Freeform Fabrication Symposium. 2007. Available online: (accessed on 23 September 2021).
  4. Lacerda, R.A.; Burgatti, J.C. Automatic Moulding Chocolate Depositing Line, Chocolate Depositing Machine. Rev. Da Esc. De Enferm. Da USP 2009, 43, 237–244.
  5. Li, P.; Mellor, S.; Griffin, J.; Waelde, C.; Hao, L.; Everson, R. Intellectual property and 3D printing: A case study on 3D chocolate printing. J. Intellect. Prop. Law Pract. 2014, 9, 322–332.
  6. Løland, G. Wiibooxsweetin High Accuracy Touch Panel China Impresora 3D for DIY Chocolate Printing. Ph.D. Thesis, Norwegian University of Science and Technology (NTNU), Trondheim, Norway, 1991.
  7. Dick, A.; Bhandari, B.; Prakash, S. 3D printing of meat. Meat Sci. 2019, 153, 35–44.
  8. Lille, M.; Nurmela, A.; Nordlund, E.; Metsä-Kortelainen, S.; Sozer, N. Applicability of protein and fiber-rich food materials in extrusion-based 3D printing. J. Food Eng. 2018, 220, 20–27.
  9. Oyinloye, T.M.; Yoon, W.B. Stability of 3D printing using a mixture of pea protein and alginate: Precision and application of additive layer manufacturing simulation approach for stress distribution. J. Food Eng. 2021, 288, 110127.
  10. Yang, F.; Zhang, M.; Bhandari, B.; Liu, Y. Investigation on lemon juice gel as food material for 3D printing and optimization of printing parameters. LWT-Food Sci. Technol. 2018, 87, 67–76.
  11. Zhang, S.; Vijayavenkataraman, S.; Lu, W.F.; Fuh, J.Y. A review on the use of computational methods to characterize, design, and optimize tissue engineering scaffolds, with a potential in 3D printing fabrication. J. Biomed. Mater. Res. Part B Appl. Biomater. 2019, 107, 1329–1351.
  12. Duggleby, A.; Ball, K.; Sewall, E. Computational Fluid Dynamics (CFD) Coprocessor-Enhanced System and Method. U.S. Patent 20070219766 A1, 20 September 2007.
  13. Emin, M.A.; Schuchmann, H.P. Analysis of the dispersive mixing efficiency in a twin-screw extrusion processing of starch based matrix. J. Food Eng. 2013, 115, 132–143.
  14. Emin, M.A.; Köhler, K.; Schlender, M.; Schuchmann, H.P. Characterization of Mixing in Food Extrusion and Emulsification Processes by Using CFD. In High Performance Computing in Science and Engineering ’10; Springer: Berlin/Heidelberg, Germany, 2011; pp. 443–462.
  15. Xia, B.; Sun, D.W. Applications of computational fluid dynamics (CFD) in the food industry: A review. Comput. Electron. Agric. 2002, 34, 5–24.
  16. Schaldach, G.; Berger, L.; Razilov, I.; Berndt, H. Computer Simulation for Fundamental Studies and Optimisation of ICP Spray Chambers; Current Research Reports; Institute of Spectrochemistry and Applied Spectroscopy: Berlin, Germany, 2000.
  17. Kuriakose, R.; Anandharamakrishnan, C. Computational fluid dynamics (CFD) applications in spray drying of food products. Trends Food Sci. Technol. 2010, 21, 383–398.
  18. Smale, N.J.; Moureh, J.; Cortella, G. A review of numerical models of airflow in refrigerated food applications. Int. J. Refrig. 2006, 29, 911–930.
  19. Holbrook, T.R.; Osborn, L.S. Digital patent infringement in an era of 3D printing. Univ. Campbell Davis Law Rev. 2014, 48, 1319.
  20. Tabrizi, A.S.; Asadi, M.; Xie, G.; Lorenzini, G.; Biserni, C. Computational fluid-dynamics-based analysis of a ball valve performance in the presence of cavitation. J. Eng. Thermophys. 2014, 23, 27–38.
  21. Guo, C.F.; Zhang, M.; Bhandari, B. A comparative study between syringe-based and screw-based 3D food printers by computational simulation. Comput. Electron. Agric. 2019, 162, 397–404.
  22. Woodfield, T.B.; Malda, J.; De Wijn, J.; Peters, F.; Riesle, J.; van Blitterswijk, C.A. Design of porous scaffolds for cartilage tissue engineering using a three-dimensional fiber-deposition technique. Biomaterials 2004, 25, 4149–4161.
  23. Li, M.G.; Tian, X.Y.; Chen, X.B. Modeling of flow rate, pore size, and porosity for the dispensing-based tissue scaffolds fabrication. J. Manuf. Sci. Eng. 2009, 131, 034501.
  24. Goula, A.M.; Adamopoulos, K.G. Effect of maltodextrin addition during spray drying of tomato pulp in dehumidified air: I. Drying kinetics and product recovery. Dry. Technol. 2008, 26, 714–725.
  25. Malekjani, N.; Jafari, S.M. Simulation of food drying processes by Computational Fluid Dynamics (CFD); recent advances and approaches. Trends Food Sci. Technol. 2018, 78, 206–223.
  26. Moraga, N.O.; Rivera, D.R. Advantages in predicting conjugate freezing of meat in a domestic freezer by CFD with turbulence k-ɛ 3D model and a local exergy destruction analysis. Int. J. Refrig. 2021, 126, 76–87.
  27. Norton, T.; Sun, D.W. Computational fluid dynamics (CFD)—An effective and efficient design and analysis tool for the food industry: A review. Trends Food Sci. Technol. 2006, 17, 600–620.
  28. Guo, C.; Zhang, M.; Devahastin, S. 3D extrusion-based printability evaluation of selected cereal grains by computational fluid dynamic simulation. J. Food Eng. 2020, 286, 110113.
  29. Singh, S.K.; Muthukumarappan, K. Rheological characterization and CFD simulation of soy white flakes based dough in a single screw extruder. J. Food Process Eng. 2017, 40, e12368.
  30. Singh, S.K.; Muthukumarappan, K. Effect of feed moisture, extrusion temperature and screw speed on properties of soy white flakes based aquafeed: A response surface analysis. J. Sci. Food Agric. 2016, 96, 2220–2229.
  31. Defraeye, T.J. Advanced computational modelling for drying processes–A review. Appl. Energy 2014, 131, 323–344.
  32. Alaluss, K.; Mayr, P. Additive Manufacturing of complex components through 3D plasma metal deposition—A simulative approach. Metals 2019, 9, 574.
  33. Peiró, J.; Sherwin, S. Finite Difference, Finite Element and Finite Volume Methods for Partial Differential Equations. In Handbook of Materials Modeling; Springer: Berlin/Heidelberg, Germany, 2005; pp. 2415–2446.
  34. Ferziger, J.H.; Perić, M.; Street, R.L. Computational Methods for Fluid Dynamics; Springer: Berlin/Heidelberg, Germany, 2002; Volume 3.
  35. Versteeg, H.K.; Malalasekera, W. An Introduction to Computational Fluid Dynamics: The Finite Volume Method; Pearson Education: London, UK, 2007.
  36. Lanaro, M.; Forrestal, D.P.; Scheurer, S.; Slinger, D.J.; Liao, S.; Powell, S.K.; Woodruff, M.A. 3D printing complex chocolate objects: Platform design, optimization and evaluation. J. Food Eng. 2017, 215, 13–22.
  37. Prabhakara, S.; Deshpande, M.D. The no-slip boundary condition in fluid mechanics. Resonance 2004, 9, 61–71. Available online: (accessed on 23 September 2021).
  38. Vrancken, B. Study of Residual Stresses in Selective Laser Melting, 2016. KU Leuven—Faculty of Engineering Science Web Site. Available online: (accessed on 23 September 2021).
This entry is offline, you can click here to edit this entry!