NRL-Plasma-Physics-Division / block-on-spring

TurboPy app to compute the motion of a block on a spring
0 stars 5 forks source link

Extract Frequency #20

Open ndisner opened 3 years ago

ndisner commented 3 years ago

Find a way to extract the frequency based on a given mass and spring constant. Helpful tools that might want to use are least squares fit in spicy

arichar6 commented 3 years ago

Orthogonal distance regression: https://docs.scipy.org/doc/scipy/reference/odr.html

arichar6 commented 3 years ago

This article on RealPython has some good info on how to use pandas to explore datasets. I think this might be a good approach for exploring the data you get from running a bunch of simulations with different parameters. Once you run a bunch, and have code to extract the frequency, you can apply your function to all of the simulations at once using pandas.