yuanming-hu / taichi_mpm

High-performance moving least squares material point method (MLS-MPM) solver. (ACM Transactions on Graphics, SIGGRAPH 2018)
MIT License
2.34k stars 317 forks source link

Modeling fluid with different viscosity using Taichi_mpm #53

Open ytimber opened 2 years ago

ytimber commented 2 years ago

Hi,

I'm a newcomer to computer graphics, so please correct me if I make any mistakes. :)

I'm trying to model liquid with different viscosity for my new project. I noticed that from Python API end, the two parameters user can change are bulk modulus and gamma, but I found that in this file \src\particle.cpp, line 47 to 49 defined a class ViscoParticle with the following parameters

 real visco_tau;
  real visco_nu;
  real visco_kappa;

Is this what I should be looking for if I want to change the viscosity of fluid? If so, how should I implement this in Taichi Python API? Or will that constrain me to use c++ API only? Many thanks in advance for answering my questions! :))