SPlisHSPlasH icon indicating copy to clipboard operation
SPlisHSPlasH copied to clipboard

Defining a Big geometry in one file and want from splishsplash to recognize all the parts

Open hosseinrezaa opened this issue 2 years ago • 4 comments

Hello I am simulating water particles between ice floes. I want to import the ice floes in one file but I want splishsplash code to behave all the ice floes seperately.

image

I want the ice floes to react to the water particles separately. At the moment Splishsplash considers the whole domain like a solid geometry and when I apply a external force it will impose to the whole domain.

Is it possible to solve this problem?

Best Regards

hosseinrezaa avatar Dec 08 '23 21:12 hosseinrezaa

Here is also some information about input file

image

hosseinrezaa avatar Dec 08 '23 21:12 hosseinrezaa

This is not intended in SPlisHSPlasH as each "RigidBody" entry defines one rigid body. Either you define one rigid body per closed geometry part, which in your case might be unpractical, or I would recommend to use a Python script to define the scene. In this case you can simply loop over all geometry parts. However, you have to subdivide them.

janbender avatar Dec 18 '23 06:12 janbender

Thank you for your response. I have another question. I want to make the ice floes dynamic but also I want constrain them to avoid specific rotations. How should I do that?

hosseinrezaa avatar Jan 31 '24 12:01 hosseinrezaa

SPlisHSPlasH uses the PBD library to simulate dynamics rigid bodies. You could extend this library and implement a constraint which constrains the rotations.

janbender avatar Feb 06 '24 08:02 janbender