After see this amazing video and see this repository i attempt to make my own version of ascii fluids dinamics.
My starter point has the original soruce here the same program used in video, also the lorenzo source helps a lot.
I try not use complex numbers (mostly cause i have much trouble to make them work propety with c++)
To understand better the concept you can check SPH Smoothed Particle Hydrodynamics
g++ asciiFluidSimulation.cpp -o asciiFluidSimulation
Then run:
./asciiFluidSimulation < ./inputs/clock.txt
Clock: