FFT usage

Miscellaneous discussion topics about Code_Saturne (development, ...)
Post Reply
User avatar
jcharris
Posts: 48
Joined: Tue Apr 16, 2019 7:28 pm

FFT usage

Post by jcharris »

Is there any function within Code_Saturne which computes an FFT? Would it be possible to call it from a user subroutine?

Obviously it would be possible to write a custom FFT function into a user subroutine, likely overly long or inefficient in the process, but if it (or a library that contained an FFT) was already used elsewhere in the code, it might be nice to use.

(I have some existing code which could be interesting to use as a boundary condition or initial condition, and which is probably a bit "heavy" to write into a pre-processing script, but could be put as a user subroutine if an FFT existed.)
Yvan Fournier
Posts: 4146
Joined: Mon Feb 20, 2012 3:25 pm

Re: FFT usage

Post by Yvan Fournier »

Hello,

There is no built-in function, but this has been done in user subroutines on several occasions, usually with the fftw library.

I have some relatively recent example from a colleague's intern which did good work but which I have not had the time to check out yet. Other colleague's (mainly the turbulence specialists) may have other examples available.

I'll check.

Best regards,

Yvan
Post Reply