foam to Tecplot360 converter
[OpenFOAM-1.6.x.git] / applications / utilities / postProcessing / dataConversion / foamToTecplot360 / tecio / tecsrc / GEOM.h
blob092b92dfd2d993fffc0f100936de22bf87651182
1 /*
2 * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
4 * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
6 * Tecplot hereby grants OpenCFD limited authority to distribute without
7 * alteration the source code to the Tecplot Input/Output library, known
8 * as TecIO, as part of its distribution of OpenFOAM and the
9 * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
10 * granted access to the TecIO source code, and may redistribute it for the
11 * purpose of maintaining the converter. However, no authority is granted
12 * to alter the TecIO source code in any form or manner.
14 * This limited grant of distribution does not supersede Tecplot, Inc.'s
15 * copyright in TecIO. Contact Tecplot, Inc. for further information.
17 * Tecplot, Inc.
18 * 3535 Factoria Blvd, Ste. 550
19 * Bellevue, WA 98006, USA
20 * Phone: +1 425 653 1200
21 * http://www.tecplot.com/
25 *****************************************************************
26 *****************************************************************
27 ******* ********
28 ****** Copyright (C) 1988-2008 Tecplot, Inc. *******
29 ******* ********
30 *****************************************************************
31 *****************************************************************
34 #if defined EXTERN
35 #undef EXTERN
36 #endif
37 #if defined GEOMMODULE
38 #define EXTERN
39 #else
40 #define EXTERN extern
41 #endif
44 /* * macros for checking CoordSys_e * */
45 #define VALID_RECTANGLE_COORDSYS(sys) \
46 (((sys)==CoordSys_Frame) || \
47 ((sys)==CoordSys_Grid))
48 #define VALID_SQUARE_COORDSYS(sys) VALID_RECTANGLE_COORDSYS((sys))
49 #define VALID_ELLIPSE_COORDSYS(sys) VALID_RECTANGLE_COORDSYS((sys))
50 #define VALID_CIRCLE_COORDSYS(sys) VALID_ELLIPSE_COORDSYS((sys))
51 #define VALID_IMAGE_COORDSYS(sys) VALID_RECTANGLE_COORDSYS((sys))
52 #define VALID_LINESEG_COORDSYS(sys) \
53 (((sys)==CoordSys_Frame) || \
54 ((sys)==CoordSys_Grid) || \
55 ((sys)==CoordSys_Grid3D))
56 #define VALID_GEOM_COORDSYS(sys) \
57 (((sys)==CoordSys_Frame) || \
58 ((sys)==CoordSys_Grid) || \
59 ((sys)==CoordSys_Grid3D))
61 #define VALID_GEOM_TYPE(geomtype) \
62 ( VALID_ENUM((geomtype),GeomType_e) && \
63 (geomtype)!=GeomType_LineSegs3D )
65 #define VALID_GEOM_FIELD_DATA_TYPE(datatype) \
66 ( ( (datatype) == FieldDataType_Float ) || \
67 ( (datatype) == FieldDataType_Double ) )
69 #if defined TECPLOTKERNEL
70 /* CORE SOURCE CODE REMOVED */
71 #endif /* TECPLOTKERNEL */