Units for viscosity? #170
Replies: 3 comments 2 replies
-
Hi,
Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Hi, sorry for the late answer. We just double checked that it is the kinematic viscosity. However, note that the coefficient is dependent on the scale of your simulation since it has the unit m^2/s. For example, if I simulate the scene CoilingModel_Weiler2018.json which should show the behavior of a honey like material, I used a viscosity coefficient of 5 m^2/s. This is quite high. However, if you take a closer look in the scene file, the honey model at the beginning is 9 meter high. If I scale down the scene to a realistic size, a realistic coefficient for honey can be used. I took 0.01 m^2/s (see https://en.wikipedia.org/wiki/List_of_viscosities). Here is the adapted scene file: |
Beta Was this translation helpful? Give feedback.
-
The particleRadius depends on the dimension of you scene. E.g., if you want to simulate 100m of a river, then you should not tkae a size of 0.0025 since you will get far too many particles. The particle size defines the resolution of your particle sampling. Concerning viscosity: either you take a slightly higher viscosity or you have to use a filter like XSPH, otherwise you can get chaotic particle motion. Many SPH simulators use XSPH which is an established method. If you have an animated body, you should be careful, since it can move quickly and this would require a smaller step size. I would recommend to take adaptive time steps using the CFL condition. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thanks for this great simulator. I had a couple of quick questions on the viscosity method, assuming we were to use the 'standard' method:
Does the model take in the dynamic or kinematic viscosity? The docs seem to say kinematic viscosity, but I took a quick look at the source code and it seemed to treat the input as dynamic viscosity. I could be wrong here, so wanted to confirm.
What are the units for the viscosity? In other words - if I wanted to simulate water, what value with what units should I input?
Thanks very much in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions