hexagon logo

How to compute the frequency in subroutine at each time step during the simulation ?

Dear All,
 
I am working on subroutine where I have to apply the frequency dependent force during the simulation.
 
I wonder, how can I find the frequency during simulation at each time step.
 
I thought to save the data for previous time step and then do the calculation at current time step but not able to find any solution.
 
So, is that possible to compute the frequency from displacement and velocity at each time step ?
 
Any lead towards this problem will be very helpful.
 
Thanks & Regards,
Darshan
 
 
Parents
  • Thank you very much @Jesper Slattengren​ for this helpful reply !
     
    I am also not sure about calculating the frequency accurately but what I thought is to track the zero crossing of displacement/velocity and get something out of it if that works.
     
    It will be very helpful if there is any other approach for this kind of simulation.
     
    Thanks,
    Darshan
Reply
  • Thank you very much @Jesper Slattengren​ for this helpful reply !
     
    I am also not sure about calculating the frequency accurately but what I thought is to track the zero crossing of displacement/velocity and get something out of it if that works.
     
    It will be very helpful if there is any other approach for this kind of simulation.
     
    Thanks,
    Darshan
Children
No Data