Wumpf / blub

3D fluid simulation experiments in Rust, using WebGPU-rs (WIP)
MIT License
392 stars 12 forks source link

Error driven / dynamic solver iterations #31

Closed Wumpf closed 3 years ago

Wumpf commented 4 years ago

pressure solver runs a fixed number of iterations now. Literature (and all cpu solvers) usually compute the norm of the residual and continue or stop depending on the error. Computing that norm is a bit expensive for my gpu solver, but it's not outrageous. Could do it all every n iterations? Hope is to speed up/slow down dynamically, be more stable for high quality video scenarios and get a better idea of the error in general

Wumpf commented 3 years ago

yes that actually worked out! Lost track of when I pushed this