Snoopy Version 6.0 (Albert)
output_spectrum.c File Reference
#include <stdlib.h>
#include "../common.h"
#include "../gfft.h"
#include "../shear.h"
#include "../debug.h"
#include "../particles.h"
Include dependency graph for output_spectrum.c:

Defines

#define MAX_N_BIN   10000
#define OUTPUT_SPECTRUM_K_BIN   (2.0 * M_PI)
#define OUTPUT_SPECTRUM_FILENAME   "spectrum.dat"

Functions

void write_spectrum (const double complex wi[], const double complex wj[], const double ti)
void output1Dspectrum (const struct Field fldi, const double ti)
void init1Dspectrum ()

Define Documentation

#define MAX_N_BIN   10000
#define OUTPUT_SPECTRUM_FILENAME   "spectrum.dat"
#define OUTPUT_SPECTRUM_K_BIN   (2.0 * M_PI)

Function Documentation

void init1Dspectrum ( )

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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:
wi1st double complex array from which the spectrum has to be deduced
wj2nd double complex array from which the spectrum has to be deduced
tiCurrent time

Here is the call graph for this function:

Here is the caller graph for this function: