SearcharxivSearch

arXiv subjects

Xiangyu Hu

Publications and source records attributed to Xiangyu Hu.

At least 19 recordsLinked to original sources

Towards heterogeneous parallelism for SPHinXsys

Simulations based on particle methods, such as Smoothed Particle Hydrodynamics (SPH), are known to be computationally demanding. While such methods have for long been executed in parallel on multi-core CPUs, in recent years the increasing adoption of many-core accelerators, such as GPUs. However, hardware fragmentation and vendor-specific programming interfaces are still characterizing their market. Hence, support for various hardware configurations may easily lead to non-trivial and less maintainable implementations. To leverage over some higher-level specifications have become available recently, such as the SYCL programming standard, this work highlights the initial effort in adopting the SYCL standard for the execution of SPHinXsys, an open-source multi-physics library. The result is an execution model able to run the same implementation on variable (heterogeneous) hardware, with considerable speed-up compared to the current multi-core CPU parallelization. Among others, representation of data-structures for parallel access, communication strategies, and parallel methods for data sorting will be topics discussed in depth. Benchmarks has also been presented, showcasing performance comparisons between the current multi-core CPU implementation and the newly introduced SYCL parallelization with a GPU back-end.

cs.CE

A unified SPH framework for shell-related interactions

A unified Smoothed Particle Hydrodynamics (SPH) framework is proposed to simulate interaction dynamics involving thin shells modeled by a reduced-dimensional, single-layer particle discretization, as opposed to full-dimensional SPH solids. The framework encompasses one-sided fluid-shell interactions, with the fluid present on only one side of the shell, as well as solid-shell, shell-shell, and shell-self interactions The study introduces a novel concept of imaginary shell contact particles, generated by projecting real shell particles along the local normal direction within the cut-off radius of the fluid particle, thereby mapping this reduced-dimensional shell model into a full-dimensional representation. With the volume of the imaginary particles defined based on the local shell curvature, the projection preserves kernel completeness for fluid-shell interactions while leaving the fluid-structure interaction (FSI) dynamics unchanged, such that the fluid-shell coupling algorithm is the same as in standard fluid-solid coupling. In addition, a particle-to-particle contact model for solid-solid interactions is developed by analogy to fluid dynamics: a contact density is computed using a fluid-style density initialization, and the resulting contact forces follow a momentum-equation-inspired formulation. Combined with the projection strategy, this contact formulation is directly extended to efficiently handle shell-related contact problems. The proposed method is validated using a series of benchmark tests, demonstrating stable and accurate performance across diverse interaction scenarios.

physics.flu-dyn

S^2F-Net:A Robust Spatial-Spectral Fusion Framework for Cross-Model AIGC Detection

The rapid development of generative models has imposed an urgent demand for detection schemes with strong generalization capabilities. However, existing detection methods generally suffer from overfitting to specific source models, leading to significant performance degradation when confronted with unseen generative architectures. To address these challenges, this paper proposes a cross-model detection framework called S 2 F-Net, whose core lies in exploring and leveraging the inherent spectral discrepancies between real and synthetic textures. Considering that upsampling operations leave unique and distinguishable frequency fingerprints in both texture-poor and texture-rich regions, we focus our research on the detection of frequency-domain artifacts, aiming to fundamentally improve the generalization performance of the model. Specifically, we introduce a learnable frequency attention module that adaptively weights and enhances discriminative frequency bands by synergizing spatial texture analysis and spectral dependencies.On the AIGCDetectBenchmark, which includes 17 categories of generative models, S 2 F-Net achieves a detection accuracy of 90.49%, significantly outperforming various existing baseline methods in cross-domain detection scenarios.

cs.CV

Contiguous Storage of Grid Data for Heterogeneous Computing

Structured Cartesian grids are a fundamental component in numerical simulations. Although these grids facilitate straightforward discretization schemes, their na\"{i}ve use in sparse domains leads to excessive memory overhead and inefficient computation. Existing frameworks address are primarily optimized for CPU execution and exhibit performance bottlenecks on GPU architectures due to limited parallelism and high memory access latency. This work presents a redesigned storage architecture optimized for GPU compatibility and efficient execution across heterogeneous platforms. By abstracting low-level GPU-specific details and adopting a unified programming model based on SYCL, the proposed data structure enables seamless integration across host and device environments. This architecture simplifies GPU programming for end-users while improving scalability and portability in sparse-grid and gird-particle coupling numerical simulations.

cs.CE

A GPU-Accelerated Fully Coupled Fluid-Solid-Thermal SPH Solver for Industrial Gearboxes: Application to Lubricant Flow and Heat Transfer in a Bevel-Helical Reducer

