#include <stdlib.h>
#include "../common.h"
#include "../gfft.h"
#include "../shear.h"
#include "../debug.h"
#include "../particles.h"
Define Documentation
#define OUTPUT_SPECTRUM_FILENAME "spectrum.dat" |
#define OUTPUT_SPECTRUM_K_BIN (2.0 * M_PI) |
Function Documentation
Initialise the 1D spectrum output routine, used to output the spectrum This routine print the mode ks in the first line It also counts the number of mode in each shell and output it in the second line of OUTPUT_SPECTRUM_FILENAME
void output1Dspectrum |
( |
const struct Field |
fldi, |
|
|
const double |
ti |
|
) |
| |
Output the transport spectrum in a file (OUTPUT_SPECTRUM_FILENAME) This routine is called only when shear is present.
- Parameters:
-
fldi,: | field from which the transport is computed |
ti,: | current time |
void write_spectrum |
( |
const double complex |
wi[], |
|
|
const double complex |
wj[], |
|
|
const double |
ti |
|
) |
| |
compute a shell-integrated spectrum of the tensor real(wi*wj+) and write it on OUTPUT_SPECTRUM_FILENAME
- Parameters:
-
wi | 1st double complex array from which the spectrum has to be deduced |
wj | 2nd double complex array from which the spectrum has to be deduced |
ti | Current time |