Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hosseinrezaa opened this issue Dec 8, 2023 · 4 comments

Comments

@hosseinrezaa
Copy link

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
Copy link
Author

Here is also some information about input file

image

@janbender
Copy link
Member

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.

@hosseinrezaa
Copy link
Author

hosseinrezaa commented Jan 31, 2024

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?

@janbender
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants