SearcharxivSearch

arXiv subjects

Zhuyin Ren

Publications and source records attributed to Zhuyin Ren.

12 recordsLinked to original sources

Physics-Enforced Neural Ordinary Differential Equation for Chemical Kinetics Optimization in Reaction-Diffusion Systems

Calibrating chemical kinetics in a reaction-diffusion system is challenging because of complex dynamics governed by tightly coupled chemistry and transport, while experimental observations are often sparse and noisy. We propose a physics consistent diffusion-chemistry coupled neural ordinary differential equation (Diff-Chem Neural ODE) that embeds Arrhenius-structured reaction neurons into a fully differentiable streamline formulation and explicitly accounts for diffusion coupling. This design enables direct gradient-based analysis of kinetic parameters without sampling-based pretraining. We validate this method on burner-stabilized flat and stagnation reacting flows using mechanisms spanning different stiffness ranges. The proposed method reproduces species profiles with near-reference accuracy, whereas a pure chemistry Neural ODE that neglects diffusion coupling may misplace ignition and generate an incorrect thin reaction zone. Diff-Chem Neural ODE is more robust than pure chemistry Neural ODE and provides substantial speedups for gradient evaluation compared with fully discretized computations. In kinetics refinement, optimizing only a limited set of "primal" species reduces the loss by over 98% and simultaneously recovers unobserved variables, demonstrating physically consistent global control. Finally, tests with 1-20% noise in the objective show stable convergence without local overfitting, supporting its applicability under noisy measurements.

cs.CE

OptMetaOpenFOAM: Large Language Model Driven Chain of Thought for Sensitivity Analysis and Parameter Optimization based on CFD

Merging natural language interfaces with computational fluid dynamics (CFD) workflows presents transformative opportunities for both industry and research. In this study, we introduce OptMetaOpenFOAM - a novel framework that bridges MetaOpenFOAM with external analysis and optimization tool libraries through a large language model (LLM)-driven chain-of-thought (COT) methodology. By automating complex CFD tasks via natural language inputs, the framework empowers non-expert users to perform sensitivity analyses and parameter optimizations with markedly improved efficiency. The test dataset comprises 11 distinct CFD analysis or optimization tasks, including a baseline simulation task derived from an OpenFOAM tutorial covering fluid dynamics, combustion, and heat transfer. Results confirm that OptMetaOpenFOAM can accurately interpret user requirements expressed in natural language and effectively invoke external tool libraries alongside MetaOpenFOAM to complete the tasks. Furthermore, validation on a non-OpenFOAM tutorial case - namely, a hydrogen combustion chamber - demonstrates that a mere 200-character natural language input can trigger a sequence of simulation, postprocessing, analysis, and optimization tasks spanning over 2,000 lines of code. These findings underscore the transformative potential of LLM-driven COT methodologies in linking external tool for advanced analysis and optimization, positioning OptMetaOpenFOAM as an effective tool that streamlines CFD simulations and enhances their convenience and efficiency for both industrial and research applications. Code is available at https://github.com/Terry-cyx/MetaOpenFOAM.

cs.AI

MetaOpenFOAM 2.0: Large Language Model Driven Chain of Thought for Automating CFD Simulation and Post-Processing

Computational Fluid Dynamics (CFD) is widely used in aerospace, energy, and biology to model fluid flow, heat transfer, and chemical reactions. While Large Language Models (LLMs) have transformed various domains, their application in CFD remains limited, particularly for complex tasks like post-processing. To bridge this gap, we introduce MetaOpenFOAM 2.0, which leverages Chain of Thought (COT) decomposition and iterative verification to enhance accessibility for non-expert users through natural language inputs. Tested on a new benchmark covering simulation (fluid flow, heat transfer, combustion) and post-processing (extraction, visualization), MetaOpenFOAM 2.0 achieved an Executability score of 6.3/7 and a pass rate of 86.9%, significantly outperforming MetaOpenFOAM 1.0 (2.1/7, 0%). Additionally, it proved cost-efficient, averaging $0.15 per case. An ablation study confirmed that COT-driven decomposition and iterative refinement substantially improved task performance. Furthermore, scaling laws showed that increasing COT steps enhanced accuracy while raising token usage, aligning with LLM post-training scaling trends. These results highlight the transformative potential of LLMs in automating CFD workflows for industrial and research applications. Code is available at https://github.com/Terry-cyx/MetaOpenFOAM

