renochew Posted February 5, 2009 Share Posted February 5, 2009 Hi all, I want to group particle base on their ID, say ID 1 to 3 -> Gp1, ID 3 to 5 ->Gp2, etc, but it seems that the group name in the group node do not accept expression, is there anyway to achieve this? Any advice would be much appreciated. Thanks! Quote Link to comment Share on other sites More sharing options...
Marc Posted February 5, 2009 Share Posted February 5, 2009 multiple group SOPs? How many groups do you want to create? And what is it that you're trying to do, perhaps there is a better way. Cheers Marc Quote Link to comment Share on other sites More sharing options...
Cannoth Posted February 28, 2009 Share Posted February 28, 2009 you can use the "partition" node. Its a great GREAT life saver. you just have to supply the rule to determine how the groups are created. for example if you want to sort base on id values. you would write partGroup_`$ID%5` where partGroup_ is the arbitrary name I gave and `$ID%5` is the math rule. In this case ID value modulus 5. so ID's 0,5,10,15,..are in one group. and 1,6,11,16,.. in another, 2,7,12,17,..another and so on. They key is to place the rule you need inside the ` ` backticks. 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.