In order for this code to work add the header file (olcPixelGameEngine.h) found at https://github.com/OneLoneCoder/olcPixelGameEngine.
Three Initial configurations can be chosen:
initializeLDC = Lid Driven Cavity
initializeTunnel = Tunnel
initializeVKS = Vortex Karman Street
Commands one can use so far:
-
Left Click (Hold) → Set a 5 x 5 blocks X and Y velocity to 0.
-
Right Click (Hold) → Include an Obstalce (F=1) at the cursor position.
-
S Button (Pressed)→ Safe all the Data to a file (matrix U, V, F, R and fx, fy, U0, steps).
-
U Button (Hold) + UP Button (Pressed) / DOWN Button (Pressed)→ Increasing / Decreasing the "pressure" velocity fx.
-
R Button (Pressed)→ Reset the entire system.