cs.AI

MetaOpenFOAM: an LLM-based multi-agent framework for CFD

Remarkable progress has been made in automated problem solving through societies of agents based on large language models (LLMs). Computational fluid dynamics (CFD), as a complex problem, presents unique challenges in automated simulations that require sophisticated solutions. MetaOpenFOAM, as a novel multi-agent collaborations framework, aims to complete CFD simulation tasks with only natural language as input. These simulation tasks include mesh pre-processing, simulation and so on. MetaOpenFOAM harnesses the power of MetaGPT's assembly line paradigm, which assigns diverse roles to various agents, efficiently breaking down complex CFD tasks into manageable subtasks. Langchain further complements MetaOpenFOAM by integrating Retrieval-Augmented Generation (RAG) technology, which enhances the framework's ability by integrating a searchable database of OpenFOAM tutorials for LLMs. Tests on a benchmark for natural language-based CFD solver, consisting of eight CFD simulation tasks, have shown that MetaOpenFOAM achieved a high pass rate per test (85%), with each test case costing only $0.22 on average. The eight CFD simulation tasks encompass a range of multidimensional flow problems, covering compressible and incompressible flows with different physical processes. This demonstrates the capability to automate CFD simulations using only natural language input, iteratively correcting errors to achieve the desired simulations. An ablation study was conducted to verify the necessity of each component in the multi-agent system and the RAG technology. A sensitivity study on the randomness of LLM showed that LLM with low randomness can obtain more stable and accurate results. Additionally, MetaOpenFOAM owns the ability to identify and modify key parameters in user requirements, and excels in correcting bugs when failure match occur,which demonstrates the generalization of MetaOpenFOAM.

cs.AI

An investigation of subgrid mixing timescale modelling in LES of supersonic turbulent flames

The predictive numerical simulation of supersonic turbulent combustion, in which the turbulent intensity is high and the fuel/air mixture is near the flammability limit, remains challenging. An investigation of subgrid mixing timescale modelling in large eddy simulation (LES) of supersonic turbulent flames was carried out in this study. In the Partially Stirred Reactor (PaSR) combustion model, the dissipation-rate-based models estimate the mixing timescale by modeling dissipation rate, which may lead to incorrect estimation of mixing times at different grid resolutions. To solve the existing problem, a gradient-based mixing timescale estimation method was proposed. Subsequently, different approaches of subgrid mixing timescale in PaSR are compared and validated on a supersonic mixing layer, including a dissipation-rate-based model and the proposed gradient-based model. Sensitivity analysis of the model constants and grid resolution was also studied and compared with detailed DNS data. The results highlight the importance of mixing models to correctly handle turbulence/chemistry interactions in supersonic combustion and clearly indicate the proposed model can correctly estimate the subgrid mixing timescale at coarse grids and decline rapidly as it tends to DNS limit.

physics.flu-dyn

A dynamic combustion model for supersonic turbulent combustion

Supersonic combustion plays a vital role in various applications, including scramjets, dual-mode ramjets, and pulse detonation engines. However, the flame characteristics can vary significantly, depending on the application. To model supersonic combustion, large eddy simulation coupled with a partially stirred reactor (PaSR) is commonly used. This method assumes that reactions occur at turbulent fine flame structure in a computational cell, making it less effective for flames governed by not only turbulent mixing but also homogenous autoignition, which is common under supersonic flow. To address this limitation, this study proposes a novel dynamic combustion model to enable more versatile modeling of supersonic flames. The model utilizes a two-delta probability density function, which represents the sub-grid composition variation and models the filtered sub-grid reaction rate. The corresponding weights are dynamically modeled based on the level of cell composition inhomogeneity. The new dynamic model is tested in a supersonic combustion case study with a strut-cavity flame holder. Results demonstrate that the new dynamic model can properly recover the limits of supersonic flames that are primarily governed by homogenous autoignition and turbulent mixing.

