erizmr / taichi_sph

A Taichi implementation of WCSPH
14 stars 5 forks source link

how to understand m_V #4

Open zhang-qiang-github opened 1 year ago

zhang-qiang-github commented 1 year ago

Please have a look at the following code:

https://github.com/erizmr/taichi_sph/blob/2e8780f6d7a43fe2e38f9a62d2b24e614e3dfa20/particle_system.py#L21

How to understand m_V? Is it the mass of particle?

But, the mass should be density * v = density * (pi * (radius**2)).

Any suggestion is appreciated~~~

zhang-qiang-github commented 1 year ago

self.particle_diameter ** self.dim treat the particle as a cube.