1.5.1
CCC
 
vtk.cpp File Reference
#include "OutputFormat/vtk.h"
#include "Basic/AStringable.hpp"
#include "Basic/String.hpp"
#include "Basic/File.hpp"
#include "Basic/Memory.hpp"
#include <string.h>

Functions

static void end_line (void)
 
static void open_file (const char *filename)
 
static void close_file (void)
 
static void force_big_endian (unsigned char *bytes)
 
static void write_string (const char *str)
 
static void new_section (void)
 
static void write_int (int val)
 
static void write_float (float val)
 
static void write_header (void)
 
void write_variables (int nvars, const int *vardim, const int *centering, const char *const *varname, float **vars, int npts, int ncells)
 
void write_point_mesh (const char *filename, int ub, int npts, float *pts, int nvars, int *vardim, const char *const *varnames, float **vars)
 
static int num_points_for_cell (int celltype)
 
void write_unstructured_mesh (const char *filename, int ub, int npts, float *pts, int ncells, int *celltypes, int *conn, int nvars, int *vardim, int *centering, const char *const *varnames, float **vars)
 
void write_rectilinear_mesh (const char *filename, int ub, int *dims, float *x, float *y, float *z, int nvars, int *vardim, int *centering, const char *const *varnames, float **vars)
 
void write_regular_mesh (const char *filename, int ub, int *dims, int nvars, int *vardim, int *centering, const char *const *varnames, float **vars)
 
void write_curvilinear_mesh (const char *filename, int ub, int *dims, float *pts, int nvars, int *vardim, int *centering, const char *const *varnames, float **vars)
 

Variables

static FILE * fp = NULL
 
static int useBinary = 0
 
static int numInColumn = 0
 

Function Documentation

◆ close_file()

static void close_file ( void  )
static

◆ end_line()

static void end_line ( void  )
static

◆ force_big_endian()

static void force_big_endian ( unsigned char *  bytes)
static

◆ new_section()

static void new_section ( void  )
static

◆ num_points_for_cell()

static int num_points_for_cell ( int  celltype)
static

◆ open_file()

static void open_file ( const char *  filename)
static

◆ write_curvilinear_mesh()

void write_curvilinear_mesh ( const char *  filename,
int  ub,
int *  dims,
float *  pts,
int  nvars,
int *  vardim,
int *  centering,
const char *const *  varnames,
float **  vars 
)

◆ write_float()

static void write_float ( float  val)
static

◆ write_header()

static void write_header ( void  )
static

◆ write_int()

static void write_int ( int  val)
static

◆ write_point_mesh()

void write_point_mesh ( const char *  filename,
int  ub,
int  npts,
float *  pts,
int  nvars,
int *  vardim,
const char *const *  varnames,
float **  vars 
)

◆ write_rectilinear_mesh()

void write_rectilinear_mesh ( const char *  filename,
int  ub,
int *  dims,
float *  x,
float *  y,
float *  z,
int  nvars,
int *  vardim,
int *  centering,
const char *const *  varnames,
float **  vars 
)

◆ write_regular_mesh()

void write_regular_mesh ( const char *  filename,
int  ub,
int *  dims,
int  nvars,
int *  vardim,
int *  centering,
const char *const *  varnames,
float **  vars 
)

◆ write_string()

static void write_string ( const char *  str)
static

◆ write_unstructured_mesh()

void write_unstructured_mesh ( const char *  filename,
int  ub,
int  npts,
float *  pts,
int  ncells,
int *  celltypes,
int *  conn,
int  nvars,
int *  vardim,
int *  centering,
const char *const *  varnames,
float **  vars 
)

◆ write_variables()

void write_variables ( int  nvars,
const int *  vardim,
const int *  centering,
const char *const *  varname,
float **  vars,
int  npts,
int  ncells 
)

Variable Documentation

◆ fp

FILE* fp = NULL
static

◆ numInColumn

int numInColumn = 0
static

◆ useBinary

int useBinary = 0
static