Simulation output

Name

Simulation output -- Saving the whole simulation

Synopsis


#include <gfs.h>


#define     GFS_OUTPUT_SIMULATION_CLASS     (klass)
#define     GFS_OUTPUT_SIMULATION           (obj)
#define     GFS_IS_OUTPUT_SIMULATION        (obj)

            GfsOutputSimulation;

GfsOutputClass* gfs_output_simulation_class (void);

Description

GfsOutputSimulation will write a description of the current state of the simulation which contains both standard simulation parameters, layout of the cell hierarchy and associated variable values.

The syntax in parameter files is as follows:

[ GfsOutput ] { depth = 5 variables = U,V,C binary = 1 surface = 0 }

with

depthAn optional parameter setting the maximum depth which will be considered (the default is infinity).
variablesA comma-separated list of the names of the variables which will be written. The default is all the simulation permanent variables.
binaryAn optional parameter specifying if a binary format should be used. Binary files allow faster reading of simulation files and are the default. Setting binary to 0 will use a more portable ASCII format.
surfaceAn optional parameter specifying if the surface describing solid boundaries should be included in the simulation file. The default is to include the solid surface.

Details

GFS_OUTPUT_SIMULATION_CLASS()

#define     GFS_OUTPUT_SIMULATION_CLASS(klass)

klass :


GFS_OUTPUT_SIMULATION()

#define     GFS_OUTPUT_SIMULATION(obj)

obj :


GFS_IS_OUTPUT_SIMULATION()

#define     GFS_IS_OUTPUT_SIMULATION(obj)

obj :


GfsOutputSimulation

typedef struct {
  GfsOutput parent;

  gint max_depth;
  GSList * var;
  gboolean binary, surface;
  GfsOutputSimulationFormat format;
} GfsOutputSimulation;


gfs_output_simulation_class ()

GfsOutputClass* gfs_output_simulation_class (void);

Returns :