This study presents a GPU-accelerated, fully coupled fluid-solid-thermal Smoothed Particle Hydrodynamics (SPH) framework for high-fidelity analysis of splash-lubricated gearboxes. A series of thermo-fluid simulations of a bevel-helical gear reducer were conducted by varying shaft speed, oil immersion depth, and lubricant viscosity to evaluate their influence on splash dynamics, churning losses, and lubricant temperature rise. The results show that churning losses increase by nearly an order of magnitude as the speed rises from 150 to 600 rad/s, while the corresponding lubricant temperature rise becomes approximately three to four times smaller. Variations in immersion depth and viscosity adjust the heating rate only modestly-typically within 10-20%-with their influence reversing between low- and high-speed regimes. The GPU backend provides a 7-9 speedup over a high-performance desktop CPU, enabling multi-million-particle, full-gearbox thermo-fluid simulations without specialized hardware. These findings demonstrate the feasibility of high-fidelity thermal analysis of industrial gearboxes and provide quantitative insight into the coupled splash, churning, and heat-transfer mechanisms that govern gearbox thermal performance.

physics.flu-dyn

Trans-Arctic route feasibility on a pan-Arctic grid under bathymetric and sea-ice constraints

Climate driven reductions in Arctic sea ice have renewed interest in trans Arctic shipping, but adoption remains limited by basic questions of route feasibility, safety and excess distance. Existing studies mostly compare idealised great circle shortcuts or use full weather routing systems, leaving a gap for simple basin scale diagnostics on realistic bathymetry and sea ice. We develop an offline graph based framework on a 0.5 degree pan Arctic grid that combines GEBCO 2024 bathymetry with a summer 2018 Arctic sea ice reanalysis from the Copernicus Marine Environment Monitoring Service (CMEMS). An A* pathfinding algorithm is applied to a canonical Europe Asia origin destination pair to quantify route availability and route length inflation relative to a great circle. Enforcing sea only feasibility increases route length by about 10 percent before depth and ice constraints are applied. Depth thresholds representative of under keel clearance (hmin = 20-50 m) remove up to roughly 15 percent of the sea mask but preserve a trans Arctic connection for hmin = 20 m. Summer sea ice exerts a strong seasonal control: continuous ice safe routes emerge only from mid August, with distances inflated by roughly 20-25 percent even in late summer. When depth and ice constraints are imposed jointly, only about 75 percent of sea cells remain safe and no continuous joint safe trans Arctic route exists in the tested season. The framework provides a basin scale screening tool for Arctic shipping and a baseline for forecast driven, multi objective routing studies.

physics.geo-ph

Patient-Scale Blood Flow Analysis in Artery Stent Implantation via Smoothed-Particle Hydrodynamics

A unified Smoothed Particle Hydrodynamics (SPH) simulation framework for coronary stent implantation is developed, which unifies weakly compressible hemodynamics, Neo-Hookean solids, and stent-artery contacts, based on a multi-resolution particle discretization. Prior to application, feasibility and accuracy are established via three baseline validations: (i) poiseuille flow in a two-dimensional channel with prescribed parabolic inflow and a pressure outlet, maintaining parabolic profiles with low Root Mean Squared Error of Prediction (RMSEP); (ii) channel flow initialized with a uniform velocity field and driven by a specified inlet-outlet pressure differential, with agreement to reference profiles quantified by low RMSEP at five reference instants; and (iii) a three-ring impact benchmark in solid mechanics, capturing large deformation, multi-body contact, and self-contact. The validated framework is subsequently applied to a coronary bifurcation with a focal stenosis, where flow-field diagnostics reveal acceleration at the stenotic throat, near-wall low-velocity zones, and co-localization of elevated pressure with increased Von Mises stress at the bifurcation and inlet. Following simulated stent implantation, velocity transitions across the stenosis become smoother, pressure gradients are reduced, and the fractional flow reserve increases from 0.45 to 0.91. These results demonstrate that the proposed SPH framework yields quantitatively reliable, clinically interpretable hemodynamic metrics alongside robust solid-solid contact predictions, thereby supporting rigorous analysis and pre-procedural planning of vascular interventions.

physics.flu-dyn

An efficient implementation of the bidirectional buffer: towards laminar and turbulent open-boundary flows

