In this work, an artificial neural network (ANN) aided vapor–liquid equilibrium (VLE) model is developed and coupled with a fully compressible computational fluid dynamics (CFD) solver to simulate the transcritical processes occurring in high-pressure liquid-fueled propulsion systems. The ANN is trained in Python using TensorFlow, optimized for inference using Open Neural Network Exchange Runtime, and coupled with a C++ based CFD solver. This plug-and-play model/methodology can be used to convert any multi-component CFD solver to simulate transcritical processes using only open-source packages, without the need of in-house VLE model development. The solver is then used to study high-pressure transcritical shock-droplet interaction in both two- and four-component systems and a turbulent temporal mixing layer (TML), where both qualitative and quantitative agreement (maximum relative error less than 5%) is shown with respect to results based on both direct evaluation and the state-of-the-art in situ adaptive tabulation (ISAT) method. The ANN method showed a 6 times speed-up over the direct evaluation and a 2.2-time speed-up over the ISAT method for the two-component shock-droplet interaction case. The ANN method is faster than the ISAT method by 12 times for the four-component shock-droplet interaction. A 7 times speed-up is observed for the TML case for the ANN method compared to the ISAT method while achieving a data compression factor of 2881. The ANN method also shows intrinsic load balancing, unlike traditional VLE solvers. A strong parallel scalability of this ANN method with the number of processors was observed for all the three test cases. Code repository for 0D VLE solvers, and C++ ANN interface—https://github.com/UMN-CRFEL/ANN_VLE.git.
Read full abstract