HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Write a vector field and its grid to a 2D Tecplot file. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <basic.h>
#include <arrayfunctions.h>
Go to the source code of this file.
Functions | |
int | WriteTecplot2D (int ndims, int nvars, int *dim, double *x, double *u, char *f, int *index) |
Write a vector field and its grid to a 2D Tecplot file.
Definition in file WriteTecplot2D.c.
int WriteTecplot2D | ( | int | ndims, |
int | nvars, | ||
int * | dim, | ||
double * | x, | ||
double * | u, | ||
char * | f, | ||
int * | index | ||
) |
Write a vector field and its associated grid to a 2D Tecplot file. This file can then be visualized using Tecplot (http://www.tecplot.org) (if available).
Note: It's essentially a text file, and apart from the first two lines with Tecplot specific headers, the data is written out in the same format as WriteText().
ndims | Number of spatial dimensions |
nvars | Number of variables at each grid point |
dim | Integer array with the number of grid points in each spatial dimension as its entries |
x | Array of spatial coordinates representing a Cartesian grid (no ghost points) |
u | Array containing the vector field to write (no ghost points) |
f | Filename |
index | Preallocated integer array of size ndims |
Definition at line 19 of file WriteTecplot2D.c.