#include <stdlib.h>
#include "../common.h"
#include "../gfft.h"
#include "../shear.h"
#include "../debug.h"
#include "../particles.h"
Function Documentation
void finish_output_vtk |
( |
| ) |
|
Init the 1D Fourier transforms needed by remap_output.
void output_vtk |
( |
struct Field |
fldi, |
|
|
const int |
n, |
|
|
double |
t |
|
) |
| |
Output a legacy VTK file readable by Paraview. This routine will output all the variables in files data/v****.vtk.
- Parameters:
-
n | Number of the file in which the output will done. |
t | Current time of the simulation. |
void write_vtk |
( |
FILE * |
ht, |
|
|
double complex |
wi[], |
|
|
const double |
t |
|
) |
| |
Output a floating point big endian array from a complex array. Use Forran output format (required by VTK). This routine is essentially useful for VTK files (hence its name...).
- Parameters:
-
ht | File handler in which the data has to be written |
wi | Complex array containing the field to be written. This array is transformed into real space and remapped (if SHEAR is present) before being written. |
t | Current time of the simulation. |