CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

FFT in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2023, 12:04
Default FFT in OpenFOAM
  #1
New Member
 
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 4
sreehahaha is on a distinguished road
Dear Foamers,

Hope your'e having a good time.

I'm using OF9 to simulate my system, which has a 3D cubic geometry with cyclic bc in all directions. I need to evaluate the 3D Fourier Transform of temperature field in my system. I want to evaluate this on-the-fly to avoid writing output to the case directory that would eat up my storage space.

Has anyone had any experience with performing FFT in OF? I don't think the forum contains much helpful discussions. If you have, could you please share the snippet here? It would be very helpful.

For starters, I'm confused about the type of the field T_hat that is the Fourier transform of my T field. I assume this would be complexField. But I get an error when I use this: calculated number of cells is incorrect.

Many thanks,
SP
sreehahaha is offline   Reply With Quote

Old   April 13, 2023, 17:39
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Some code under src/randomProcesses/noise/noiseFFT that might be useful.
olesen is offline   Reply With Quote

Old   April 14, 2023, 06:19
Default
  #3
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 798
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Alternative is to load data in Paraview and do FFT in paraview.

Other alternative is to search this forum. This FFT issue has been discussed here in the past.
dlahaye is offline   Reply With Quote

Reply

Tags
fftw, fourier transform


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
FFT in OpenFOAM Hisham OpenFOAM Programming & Development 15 January 9, 2017 11:14
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 06:56
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25


All times are GMT -4. The time now is 23:29.