2013年12月20日星期五

Problem related to the mass of each particle

When I implement the Ghost SPH, I found the mass of the particles influence the result a lot. When I dealing with 10K particles, the difference of 0.0001 in mass make the result totally different, I still can not find the perfect variables, continue working on it!

2013年12月19日星期四

Small size Ghost SPH simulation

Due to the limitation of my mac air. I start the simulation with small size , and get following results.

2013年12月17日星期二

Paper mistakes found

I follow the procedure  indicated by the paper to simulate Ghost SPH. For days, I can not get the satisfying results. After recheck other reference, I found two mistakes of the paper.

1. XSPH:
The equation used by the user is to calculate Viscosity velocity:
 however, it should be the term used to calculate viscosity force, not velocity.
In other word, in order to calculate the viscosity velocity, I need to divide this term by density and times dt

2. Missing of tension force
In the algorithm 3, there is no tension force term, however, it should be an important term to simulate the "real" fluid simulations, I add this force with gravity and pressure force. However, I am not sure if it follows the authors' idea.

2013年12月14日星期六

Sampling and Relaxation finish

Finish the part to sampling and relaxation the surface and volume.

Before:







After:

2013年12月12日星期四

neighbor search problem

When I implementing the Volume relaxation, I need to solve neighbor search problem, I use Grid search algorithm to accomplish the job. 
The neighbour search finds the neighbours of all particles in a particular grid cell.  All neighbouring particles must be contained in the current or one of the maximal 26 adjacent cells to speed up the search.

2013年12月10日星期二

Basic SPH simulation

Before, implementing the GHOST SPH.
I decide to simulate the basic SPH simulation first. Following video is the basic SPH simulation with 8K particles.