Function ImmersX::LegacyInclusions::fourier_to_reference_scale

Function Documentation

double ImmersX::LegacyInclusions::fourier_to_reference_scale(const unsigned int mode)

Convert a legacy Fourier coefficient to the normalized reference basis.

The constant mode is already normalized. Every non-constant sine/cosine mode has L2 norm sqrt(pi) on the unit circle, while the reference basis is normalized to have norm sqrt(2*pi). Therefore a legacy coefficient is divided by sqrt(2) for all non-constant modes.