We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

How to generate PSD curves for input

TAGGED: 

    • kristan.sears
      Subscriber

      The best information I can find on this topic is in this post:

      https://innovationspace.ansys.com/forum/forums/topic/in-random-vibration-analysishow-to-define-psd-curve/

      However, I have a time waveform that I used to generate the FFT.  From there, I can generate a PSD, but it looks nothing like the three lines/four points in the above referenced post.  So, my question is, how do I go from the spectrum (g^2/Hz) below to the linear input curves referenced above?

    • dlooman
      Ansys Employee

      Perhaps you could just create an input PSD that envelopes the peak values of the FFT result you show.  

    • kristan.sears
      Subscriber

      Yes, I could do that.  Is that the most common/practical way to apply the time waveform data?  When I generate a PSD from the FFT, I end up with the correct units g^2/Hz, but it's another spectrum, as shown above, not a curve.  How does the trapezoidal curve represent real random vibration compared to the spectrums from actual data?  Inputting the PSD spectrum is too many data points to be practical.  

    • dlooman
      Ansys Employee

      I'm not sure how your plot was created from the FFT and why it's not more continuous.  If the meaning of the data is the same as a PSD, that is, every point is the variance of acceleration associated with a unit frequency interval, then enveloping it seems appropriate.

    • kristan.sears
      Subscriber

      From the software that I'm using, "A PSD is an Auto spectrum that has been "normalized" by dividing it by the frequency resolution of the Auto spectrum."  In this case, it doesn't sound like the "frequency resolution" is the same as the variance of acceleration that you're referring to.  The Auto Spectrum: "Each Auto spectrum is calculated by multiplying the DFT of a TWF by the complex conjugate of its DFT."

      I could be misunderstanding these definitions, but it doesn't sound like the two PSDs are the same.

    • Dennis Chen
      Subscriber

      Can you please share exactly what tool/code you used to generate the PSD curve? 

      • kristan.sears
        Subscriber

        It's from ME'scope.

    • kuyaamee
      Subscriber

      EaseUS Data Recovery Kuyhaa

      If you’re looking to generate PSD (Power Spectral Density) curves for your input data, the easiest way is to use tools like MATLAB or Python with libraries like SciPy or Matplotlib. Basically, you take your time-domain signal, apply a Fast Fourier Transform (FFT), and then calculate the power over frequency. Using functions like scipy.signal.welch() in Python makes the whole process pretty smooth. Just make sure your data is sampled properly and pre-processed to avoid noise skewing the results. Once you get the curve, you’ll be able to see which frequencies carry the most energy in your signal—super handy for everything from audio analysis to structural health monitoring!

       

    • Dennis Chen
      Subscriber

      https://blog.endaq.com/vibration-analysis-fft-psd-and-spectrogram

      This is a great reading material + resource + they have youtube videos that show you how to do this with real life clean signal if reading a ton isn't the way you like to learn.     Not saying you should use what they have (they are commercial) but it's a great place to understand the logic so you can write your own code for your own purposes, which in my opinion is always way better than relying on third party tools for something like this because you are just processing data and there's a ton of examples out there. 

      lastly, I am not advocating this but I bet you can get chatGPT to write the code for you if you feed it the right signal.    at least, it can give you a template to start from. 

      • kristan.sears
        Subscriber

        That's a great resource, and very helpful.  I much prefer to read and learn on my own rather than having an AI bot spoonfeed me, so thank you very much for pointing me in the right direction.  Once I get a bit more comfortable with it, I'll probably implement this conversion from the TWF to PSD on my own in Matlab.  

        Again, thanks for the tips.  Very helpful.

Viewing 7 reply threads
  • You must be logged in to reply to this topic.