|
[Sponsors] |
May 14, 2019, 08:48 |
fft in openFOAM
|
#1 |
New Member
Manaf Muhammed
Join Date: Oct 2018
Posts: 20
Rep Power: 7 |
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 |
|
May 23, 2019, 10:11 |
|
#2 |
Member
Thomas Sprich
Join Date: Mar 2015
Posts: 76
Rep Power: 11 |
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 |
|
May 24, 2019, 05:11 |
|
#3 |
New Member
Manaf Muhammed
Join Date: Oct 2018
Posts: 20
Rep Power: 7 |
Thank you sir
|
|
September 10, 2020, 13:56 |
|
#4 | |
Member
Join Date: Aug 2012
Posts: 33
Rep Power: 13 |
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:
|
||
September 10, 2020, 17:13 |
|
#5 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
I increase the bid:
FFTW is a part of OpenFOAM. You can use FFTW inside OpenFOAM, therefore. PS: at least the com version.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
August 5, 2021, 04:46 |
How to use just the fft.C
|
#6 |
New Member
Pawan Srinivasa Murthy
Join Date: Aug 2021
Posts: 1
Rep Power: 0 |
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.
|
|
|
|
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 |