Jump to content
csp

mask surface tension

Recommended Posts

Hi,

I have two sources in a flip solver and I want to have different surface tension to each one of those sources, how that's possible? In general how the group parameter in a gas microsolvers as surface tension can be used in order to effect part of a flip silumation?

 

Or is there any way to mask it? I tried unsuccessfully to create a new scalar field matched to surface and use it as mask using gasparticletofield which was reading particle custom attribute where points of one source had value of 1 and the other of 0. Then I replaced Surface Field parameter in Gas Surface Tension with that mask filed, but as I said it didn't worked.

regards,
Christos

Share this post


Link to post
Share on other sites

Thanks David, this what exactly I was trying to do with the masking method but instead of gasparticletosdf I used gasparticletofield as I described above. Thanks again.

It would be nice if surface tension was like viscosity or density which can be attribute driven.

Share this post


Link to post
Share on other sites

Can we take it one step further? How to apply surface tension only to points with velocity greater than a given threshold?

Share this post


Link to post
Share on other sites

I guess you could group them up, and then use that group in Gas Particle to SDF instead.

Share this post


Link to post
Share on other sites

Look at this modified version; My surface Tension asset supports particle and field approach, and you can use an attribute as a mask. For high particle counts (Large Scale sims) use the field based approach instead.

 

Hope that helps.

surfaceTensionMask_dv.hipnc

Edited by Pazuzu
  • Like 5

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×