-
Notifications
You must be signed in to change notification settings - Fork 23
/
paraview.h
60 lines (59 loc) · 2.93 KB
/
paraview.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/****************************************************************************
* ArtraCFD *
* <By Huangrui Mo> *
* Copyright (C) Huangrui Mo <huangrui.mo@gmail.com> *
* This file is part of ArtraCFD. *
* ArtraCFD is free software: you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
****************************************************************************/
/****************************************************************************
* Header File Guards to Avoid Interdependence
****************************************************************************/
#ifndef ARTRACFD_PARAVIEW_H_ /* if undefined */
#define ARTRACFD_PARAVIEW_H_ /* set a unique marker */
/****************************************************************************
* Required Header Files
****************************************************************************/
#include "commons.h"
/****************************************************************************
* Data Structure Declarations
****************************************************************************/
typedef enum {
PVSTR = 80, /* string data length */
PVVARSTR = 10, /* variable name length */
PVSCAN = 10, /* maximum number of scalar variables */
PVVECN = 1, /* maximum number of vector variables */
} PvConst;
typedef char PvStr[PVSTR]; /* string data */
typedef Real PvReal; /* real data */
typedef struct {
PvStr rname; /* data file root name */
PvStr bname; /* data file base name */
PvStr fname; /* store current open file name */
PvStr fext; /* data file extension */
PvStr fmt; /* format specifier */
PvStr intType; /* int type */
PvStr floatType; /* float type */
PvStr byteOrder; /* byte order of data */
int scaN; /* number of scalar variables */
char sca[PVSCAN][PVVARSTR]; /* scalar variables */
int vecN; /* number of vector variables */
char vec[PVVECN][PVVARSTR]; /* vector variables */
} PvSet; /* configuration structure */
/****************************************************************************
* Public Functions Declaration
****************************************************************************/
/*
* Structured data writer and reader
*/
extern void WriteStructuredDataParaview(const Time *, const Space *, const Model *);
extern void ReadStructuredDataParaview(Time *, Space *, const Model *);
/*
* Poly data writer and reader
*/
extern void WritePolyDataParaview(const Time *, const Geometry *const);
extern void ReadPolyDataParaview(const Time *, Geometry *const);
#endif
/* a good practice: end file with a newline */