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.
18 * 3535 Factoria Blvd, Ste. 550
19 * Bellevue, WA 98006, USA
20 * Phone: +1 425 653 1200
21 * http://www.tecplot.com/
25 * DATAUTIL.h : COPYRIGHT (C)1987-2002 Tecplot, Inc.
28 * NOTE: THIS MODULE NOW IS PART OF THE TECPLOT SOURCE
29 * ONLY EDIT THIS IN THE MAIN TECPLOT SOURCE DIRECTORY.
35 #define DATAUTIL_VERSION 61
37 #if defined MAKEARCHIVE
38 extern void InitInputSpecs(void);
44 * Read a binary tecplot datafile.
46 * @param GetHeaderInfoOnly
47 * Return only the header info from the datafile.
50 * Name of the file to read.
53 * Returns version of the input file.
56 * Allocates space for and returns dataset title.
59 * Returns the number of zones.
62 * Returns the number of variables.
65 * Allocates space for and returns the var names.
68 * Allocates space for and returns the zone names.
70 * @param NumPtsI, NumPtsJ, NumPtsK
71 * Zone dimensions loaded into LgIndex_t arrays.
74 * Zone types loaded into ZoneType_e array.
77 * Allocates space for and returns the user records.
79 * @param RawDataspaceAllocated
80 * Only used if GetHeaderInfoOnly is FALSE. TRUE = calling program has alloced space for
81 * the raw data. FALSE= let ReadTec allocate space for the raw data.
84 * Finite Element connectivity information. ReadTec
85 * will allocate the space for you if RawDataspaceAllocated is FALSE.
88 * Raw field data loaded into double arrays. ReadTec
89 * will allocate the space for you if RawDataspaceAllocated is
90 * FALSE. If RawDataspaceAllocated is TRUE then ReadTec will
91 * only load the arrays that have non NULL addresses.
94 LIBFUNCTION Boolean_t STDCALL
ReadTec(Boolean_t GetHeaderInfoOnly
,
100 StringList_pa
*VarNames
,
101 StringList_pa
*ZoneNames
,
105 ZoneType_e
**ZoneType
,
106 StringList_pa
*UserRec
,
107 Boolean_t RawDataspaceAllocated
,
108 NodeMap_t
***NodeMap
,
109 double ***VDataBase
);
111 LIBFUNCTION
void * STDCALL
TecAlloc(size_t size
);
113 LIBFUNCTION
void STDCALL
TecFree(void *ptr
);
116 #endif /* !DATAUTIL_H */