Jump to content

Variable Surface Tension


samesami

Recommended Posts

I think the problem is that the groups and attributes you define for each bounding box carry over to the next frame. For example with your setup, once a particle was inside group1 it will always have the 'mygroup1=1' attribute from that point on even if it is not in the bounding box of group1 anymore. That means that the field used to scale the surface tension with is not limited to its bounding box. So once particles reach f.e. group3 their surface tension is still under the influence of the surface tension node from group1, since the according field hangs still around even after it leaves group1. (you can see this from your scalar visualisation nodes. They dont have the specified colors but their colors mix once they overlap with another colored field.)

Made some minor changes to your hipfile. Pretty much only had to copy & your popgroup nodes into a sopsolver and delete the incoming 'mygroup1,2 and 3' attributes so they can be calculated from scratch and dont cary over to the next bounding box.

SurfaceTension_recovered.hipnc

  • Like 2
  • Thanks 2
Link to comment
Share on other sites

1 hour ago, TheHasen said:

I think the problem is that the groups and attributes you define for each bounding box carry over to the next frame. For example with your setup, once a particle was inside group1 it will always have the 'mygroup1=1' attribute from that point on even if it is not in the bounding box of group1 anymore. That means that the field used to scale the surface tension with is not limited to its bounding box. So once particles reach f.e. group3 their surface tension is still under the influence of the surface tension node from group1, since the according field hangs still around even after it leaves group1. (you can see this from your scalar visualisation nodes. They dont have the specified colors but their colors mix once they overlap with another colored field.)

Made some minor changes to your hipfile. Pretty much only had to copy & your popgroup nodes into a sopsolver and delete the incoming 'mygroup1,2 and 3' attributes so they can be calculated from scratch and dont cary over to the next bounding box.

SurfaceTension_recovered.hipnc

Thank you, that's exactly what i was looking for

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...