physics.flu-dyn

Kinetics Parameter Optimization via Neural Ordinary Differential Equations

Chemical kinetics mechanisms are essential for understanding, analyzing, and simulating complex combustion phenomena. In this study, a Neural Ordinary Differential Equation (Neural ODE) framework is employed to optimize kinetics parameters of reaction mechanisms. Given experimental or high-cost simulated observations as training data, the proposed algorithm can optimally recover the hidden characteristics in the data. Different datasets of various sizes, types, and noise levels are tested. A classic toy problem of stiff Robertson ODE is first used to demonstrate the learning capability, efficiency, and robustness of the Neural ODE approach. A 41-species, 232-reactions JP-10 skeletal mechanism and a 34-species, 121-reactions n-heptane skeletal mechanism are then optimized with species' temporal profiles and ignition delay times, respectively. Results show that the proposed algorithm can optimize stiff chemical models with sufficient accuracy and efficiency. It is noted that the trained mechanism not only fits the data perfectly but also retains its physical interpretability, which can be further integrated and validated in practical turbulent combustion simulations.

physics.chem-ph

Neural Differential Equations for Inverse Modeling in Model Combustors

Monitoring the dynamics processes in combustors is crucial for safe and efficient operations. However, in practice, only limited data can be obtained due to limitations in the measurable quantities, visualization window, and temporal resolution. This work proposes an approach based on neural differential equations to approximate the unknown quantities from available sparse measurements. The approach tackles the challenges of nonlinearity and the curse of dimensionality in inverse modeling by representing the dynamic signal using neural network models. In addition, we augment physical models for combustion with neural differential equations to enable learning from sparse measurements. We demonstrated the inverse modeling approach in a model combustor system by simulating the oscillation of an industrial combustor with a perfectly stirred reactor. Given the sparse measurements of the temperature inside the combustor, upstream fluctuations in compositions and/or flow rates can be inferred. Various types of fluctuations in the upstream, as well as the responses in the combustor, were synthesized to train and validate the algorithm. The results demonstrated that the approach can efficiently and accurately infer the dynamics of the unknown inlet boundary conditions, even without assuming the types of fluctuations. Those demonstrations shall open a lot of opportunities in utilizing neural differential equations for fault diagnostics and model-based dynamic control of industrial power systems.

physics.flu-dyn

Arrhenius.jl: A Differentiable Combustion SimulationPackage

Combustion kinetic modeling is an integral part of combustion simulation, and extensive studies have been devoted to developing both high fidelity and computationally affordable models. Despite these efforts, modeling combustion kinetics is still challenging due to the demand for expert knowledge and optimization against experiments, as well as the lack of understanding of the associated uncertainties. Therefore, data-driven approaches that enable efficient discovery and calibration of kinetic models have received much attention in recent years, the core of which is the optimization based on big data. Differentiable programming is a promising approach for learning kinetic models from data by efficiently computing the gradient of objective functions to model parameters. However, it is often challenging to implement differentiable programming in practice. Therefore, it is still not available in widely utilized combustion simulation packages such as CHEMKIN and Cantera. Here, we present a differentiable combustion simulation package leveraging the eco-system in Julia, including DifferentialEquations.jl for solving differential equations, ForwardDiff.jl for auto-differentiation, and Flux.jl for incorporating neural network models into combustion simulations and optimizing neural network models using the state-of-the-art deep learning optimizers. We demonstrate the benefits of differentiable programming in efficient and accurate gradient computations, with applications in uncertainty quantification, kinetic model reduction, data assimilation, and model discovery.

physics.chem-ph

