ehsan parizi Posted October 5, 2011 Share Posted October 5, 2011 Hi, As you know, we can use dopfield expression to get the data in dops, one of them is impulse when an impact happens, there are usually a lot of subimpacts (specially in case of fractured objects) that each one has a different impulse, I want to know how I can access the max impulse for each piece? Quote Link to comment Share on other sites More sharing options...
sadhu Posted November 10, 2011 Share Posted November 10, 2011 Hello there, I was trying to do something similar. I used dynamics chop to get the impulse values for all the pieces. I am getting lots of impulse values for each piece per frmae. But I dont know any way of finding max value for each piece. icmax() and / or foreach chop ??? Thanks a lot. max_impulse_calculation.hipnc Quote Link to comment Share on other sites More sharing options...
asnowcappedromance Posted November 10, 2011 Share Posted November 10, 2011 I'd suggest using a sopsolver, collecting each impulse on a created point (for example as a pscale attribute in the point SOP) and then pipe that into a attribute promote SOP and chose maximum. You can then easily access this data in dops with a point expression! Manu Quote Link to comment Share on other sites More sharing options...
sadhu Posted November 11, 2011 Share Posted November 11, 2011 Hi Manu. Thanks a lot for your reply. I will try this. Quote Link to comment Share on other sites More sharing options...
sadhu Posted November 11, 2011 Share Posted November 11, 2011 (edited) Hi Manu, I think I got the solution. What I am doing is 1) Use FOREACH sop to process each imported geometry of dop obj. In foreach sop - 2) Add points equal to total number of impacts on a piece. 3) Create point attrib maximpulse, it's value would be impulse value accessed through dopfield() expression for that piece. 4) Use point sop and use maximpulse attrib to set y position of each point. 5) Delete points if $TY!= $YMAX, so we are left with a point with max y pos and maxypos == maximpulse. I didnt understand how to use arribute promote sop using sop solver. I am getting one max value for each piece only after promoting point attribs to detail attrib in foreach sop. But it is generating one single value for the entire geometry as it's a detail attrib, not for each piece. I am missing something. Could you please tell me. max_impulse_calculated.hipnc Edited November 11, 2011 by sorry 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.