Help with curtain simulation

Hi,

I have followed a tutorial but can’t get the simulation to show any visible difference, though it does run.

I am trying to simulate a curtain for the green mesh, which has been internalized.


curtain-wip.gh (232.9 KB)

I would greatly appreciate any assistance. There is another part of the mesh in the file that needs to be fabric too but I figured I can debug on a partial mesh. The goal is to run both meshes:
image

I changed the wind direction to see if something is happening…

I also remeshed your curtains so they all have more or less the same edge length. This helps with the sphere collide since otherwise you don’t really know the right radius…

The anchor points in your definition were not coincident with any of the mesh vertices. The anchors need to be within tolerance of some of the mesh vertices to have an effect.

Currently the curtains stick together. It could be avoided if the curtains aren’t coincident at the beginning of the simulation. The curtains need to be spaced more than the tolerance in the solver.

I used the shear command to make sure the curtain on top of the stairs is not touching the planar curtain segments.

I’m not sure what the idea with the solid collision is and deactivated the goal.

I finally changed the wind direction to nearly vertical since fully vertical did not really move the planar segments.

curtain-mrtn.gh (236.5 KB)

1 Like

That looks great. Thank you!

Ultimately I am trying to make it look like this around the entire perimeter, like a real curtain:
image
I updated the script to include another part that I followed from the video that enables the “sliding” of the curtain. I’m able to get your file to run but I can’t get the new combined script to work. It’s creating a twisting vortex effect and the mesh does not seem to hang onto the anchor points at all.

I am not sure how to approach that part.

You might want to study this example here:

1 Like

Thanks for the suggestion this was really helpful.

It’s working well, I would love to figure out how to increase the density of ridges:

How do I control the number of anchor points? I wasn’t able to identify a component in the above script that allows that to be changed.

I introduced a periodic curve for the fabric and it looks much better. Thanks for all your help.

Also if I could figure out how to prevent these two end points from repelling each other that would be great too haha.

image