Simulation and Visualization of Dynamic Systems in Virtual Reality Using SolidWorks, MATLAB/Simulink, and Unity
This paper introduces a novel way to play dynamic animations of rigid body assemblies with internal motions in Virtual Reality (VR). Through previous research over a decade ago, an inexpensive, relatively straight-forward process has been developed that entailed using MATLAB/Simulink, SolidWorks, and movie player software to permit one to view 2D mp4 files, such as on a laptop, smart phone, etc. Inspired by the usefulness of these previous results, the approach presented here targets a VR environment, clearly representing a technological leap over viewing 2D mp4 files. It's made possible by recent advances in VR & gaming software (e.g. Unity) along with some unique interfacing, including use of CADlink, to permit importation of CAD files, such as from SolidWorks, into Unity. Those interested in VR visualization of their dynamic system can use the step-by-step process presented as a manual to guide them through the hardware and software setup and ultimately learn how to use MATLAB/Simulink, SolidWorks, and Unity interactively to visualize their simulations in VR. Another key point is that the analyst has considerable control and access over each step in the process, including dynamic modeling, unlike that commonly found in large, structured dynamic simulation solftware packages.
As an example to illustrate the process, a dynamic simulation of a classic slider-pendulum system was created using MATLAB/Simulink, which in effect numerically solves the ordinary differential equations of motion. The time-dependent displacement data for both the slider's lateral movement and pendulum's angle, along with a time vector in incremental difference form, was save as an Excel file. In turn, it was read by a C# script residing within Unity to permit an animation playback scenario of the SolidWorks CAD model of the entire slider-pendulum system (previously brought into Unity via CADlink with some reassembly), viewed more generally as an assembly with internal motions. Unity, a popular open-source piece of VR game development software used to produce both 2D and 3D video games and simulations, then serves as a platform to access the virtual world with the aid of an Oculus Rift (or Quest) VR headset and two hand controllers. In the end, the VR viewer can physiclly move around in the VR environment while at the same time view the playback motion of the slider-pendulum system from continuously varying vantage points, just as one would expect in the real world. This work signifiancantly advancs the typical visualization experience with respect to dynamic system simulation & animation in addition to being widely applicable to generic mechanical assemblies.
Simulation and Visualization of Dynamic Systems in Virtual Reality Using SolidWorks, MATLAB/Simulink, and Unity
Category
Technical Paper Publication
Description
Session: 07-02-04 General Dynamics, Vibration and Control IV
ASME Paper Number: IMECE2020-23485
Session Start Time: November 19, 2020, 05:35 PM
Presenting Author: Ismail Akharas
Presenting Author Bio: Ismail Akharas is a former graduate student at the University of St. Thomas. He now holds a Master of Systems Engineering from the University of St. Thomas and a Bachelor of Mechanical Engineering from the University of Minnesota. He currently works as mechanical engineer at Ergotron in Eagan Minnesota. He has over eight years of experience designing medical equipment fixtures for Ergotron and building industrial fans at Twin City Fan and Blower company in Plymouth Minnesota. Ismail attended two classes that Professor Michael Hennessey taught at St. Thomas, one of which involved writing a project paper focused on VR and Solidworks technologies. Considering the work experience Ismail has in design engineering and SolidWorks modeling, the two decided to write a paper together on the subject to try to find a novel way to facilitate viewing CAD models in Virtual Reality and animating them with MATLAB.
Authors: Ismail Akharas Ergotron, Inc.
Michael Hennessey Univ Of St Thomas
Eric Tornoe University of St. Thomas