CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

fft in openFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Swift

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2019, 08:48
Default fft in openFOAM
  #1
New Member
 
Manaf Muhammed
Join Date: Oct 2018
Posts: 20
Rep Power: 7
manafaero is on a distinguished road
hi

I want to do a FFT of the spatial data, i.e. FFT for the data extracted over a line, This FFT is then computed for each time step in OpenFOAM. Can anybody help me with the same.

Thanking you
manafaero is offline   Reply With Quote

Old   May 23, 2019, 10:11
Default
  #2
Member
 
Thomas Sprich
Join Date: Mar 2015
Posts: 76
Rep Power: 11
Swift is on a distinguished road
Hi Manaf,

Does an FFT of spatial data make sense? What frequency would you expect to get? The mesh size? What are you trying to achieve?

I would think that you need to record the data at a point verses time and take an FFT of that.

If you really want to do as you describe, you should be able to create a line source in paraview and export that for all times to a spreadsheet or csv file. You would then need to use python or similar to reconstruct the data into a format that you could take an FFT.

I don't think there a native way to do FFT in Openfoam.

Good luck.
Thomas
vivek05 likes this.
Swift is offline   Reply With Quote

Old   May 24, 2019, 05:11
Default
  #3
New Member
 
Manaf Muhammed
Join Date: Oct 2018
Posts: 20
Rep Power: 7
manafaero is on a distinguished road
Thank you sir
manafaero is offline   Reply With Quote

Old   September 10, 2020, 13:56
Default
  #4
Member
 
Join Date: Aug 2012
Posts: 33
Rep Power: 13
gigilentini8 is on a distinguished road
Thomas you are wrong!

there a nice little FFT library in OpenFOAM for cartesian meshes

https://cpp.openfoam.org/dev/dir_afc...e9c4c8c41.html


Quote:
Originally Posted by Swift View Post
Hi Manaf,

Does an FFT of spatial data make sense? What frequency would you expect to get? The mesh size? What are you trying to achieve?

I would think that you need to record the data at a point verses time and take an FFT of that.

If you really want to do as you describe, you should be able to create a line source in paraview and export that for all times to a spreadsheet or csv file. You would then need to use python or similar to reconstruct the data into a format that you could take an FFT.

I don't think there a native way to do FFT in Openfoam.

Good luck.
Thomas
gigilentini8 is offline   Reply With Quote

Old   September 10, 2020, 17:13
Default
  #5
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
I increase the bid:

FFTW is a part of OpenFOAM. You can use FFTW inside OpenFOAM, therefore.

PS: at least the com version.
HPE is offline   Reply With Quote

Old   August 5, 2021, 04:46
Default How to use just the fft.C
  #6
New Member
 
Pawan Srinivasa Murthy
Join Date: Aug 2021
Posts: 1
Rep Power: 0
PawanSrinivasaMurthy is on a distinguished road
Hello, is it possible to use just the fft.C file without compiling it as an openFOAM solver? I wanted to check if it works for my case before I use it in my solver.
PawanSrinivasaMurthy is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
FFT in OpenFOAM Hisham OpenFOAM Programming & Development 15 January 9, 2017 10:14
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 11:50
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25


All times are GMT -4. The time now is 12:47.