(664e) Geometry-Informed Deep Learning Surrogate Models for Flow Prediction and Optimisation of Flow Reactors
AIChE Annual Meeting
2024
2024 AIChE Annual Meeting
Topical Conference: Next-Gen Manufacturing
Applied Artificial Intelligence, Big Data, and Data Analytics Methods for Next-Gen Manufacturing Efficiency
Thursday, October 31, 2024 - 9:24am to 9:45am
Computational Fluid Dynamics (CFD), CFD-led explorations have been extensively carried out for improving the design of reactors, where design improvements can be identified based on visualisations of the flows [4][5][6]. However, these simulations are expensive and are often based on human intuition to navigate the parameter space, which makes this approach ineffective at balancing the number of evaluations needed to identify truly optimal solutions. To address this, we have previously explored derivative-free Bayesian optimisation models, along with multi-fidelity optimisation techniques integrated with the CFD simulations. These approaches have shown promising results in uncovering crucial flow phenomena, such as Dean vortices, which enhance mixing at low Reynolds numbers [7][8][9]. With an aim to further reduce the costs of exploration, we propose to extend the multi-fidelity Bayesian optimisation by exploring fidelities encompassing full CFD as high-order models and reduced-order models through Geometry-Informed Graph Neural Networks (GNNs). The focus of this work is on developing and applying geometry-informed GNNs to efficiently predict flow dynamics across diverse reactor configurations and operating conditions.
GNNs have been successfully applied within chemical reactors to improve reaction yield prediction using pre-trained models [10]. They have also demonstrated the capability to learn fluid dynamics for various geometries, including airfoils, flow around cylinders [11], shapes generated through Bezier curves [12], and even wind turbine blades [13]. Our approach introduces a geometry-informed deep learning surrogate modeling framework that leverages GNNs to encode topological and geometric information, coupled with Convolutional Autoencoders for compressed flow representations. This framework enables us to replace costly CFD computations with efficient prediction mechanisms, significantly reducing computational overhead. Figure shows the GNN-Autoencoder-OpenFoam framework used in this study.
We pre-train the GNN model on a two-dimensional serpentine reactor with shape variants generated using sinusoidally-parameterised geometries. The geometric parameters varied include the amplitude (p1 = 0.1-0.5), frequency (p2 = 3.0-4.0), and horizontal offset (p3 = 0-Ï/2) of the sinusoidal curve. Structured meshes for each reactor geometry are created using the blockMesh utility in OpenFOAM v2012. The reactor geometry is defined by two sinusoidal curves representing the upper and lower walls, with smooth transitions at the inlet and outlet regions. Each geometry consists of approximately 4000 cells. We integrate OpenFOAM with Python using the PyFoam library.
We run transient CFD simulations using scalarTransportFoam to track the tracer concentration in the water medium. The flow is governed by the convection-diffusion equation, with convection being the dominant transport mechanism. The plug flow performance is evaluated through the residence time distribution (RTD), obtained from the tracer concentration at the outlet. More than 100 cases are generated using Latin-hypercube sampling. For each transient case, 140 arrays are generated to capture a time period of 7 seconds, with data recorded every 0.05 seconds.
The GNN architecture comprises graph convolution layers that operate on the reactor mesh graph, capturing spatial dependencies and encoding geometric information. The node features include x and y coordinates, tracer concentration, and velocity components. The graph convolution layers are followed by pooling layers to reduce spatial dimensions and extract high-level features. The compressed flow representations are then fed into fully connected layers to predict velocity and tracer concentration fields at future time steps. The model is trained using a combination of mean squared error loss for flow predictions and a reconstruction loss for the autoencoder.
Our integrated framework demonstrates good accuracy and efficiency in flow predictions. On a test set of 10 unseen reactor geometries, the GNN surrogate model achieves low mean squared errors for both tracer concentration and velocity predictions compared to ground truth CFD simulations. Additionally, the GNN surrogate model provides more than a 100-fold speedup in computational time compared to traditional CFD simulations, enabling real-time flow predictions and efficient design space exploration.
This geometry-informed deep learning surrogate modelling approach showcases the potential for accurate and efficient flow predictions, real-time simulations, and uncertainty quantification across complex reactor geometries and can be extended to three-dimensional geometries. Future work will focus on integrating this approach with the multi-fidelity optimisation framework, reporting on optimisation time, and validating the designs through 3D printing and experimental testing of the reactors.
Acknowledgements: This work is supported by the EPSRC PREMIERE (EP/T000414/1) Programme Grant.
References
[1] J. R. McDonough, J. Armett, R. Law, and A. P. Harvey, âCoil-in-Coil Reactor: Augmenting Plug Flow Performance by Combining Different Geometric Features Using 3D Printing,â Ind. Eng. Chem. Res., vol. 58, no. 47, 2019, doi: 10.1021/acs.iecr.9b04239.
[2] M. J. Harding et al., â3D printing of PEEK reactors for flow chemistry and continuous chemical processing,â React. Chem. Eng., vol. 5, no. 4, 2020, doi: 10.1039/c9re00408d.
[3] M. C. Maier et al., â3D Printed Reactors for Synthesis of Active Pharmaceutical Ingredients in Continuous Flow,â Org. Process Res. Dev., vol. 24, no. 10, 2020, doi: 10.1021/acs.oprd.0c00228.
[4] Z. Bao, F. Yang, Z. Wu, S. Nyallang Nyamsi, and Z. Zhang, âOptimal design of metal hydride reactors based on CFD-Taguchi combined method,â Energy Convers. Manag., 2013, doi: 10.1016/j.enconman.2012.07.027.
[5] J. Ding, X. Wang, X. F. Zhou, N. Q. Ren, and W. Q. Guo, âCFD optimization of continuous stirred-tank (CSTR) reactor for biohydrogen production,â Bioresour. Technol., 2010, doi: 10.1016/j.biortech.2010.03.146.
[6] S. Hapke, G. A. Luinstra, and K. M. Zentel, âOptimization of a 3D-printed tubular reactor for free radical polymerization by CFD,â J. Flow Chem., 2021, doi: 10.1007/s41981-021-00154-5.
[7] N. Basha, T. Savage, J. McDonough, E. A. del Rio Chanona, and O. K. Matar, âDiscovery of mixing characteristics for enhancing coiled reactor performance through a Bayesian optimisation-CFD approach,â Chem. Eng. J., vol. 473, 2023, doi: 10.1016/j.cej.2023.145217.
[8] T. Savage, N. Basha, J. McDonough, O. K. Matar, and E. A. del Rio Chanona, âMulti-fidelity data-driven design and analysis of reactor and tube simulations,â Comput. Chem. Eng., vol. 179, 2023, doi: 10.1016/j.compchemeng.2023.108410.
[9] T. Savage, N. Basha, J. McDonough, O. K. Matar, and E. A. del Rio-Chanona, âMachine Learning-Assisted Discovery of Novel Reactor Designs via CFD-Coupled Multi-fidelity Bayesian Optimisation,â 2023. [Online]. Available: https://doi.org/10.48550/arXiv.2308.08841.
[10] S. W. Li, L. C. Xu, C. Zhang, S. Q. Zhang, and X. Hong, âReaction performance prediction with an extrapolative and interpretable graph model based on chemical knowledge,â Nat. Commun., vol. 14, no. 1, 2023, doi: 10.1038/s41467-023-39283-x.
[11] Z. Yang, Y. Dong, X. Deng, and L. Zhang, âAMGNET: multi-scale graph neural networks for flow field prediction,â Conn. Sci., vol. 34, no. 1, 2022, doi: 10.1080/09540091.2022.2131737.
[12] A. Gladstone, R. J., Rahmani, H., Suryakumar, V., Meidani, H., & Zareei, âMesh-based GNN surrogates for time-independent PDEs,â Sci. Rep., vol. 14, 2024, [Online]. Available: https://doi.org/10.1038/s41598-024-53185-y.
[13] S. Li, M. Zhang, and M. D. Piggott, âEnd-to-end wind turbine wake modelling with deep graph representation learning,â Appl. Energy, vol. 339, 2023, doi: 10.1016/j.apenergy.2023.120928.