1Department of Computer Science, Stony Brook University, Stony Brook, USA
2Ward Melville High School, East Setauket, USA
3LISVH, Stony Brook University, Stony Brook, USA
American Journal of Mechanical Engineering.
2026,
Vol. 14 No. 1, 14-22
DOI: 10.12691/ajme-14-1-3
Copyright © 2026 Science and Education PublishingCite this paper: Peizheng Ma, Benjamin Ma, Nianhua Guo. Visualization of Permanent Magnet Motor Hydrodynamics.
American Journal of Mechanical Engineering. 2026; 14(1):14-22. doi: 10.12691/ajme-14-1-3.
Correspondence to: Peizheng Ma, Department of Computer Science, Stony Brook University, Stony Brook, USA. Email:
peizheng.ma@stonybrook.eduAbstract
This paper presents a real-time interactive system for simulating and visualizing motor-driven fluid hydrodynamics. The framework integrates a torque-based motor model with Heightfield and Smoothed Particle Hydrodynamics (SPH) fluid simulations. Utilizing modern OpenGL and an ImGui-based control interface, the system achieves consistent real-time performance on a CPU-based laptop and effectively illustrates the differences between surface-only and volumetric fluid models. Quantitative evaluation on a consumer-grade laptop demonstrates real-time performance near 60 FPS for SPH simulations up to approximately 2,000 particles, and interactive rates (15–30 FPS) up to about 5,000 particles. These results validate the system’s suitability for interactive visualization, education, and exploratory research under modest hardware constraints, while acknowledging limitations due to weakly compressible SPH, simplified boundary handling, and heuristic impeller–fluid coupling.
Keywords