Implementation of a Physical Model in the Unreal Engine Game Engine for Computer Simulation of the Stress-Strain State of Porous Media Using the MPM/APIC Method
This article focuses on the formalisation of a physical model of a porous medium and the architecture of its practical implementation in the Unreal Engine game engine. Unlike the review stage, this work examines not only the feasibility of using MPM/APIC, but also a specific scheme for storing material state, numerical stress updates, momentum transfer between particles and the mesh, as well as the organisation of the computational pipeline within the game engine. The physical model is formulated in a reduced continuous formulation, where the porous medium is treated as a compressible elastoplastic material with a pressure-dependent yield strength. Porosity in the model is accounted for not through full multiphase poromechanics, but through density, volume change, plastic compaction, and compaction-dependent effective stiffness parameters. Compressible hyperelastic energy is used to describe the elastic response, and for irreversible deformations, a Drucker–Prager-type yield criterion with controlled dilatation and hardening is employed. For numerical discretisation, the Material Point Method was used in combination with the Affine Particle-In-Cell method with velocity transport. This approach allows the Lagrangian deformation history to be preserved on the particles, force calculations to be performed on a regular background grid, and numerical diffusion to be reduced compared to the classical PIC scheme. The order of execution of the P2G (particle-to-grid) stages, the calculation of internal forces, the updating of nodal velocities, contact corrections, the G2P (grid-to-particle) stage, and the updating of the deformation gradient and plastic state are described separately. The proposed Unreal Engine architecture encompasses the script integration layer, a C++ simulation module, a GPU pipeline based on compute shaders and the Render Dependency Graph, a buffer layer with StructuredBuffer/UAV/SRV resources, and a Niagara-based rendering layer. This approach ensures scalability, separates simulation from rendering, and enables the use of simulation in both scientific visualisation tasks and real-time interactive applications.
Authors
- Наталія Анатоліївна Жуковська (ORCID: https://orcid.org/0000-0001-7839-0684)
- Viktor Bykov (ORCID: https://orcid.org/0009-0008-6080-869X)
Institutions
- National University of Water and Environmental Engineering (UA)
Publication Details
- Journal
- Mathematical and computer modelling Series Technical sciences
- Published
- 2026-11-30
- DOI
- https://doi.org/10.32626/2308-5916.2026-30.5-16
- Primary Topic
- Fluid Dynamics Simulations and Interactions
- Type
- article
- Field-Weighted Citation Impact
- 0.00