To effectively handle flows characterized by strong backflow and multiple open boundaries within particle-based frameworks, this study introduces three enhancements to improve the consistency, independence, and accuracy of the buffer-based open boundary condition in SPHinXsys. First, to improve the buffer consistency, the continuum hypothesis is introduced to prevent the excessive particle addition induced by strong backflow. Secondly, the independence of the bidirectional buffer is enhanced through region-constrained and independent labeling schemes, which effectively eliminate buffer interference and erroneous particle deletion in complex open-boundary flows. Thirdly, the original zeroth-order consistent pressure boundary condition is upgraded to first-order consistency by introducing a mirror boundary treatment for the correction matrix. The implementation is based on the rigorously validated weakly compressible smoothed particle hydrodynamics coupled with Reynolds-averaged Navier-Stokes (WCSPH-RANS) method, and both laminar and turbulent flow simulations are performed. Four test cases, including straight and U-shaped channel flows, a plane jet, and the flow in a 3D self-rotational micro-mixer, are conducted to comprehensively validate the proposed improvements. Among these cases, the turbulent plane jet is successfully simulated at a moderate resolution within a very compact computational domain involving strong backflow, a condition that is usually challenging for mesh-based methods. The three improvements require only minor modifications to the code framework, yet they yield significant performance gains.

physics.flu-dyn

Toward Efficient FSI Modeling in Patient-Specific Arteries: SPH Simulation of Blood Flow in Thin Deformable Vessels

Accurate simulation of blood flow in deformable vessels is critical in cardiovascular research for understanding disease progression and informing clinical decision-making. However, due to the thin-walled nature of arteries, traditional smoothed particle hydrodynamics (SPH) approaches based on full-dimensional volume modeling often require extremely fine particle spacing to ensure numerical convergence for the solid mechanics. This, in turn, leads to redundant resolution in the fluid domain to maintain sufficient kernel support near the fluid-solid interface in fluid-structure interaction (FSI) simulations. To address this limitation, we propose an efficient reduced-dimensional shell-based SPH method for modeling thin-walled deformable arteries, and conduct FSI for capturing hemodynamics and arterial wall mechanics. Through a series of validation cases, the proposed shell model demonstrates comparable accuracy in fluid dynamics to the volume model, while achieving faster convergence in solid mechanics and reduced computational cost. We further investigate the influence of wall compliance on flow transitions and key hemodynamic indices, highlighting the necessity of FSI modeling over rigid-wall assumptions. Finally, the method is applied to two patient-specific vascular geometries, i.e. the carotid artery and the aorta, which demonstrates its robustness, efficiency and physiological relevance in realistic cardiovascular simulations.

cs.CE

Data Fusion and Machine Learning for Ship Fuel Consumption Modelling -- A Case of Bulk Carrier Vessel

There is an increasing push for operational measures to reduce ships' bunker fuel consumption and carbon emissions, driven by the International Maritime Organization (IMO) mandates. Key performance indicators such as the Energy Efficiency Operational Indicator (EEOI) focus on fuel efficiency. Strategies like trim optimization, virtual arrival, and green routing have emerged. The theoretical basis for these approaches lies in accurate prediction of fuel consumption as a function of sailing speed, displacement, trim, climate, and sea state. This study utilized 296 voyage reports from a bulk carrier vessel over one year (November 16, 2021 to November 21, 2022) and 28 parameters, integrating hydrometeorological big data from the Copernicus Marine Environment Monitoring Service (CMEMS) with 19 parameters and the European Centre for Medium-Range Weather Forecasts (ECMWF) with 61 parameters. The objective was to evaluate whether fusing external public data sources enhances modeling accuracy and to highlight the most influential parameters affecting fuel consumption. The results reveal a strong potential for machine learning techniques to predict ship fuel consumption accurately by combining voyage reports with climate and sea data. However, validation on similar classes of vessels remains necessary to confirm generalizability.

cs.LG

On zero-order consistency residue and background pressure for the conservative SPH fluid dynamics

As one of the major challenges for the conservative smoothed particle hydrodynamics (SPH) method, the zero-order consistency issue, although thought to be mitigated by the particle regularization scheme, such as the transport velocity formulation, significantly damps the flow in a long channel for both laminar and turbulent simulations. Building on this finding, this paper not only thoroughly analyzes the damping reason in this pressure-driven channel flow, but also relates this problem with the excessive numerical dissipation in the gravity-driven free-surface flow. The common root cause of the non-physical numerical damping in the two typical flow scenarios, the zero-order gradient consistency residue, is exposed. The adverse influence of the background pressure on the residue for the two scenarios is revealed and discussed. To comprehensively understand the behavior of the residue and mitigate its potential adverse effects, we conduct both theoretical analysis and numerical experiments focusing on the key sensitive factors. For studying the residue-induced non-physical energy dissipation in the gravity-driven free-surface flow, the water depth and input dynamic pressure in the inviscid standing wave case are tested. To investigate the velocity loss in the pressure-driven channel flow, we examine the effects of the channel length, resolution, and outlet pressure. The state-of-the-art reverse kernel gradient correction technique is introduced for the two typical flows, and proved to be effective in reducing the residue effect, but we find its correction capability is fundamentally limited. Finally, the FDA nozzle, an engineering benchmark, is tested to demonstrate the residue influence in a complex geometry, highlighting the necessity of correction schemes in scenarios with unavoidable high background pressure.

