csp Posted June 11, 2015 Share Posted June 11, 2015 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 Quote Link to comment Share on other sites More sharing options...
Skybar Posted June 11, 2015 Share Posted June 11, 2015 (edited) I have no experience with this but I threw something together in 5min. Might work for you? surfaceTensionMask_dv.hipnc Edited June 11, 2015 by Skybar 1 1 Quote Link to comment Share on other sites More sharing options...
csp Posted June 11, 2015 Author Share Posted June 11, 2015 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. Quote Link to comment Share on other sites More sharing options...
csp Posted June 12, 2015 Author Share Posted June 12, 2015 Can we take it one step further? How to apply surface tension only to points with velocity greater than a given threshold? Quote Link to comment Share on other sites More sharing options...
Skybar Posted June 12, 2015 Share Posted June 12, 2015 I guess you could group them up, and then use that group in Gas Particle to SDF instead. Quote Link to comment Share on other sites More sharing options...
Skybar Posted June 12, 2015 Share Posted June 12, 2015 So something like this: surfaceTensionMask2_dv.hipnc Adding particles to a group based on the length of v with wrangle. Quote Link to comment Share on other sites More sharing options...
Pazuzu Posted June 12, 2015 Share Posted June 12, 2015 (edited) 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 June 12, 2015 by Pazuzu 9 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.