star simulation with OpenCL

birth of a massive star. for my little #astrophysics exploration, i’ve created a star simulation using openCL in houdini. its based on nbody #physics model, only driven by #gravity. using #nvidia #quadro rtx 5000 #NVIDIAStudio. #arnoldrender

the colours are not quite right, I am trying to integrate kelvin colour temperature.  the current colour is based on density and speed.  

In this simulation, I assumed  48% amount of negative gravity to fill the mystery of dark matter. I used 1 million nbodies for the simulation.  for the steps, I am planning to add finer particle streams to get more details.

NNody simulation with openCL

an N-Body simulation which calculates a gravity field and corresponding velocity and acceleration contributions accumulated by each body in the system from every other body. Shows how to mitigate computation between all available devices including CPU and GPU devices, as well as a hybrid combination of both, using separate threads for each simulator.

the setup in Houdini : 120.000 stars simulated with the openCL wrangle in a Solver. the graphic card on my macbook RX420 GPU is about 25 faster then NBody in C/Vex on the I7 CPU

realtime nbody on my macbook with 40.000 stars