Skybar Posted May 21, 2015 Share Posted May 21, 2015 How does this microsolver work? I wire it into a flip solver and it creates subdata like this: But then I'm clueless. How can I access this data or even view what it contains? Quote Link to comment Share on other sites More sharing options...
DLCool Posted May 21, 2015 Share Posted May 21, 2015 Hello. I don't know how it works. But particle fluid solver uses it. You could look into. And may be this information will help you. Regards Quote Link to comment Share on other sites More sharing options...
stevegh Posted May 21, 2015 Share Posted May 21, 2015 My guess is some microsolvers (ie the Gas Compute Particle Attributes DOP) have the option to make computations with neighboring particles and this DOP allows you to specify when the neighbor update takes place. Quote Link to comment Share on other sites More sharing options...
johner Posted May 21, 2015 Share Posted May 21, 2015 (edited) That microsolver is used in the old SPH fluids to maintain a list of neighbor particles within a search radius. These days you're better off just using pcfind and storing the results in array attributes. So using a POP or Geometry Wrangle: // next two variables could be parameters int maxn = 100; float scale = 2.5; float searchrad = f@pscale * scale; // find nearby particles int n[] = pcfind(0, "P", @P, searchrad, maxn + 1); // remove this particle from list removevalue(neighbors, @ptnum); i[]@neighbors = n; On the Inputs tab set Input 1 to Myself or Myself (no reads of Outputs), the latter being faster. You can then loop through that array to do various neighbor-lookup type things. The POP Grains solver does lots of this if you want to look inside. Edited May 21, 2015 by johner 4 Quote Link to comment Share on other sites More sharing options...
Skybar Posted May 21, 2015 Author Share Posted May 21, 2015 Ah I see, thanks a lot guys! And thanks for that example Johner, very helpful 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.