(git:5ef3a49)
Loading...
Searching...
No Matches
rt_propagation_ft Module Reference

Separation of Fourier transform utilities into separate file. More...

Functions/Subroutines

subroutine, public multi_fft (time_series, value_series, result_series, omega_series, damping_opt, t0_opt, subtract_initial_opt)
 Calculates the Fourier transform - couples to FFT libraries in CP2K, if available.
 
subroutine, public fft_shift (source)
 Switches the order in result of FT, so that negative frequencies go first.
 
subroutine, public fft_freqs (n, t_total, omegas, fft_ordering_opt)
 Switches the order in result of FT, so that negative frequencies go first.
 

Detailed Description

Separation of Fourier transform utilities into separate file.

Author
Stepan Marek (08.24)

Function/Subroutine Documentation

◆ multi_fft()

subroutine, public rt_propagation_ft::multi_fft ( real(kind=dp), dimension(:)  time_series,
complex(kind=dp), dimension(:, :)  value_series,
complex(kind=dp), dimension(:, :), allocatable  result_series,
real(kind=dp), dimension(:), optional  omega_series,
real(kind=dp), optional  damping_opt,
real(kind=dp), optional  t0_opt,
logical, optional  subtract_initial_opt 
)

Calculates the Fourier transform - couples to FFT libraries in CP2K, if available.

Parameters
time_seriesTimestamps in atomic units of time
value_seriesValues to be Fourier transformed - moments, field etc. Real only. Many series can be provided.
result_seriesFT of the value series - complex numbers
omega_series...
damping_optSupply custom exponential damping - default is 4.0/totalTime, i.e. ratio of last and first element in windowed value series is reduced by e^(-4)
t0_optCarry the FT only starting from certain time - allows for exclusion of trace before the pulse application etc.
subtract_initial_optSubtract the value at the start of the array
Date
10.2025
Author
Stepan Marek

Definition at line 98 of file rt_propagation_ft.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fft_shift()

subroutine, public rt_propagation_ft::fft_shift ( complex(kind=dp), dimension(:)  source)

Switches the order in result of FT, so that negative frequencies go first.

Parameters
sourceArray containing the FT - buffer is used to reorder it
Date
10.2025
Author
Stepan Marek

Definition at line 223 of file rt_propagation_ft.F.

Here is the caller graph for this function:

◆ fft_freqs()

subroutine, public rt_propagation_ft::fft_freqs ( integer  n,
real(kind=dp)  t_total,
real(kind=dp), dimension(:)  omegas,
logical, optional  fft_ordering_opt 
)

Switches the order in result of FT, so that negative frequencies go first.

Parameters
nNumber of frequencies
t_totalTotal corresponding propagation time
omegasArray of frequencies
fft_ordering_optWhether to switch to FFT ordering
Date
10.2025
Author
Stepan Marek

Definition at line 269 of file rt_propagation_ft.F.

Here is the caller graph for this function: