Back to Projects

MPM Fluid Simulation

Real-time Material Point Method simulation with melting transitions

Overview

I worked with a group of 2 others to complete this project as part of our final project for 3D Graphics and Rendering at USC. This project implements a real-time Material Point Method (MPM) simulation that models the melting transition from solid to liquid using a hybrid particle-grid framework. The simulation provides a sophisticated approach to fluid dynamics and material deformation, combining the accuracy of particle-based methods with the efficiency of grid-based computations.

Technologies

C++ OpenGL CMake MPM

Key Features

  • Mesh importer with surface and volume subsampling
  • Melting transition simulation from solid to liquid states
  • Hybrid MPM solver with APIC interpolation
  • Real-time grid and node activation visualization
  • Elastoplastic deformation using co-rotational stress

Implementation

  • Implemented hybrid particle-grid framework for efficient computation
  • Built mesh processing pipeline with surface and volume subsampling
  • Created real-time visualization system for grid and node activations
  • Integrated elastoplastic deformation using co-rotational stress models
  • Implemented advanced OpenGL rendering with custom shaders
  • Optimized performance for real-time interactive simulation