Large eddy simulation of a supersonic lifted hydrogen flame with sparse-Lagrangian multiple mapping conditioning approach

The Multiple Mapping Conditioning / Large Eddy Simulation (MMC-LES) approach is used to simulate a supersonic lifted hydrogen jet flame, which features shock-induced autoignition, shock-flame interaction, lifted flame stabilization, and finite-rate chemistry effects. The shocks and expansion waves, shock-reaction interactions and overall flame characteristics are accurately reproduced by the model. Predictions are compared with the detailed experimental data for the mean axial velocity, mean and root-mean-square temperature, species mole fractions, and mixture fraction at various locations. The predicted and experimentally observed flame structures are compared through scatter plots of species mole fractions and temperature against mixture fraction. Unlike most past MMC-LES which has been applied to low-Mach flames, in this supersonic flame case pressure work and viscous heating are included in the stochastic FDF equations. Analysis indicates that the pressure work plays an important role in autoignition induction and flame stabilization, whereas viscous heating is only significant in shear layers (but still negligibly small compared to the pressure work). The evolutions of particle information subject to local gas dynamics are extracted through trajectory analysis on representative fuel and oxidizer particles. The particles intermittently enter the extinction region and may be deviated from the full burning or mixing lines under the effects of shocks, expansion waves and viscous heating. The chemical explosive mode analysis performed on the Lagrangian particles shows that temperature, the H and OH radicals contribute dominantly to CEM respectively in the central fuel jet, fuel-rich and fuel-lean sides. The pronounced particle Damköhler numbers first occur in the fuel jet / coflow shear layer, enhanced at the first shock intersection point and peak around the flame stabilization point.

physics.flu-dyn

Kinetic Similarity between Extinction Strain Rate and Laminar Flame Speed

Extinction strain rate (ESR) and laminar flame speed (LFS) are fundamental properties of a fuel/air mixture that are often utilized as scaling parameters in turbulent combustion. While LFS at atmospheric and elevated pressures are extensively investigated, experimental measurements of ESR with counterflow premixed flames are very limited for flame instability often occurs near extinction, especially at high pressures. Due to the scarcity of ESR measurements, most combustion kinetic models are mainly validated and optimized against LFS. However, it is questionable whether the controlling reactions are the same for ESR and LFS such that those models are also valid for predicting ESR. This work quantifies the kinetic similarities between ESR and LFS by analyzing their kinetic sensitivity directions. The direction is represented by a unit vector composed of the normalized sensitivity of ESR or LFS to the rate constant for each elemental reaction. Consequently, the similarity between the two directions is measured by the inner product of the corresponding unit vectors. The sensitivity directions of ESR and LFS are found parallel for various fuels, equivalence ratios, and pressures. Furthermore, sensitivity directions at various strain rates are also similar for the maximum temperature, local temperature at various locations in the flame coordinate, and ESR in counterflow premixed flames. These findings suggest that LFS and ESR are similarly effective as the target for constraining and optimizing rate constants in kinetic models. In addition, the independence of the sensitivity directions on the strain rate also enables us to perform uncertainty quantification for turbulent flames with a wide range of strain rates based on the kinetic sensitivity of ESR and LFS.

physics.flu-dyn

Uncertainty Propagation in Deep Neural Network Using Active Subspace

The inputs of deep neural network (DNN) from real-world data usually come with uncertainties. Yet, it is challenging to propagate the uncertainty in the input features to the DNN predictions at a low computational cost. This work employs a gradient-based subspace method and response surface technique to accelerate the uncertainty propagation in DNN. Specifically, the active subspace method is employed to identify the most important subspace in the input features using the gradient of the DNN output to the inputs. Then the response surface within that low-dimensional subspace can be efficiently built, and the uncertainty of the prediction can be acquired by evaluating the computationally cheap response surface instead of the DNN models. In addition, the subspace can help explain the adversarial examples. The approach is demonstrated in MNIST datasets with a convolutional neural network. Code is available at: https://github.com/jiweiqi/nnsubspace.

stat.ML