The invention relates to the cross technical field of fluid
mechanics and
machine learning, and discloses a particle fluid two-phase flow
simulation and reverse optimization method based on
deep learning. The method comprises the following steps: constructing a two-phase flow
coupling simulation framework based on a fusion
discrete element method and smoothed particle fluid dynamics; the drag force,
buoyancy and capillary force between particles and fluid are introduced, and the calculation efficiency is improved through GPU parallel acceleration; a graph neural network is adopted to establish a particle-level dynamic interaction modeling framework, and coding and prediction of
solid particles and fluid particles are independently processed; a differentiable reverse design
system is further developed, and
layout parameters of a flow control structure are dynamically optimized based on a
gradient descent method by combining automatic differential characteristics of GNN and surrounding target functions such as flow collapse degree and
centroid offset, so that effective suppression of two-phase flow destructive behaviors and
system performance optimization are realized. The method has high-precision
simulation and efficient optimization capabilities, and is suitable for complex two-phase flow
engineering scenes such as dam burst and
debris flow prevention and control.