physics.flu-dyn

Sloshing suppression with a controlled elastic baffle via deep reinforcement learning and SPH simulation

This study employed smoothed particle hydrodynamics (SPH) as the numerical environment, integrated with deep reinforcement learning (DRL) real-time control algorithms to optimize the sloshing suppression in a tank with a centrally positioned vertical elastic baffle. Compared to rigid baffle movement and active strain control methods, the active-controlled movable elastic baffle, which remains undeformed at its base, achieved the best performance with an 81.63% reduction in mean free surface amplitude. A cosine-based expert policy derived from DRL data is also extracted, resulting in a comparable 76.86% reduction in a three-dimensional (3D) numerical simulation. Energy analyses showed that elastic baffle motion effectively decreased system energy by performing negative work on the fluid, reducing kinetic and potential energy. The DRL-based and expert policies also demonstrated robust performance across varying excitation frequencies and water depths. Specifically, rigid baffles proved more effective at frequencies below the system's first natural frequency, while elastic baffles exhibited superior performance at higher frequencies. Changes in water depth minimally affected the effectiveness of control policies, though they significantly influenced elastic baffle deformation behavior. Overall, the sloshing suppression efficiency consistently ranged between 70% and 80%, confirming DRL-informed control methods' versatility and effectiveness under diverse operating conditions.

physics.flu-dyn

Multiphase SPH for surface tension: resolving zero-surface-energy modes and achieving high Reynolds number simulations

This study introduces a Riemann-based Smoothed Particle Hydrodynamics (SPH) framework for the stable and accurate simulation of surface tension in multiphase flows, with density and viscosity ratios as high as 1000 and 100, respectively. The methodology begins with the computation of surface stress, from which surface tension is derived, ensuring the conservation of momentum. For the first time, this study identifies the root cause of particle disorder at fluid-fluid interfaces, attributed to a numerical instability defined herein as \textit{zero-surface-energy modes}. To address this, we propose a novel penalty force method, which eliminates zero-surface-energy modes and significantly enhances the overall stability of the simulation. Importantly, the penalty force correction term is designed to maintain momentum conservation. The stability and accuracy of the proposed framework are validated through several benchmark cases with analytical solutions, performed under both two-dimensional and three-dimensional conditions. Furthermore, the robustness of the method is demonstrated in a three-dimensional high-velocity droplet impact scenario, achieving stable performance at high Reynolds numbers ($Re=10000$) and Weber numbers ($We=25000$). To the best of our knowledge, this represents the first successful demonstration of a mesh-free method achieving stable multiphase flow simulations under such extreme $Re$ and $We$ conditions. A qualitative comparison with previous experimental results is also conducted, confirming the reliability of the simulation outcomes. An open-source code is provided for further in-depth study.

physics.flu-dyn

Corrected Riemann smoothed particle hydrodynamics method for multi-resolution fluid-structure interaction

As a mesh-free method, smoothed particle hydrodynamics (SPH) has been widely used for modeling and simulating fluid-structure interaction (FSI) problems. While the kernel gradient correction (KGC) method is commonly applied in structural domains to enhance numerical consistency, high-order consistency corrections that preserve conservation remain underutilized in fluid domains despite their critical role in FSI analysis, especially for the multi-resolution scheme where fluid domains generally have a low resolution. In this study, we incorporate the reverse kernel gradient correction (RKGC) formulation, a conservative high-order consistency approximation, into the fluid discretization for solving FSI problems. RKGC has been proven to achieve exact second-order convergence with relaxed particles and improve numerical accuracy while particularly enhancing energy conservation in free-surface flow simulations. By integrating this correction into the Riemann SPH method to solve different typical FSI problems with a multi-resolution scheme, numerical results consistently show improvements in accuracy and convergence compared to uncorrected fluid discretization. Despite these advances, further refinement of correction techniques for solid domains and fluid-structure interfaces remains significant for enhancing the overall accuracy of SPH-based FSI modeling and simulation.

cs.CE

A weakly compressible SPH method for RANS simulation of wall-bounded turbulent flows

