I want to know which is the best method to model a fluid pouring or spilling on the floor. I hope to be able to see the liquid adding up (volume) and spreading, just like when one drops a glass of water, something like that.
Thank Bruce and Alex. I am reading about free-surface models so i can make my fluid spill program. I also found some literature on how to fill a cavity: Cavity fill. I have not been able to figure out is how i can make the water start spreading… maybe if I add a force, say wind force? Or should I try something different
Actually i am reading these paper on the web page you recommended Free Surfaces. I should try to implement these with the Sha/Chen model that bruce pointed me out, right?
From what I have read the free surface models consist of a lattice with 3 types of cells. One is a cell completely filled with fluid, another is the opposite (a cell without fluid) and the third one is a cell which is partially filled. I know Palabos handles fluid and non-fluid cells, but i don’t know if it is capable of handling the partially filled one… Do i need to include these cell type into Palabos for it to work correctly (it seems so). Plus, the method of colliding and streaming pointed here is different as one has to treat the partial fluid cells first, then stream the cells with partial and completely filled with fluid and later reconstruct the cells which have no fluid and the collide. So I have no idea on how I will be able to stream only those kind of cells.
I appreciate any code you can give me, thank you. Right now I am focusing my efforts on following the papers and trying to code them into palabos. The issue here is that I have to use LBM to achieve this fluid motion because is the focus of my project, or else I would have implemented another type of solver.
Related, I have also checked a fluid solver for shallow water equations on a personal web page of Jos Stam (One of the authors of the papers I am reading). If Jonas can give me some guidance on how I can distinguish the cell type described above, would be great.
Thank you again Alex for the info and the will to help.