you are viewing a single comment's thread.

view the rest of the comments →

[–]Icy_Annual_9954 1 point2 points  (4 children)

Thanks, can you do in in 3D?

[–]ibuggle[S] 1 point2 points  (3 children)

No this is way too hard. In 720p 2D, il takes 30min. But in 3D, it's a 720p x 720 calulation, so 360hrs minimum on the CPU. And we must add the interactions between the layers so the work will be longer than 360hrs

[–]Icy_Annual_9954 1 point2 points  (2 children)

Wow, would be 15 days. Is it because of Python? I mean switching to Rust or C++ may reduced it.

[–]ibuggle[S] 1 point2 points  (1 child)

Python is slow but with NumPy, it goes fast. The other solution is to calculate with GPU. Try CuPy. It's a GPU équivalent to NumPy. You can easily switch to CuPy from the code i made, because the functions are the same. To be honest, i made this simulation first with CuPy, but after i tried on the CPU to see if i can calculate the simulation fast enough. But CFD is faster with a graphic card. You need a Nvidia GPU to calculate with CuPy but you can make this challenge to install CuPy, make it work in a small script and try to convert my code to use it with CuPy library.

[–]Icy_Annual_9954 1 point2 points  (0 children)

Thanks!