This paper presents a Weakly Compressible Smoothed Particle Hydrodynamics (WCSPH) method for solving the two-equation Reynolds-Averaged Navier-Stokes (RANS) model. The turbulent wall-bounded flow with or without mild flow separation, a crucial flow pattern in engineering applications, yet rarely explored in the SPH community, is simulated. The inconsistency between the Lagrangian characteristic and RANS model, mainly due to the intense particle shear and near-wall discontinuity, is firstly revealed and addressed by the mainstream and nearwall improvements, respectively. The mainstream improvements, including Adaptive Riemann-eddy Dissipation (ARD) and Limited Transport Velocity Formulation (LTVF), address dissipation incompatibility and turbulent kinetic energy over-prediction issues. The nearwall improvements, such as the particle-based wall model realization, weighted near-wall compensation scheme, and constant $y_p$ strategy, improve the accuracy and stability of the adopted wall model, where the wall dummy particles are still used for future coupling of solid dynamics. Besides, to perform rigorous convergence tests, an level-set-based boundary-offset technique is developed to ensure consistent $y^+$ across different resolutions. The benchmark wall-bounded turbulent cases, including straight, mildly- and strongly-curved, and Half Converging and Diverging (HCD) channels are calculated. Good convergence is, to our best knowledge, firstly achieved for both velocity and turbulent kinetic energy for the SPH-RANS method. All the results agree well with the data from the experiments or simulated by the Eulerian methods at engineering-acceptable resolutions. The proposed method bridges particle-based and mesh-based RANS models, providing adaptability for other turbulence models and potential for turbulent fluid-structure interaction (FSI) simulations.

physics.flu-dyn

Heat transfer simulation of window frames with SPHinXsys

Maintaining a comfortable temperature inside a building requires appropriate thermal insulation of windows, which can be optimised iteratively with numerical simulation. Smoothed particle hydrodynamics(SPH) is a fully Lagrangian method widely used for simulating multi-physics applications with high computational efficiency and accuracy. It is advantageous in physically coupled problems such as heat-fluid-solid or any other type of physically coupled simulations. The focus of this study is to simulate the heat transfer process in various window frames under convective boundary conditions according to ISO10077-2:2012. This paper demonstrates the accuracy and compatibility of SPH when dealing with heat transfer problems, which ensures further development of thermal coupling with other physical fields. The results and methods used in this paper provide some guidance on how to properly handle heat transfer simulations using SPH, which can be extended to multi-physics coupled simulations in the future.

cs.CE

The efficient implementation of transport velocity formulation

The standard smoothed particle hydrodynamics (SPH) method suffers from tensile instability, resulting in particle clumping and void regions under negative pressure conditions. In this study, we extend the transport-velocity formulation of Adami et al. (2013) \cite{adami2013transport} in the weakly-compressible SPH (WCSPH) framework to address this long-standing issue. Rather than relying on background pressure, our modified and improved transport-velocity correction scales directly to the smoothing length, making it suitable for variable-resolution flows. Additionally, we introduce a limiter to the new formulation to prevent overcorrection, especially for flow with small velocities. These modifications enhance the general applicability of the transport velocity in fluid dynamics. Numerical tests involving low-velocity and variable-resolution cases demonstrate that the new formulation offers a general and accurate solution for multi-physics SPH simulations.

physics.flu-dyn

Adaptive optimization of wave energy conversion in oscillatory wave surge converters via SPH simulation and deep reinforcement learning

The nonlinear damping characteristics of the oscillating wave surge converter (OWSC) significantly impact the performance of the power take-off system. This study presents a framework by integrating deep reinforcement learning (DRL) with numerical simulations of OWSC to identify optimal adaptive damping policy under varying wave conditions, thereby enhancing wave energy harvesting efficiency. Firstly, the open-source multiphysics libraries SPHinXsys and Simbody are employed to establish the numerical environment for wave interaction with OWSCs. Subsequently, a comparative analysis of three DRL algorithms-proximal policy optimization (PPO), twin delayed deep deterministic policy gradient (TD3), and soft actor-critic (SAC)-is conducted using the two-dimensional (2D) numerical study of OWSC interacting with regular waves. The results reveal that artificial neural networks capture the nonlinear characteristics of wave-structure interactions and provide efficient PTO policies. Notably, the SAC algorithm demonstrates exceptional robustness and accuracy, achieving a 10.61% improvement in wave energy harvesting. Furthermore, policies trained in a 2D environment are successfully applied to the three-dimensional (3D) study, with an improvement of 22.54% in energy harvesting. Additionally, the study shows that energy harvesting is improved by 6.42% for complex irregular waves. However, for the complex dual OWSC system, optimizing the damping characteristics alone is insufficient to enhance energy harvesting.

cs.CE