Jump to content
Sign in to follow this  
mightcouldb1

How can I measure a particles change in position per frame?

Recommended Posts

Rapid changes in direction or position is a characteristic of turbulent flow. I am currently reading particles into VOPs via point clouds, and I am unsure how to measure the change from the previous frame's position. I want to do it this way even though I could get similar results using acceleration. That wont do me any good if a particle comes to a screeching halt though.

Thanks!

Jason

Share this post


Link to post
Share on other sites

as far as i know velocity is the change of position from frame to frame .. so probably the thing you are really looking for is acceleration if lenght(velocity) > 0 ?

Share this post


Link to post
Share on other sites

actually, I am looking for acceleration... It must be 4am! Hehe, thank you. Nice stuff by the way!

Share this post


Link to post
Share on other sites

Ok so I have another question now...

If I use a force where y=-10, my particles acceleration is -10 constantly. If acceleration is the change in velocity per frame, wouldn't this be different? Or am I missing something?

Share this post


Link to post
Share on other sites

Acceleration is the first derivative of velocity with respect to time: the rate of change of velocity. So, acceleration = difference_in_speed/difference_in_time. If you want that to be precise you can take the limit of it as difference_time -> 0, so differentiate if you know the function. That is unlikely however so you could just calculate a rough value based on 1 frame as your time difference.

Edited by Macha

Share this post


Link to post
Share on other sites

Acceleration is the change in velocity over a period of time (usually 1 second). From physics, the sum of all forces = mass * acceleration ( F = ma). If your force is -10 and your mass is 1, your acceleration will always been -10 in y. Starting with an initial velocity of 0, after 24 frames of ay=-10, Vy = -10.

Share this post


Link to post
Share on other sites

Thank you both for the physics lesson.

I guess my question now is: how can I grab the velocity of something from a previous frame in pops so that I can use it to find the acceleration?

If I understand correctly, I can use vel2 - vel1 divided by the time increment to get the acceleration.

Edited by mightcouldb1

Share this post


Link to post
Share on other sites

is that what You want?

I never thought about using nodes to store attributes the way you did. Thank you! Perfect solution.

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
Sign in to follow this  

×