cgnslib.h 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643
  1. /* ------------------------------------------------------------------------- *
  2. * CGNS - CFD General Notation System (http://www.cgns.org) *
  3. * CGNS/MLL - Mid-Level Library header file *
  4. * Please see cgnsconfig.h file for this local installation configuration *
  5. * ------------------------------------------------------------------------- */
  6. /* ------------------------------------------------------------------------- *
  7. This software is provided 'as-is', without any express or implied warranty.
  8. In no event will the authors be held liable for any damages arising from
  9. the use of this software.
  10. Permission is granted to anyone to use this software for any purpose,
  11. including commercial applications, and to alter it and redistribute it
  12. freely, subject to the following restrictions:
  13. 1. The origin of this software must not be misrepresented; you must not
  14. claim that you wrote the original software. If you use this software
  15. in a product, an acknowledgment in the product documentation would be
  16. appreciated but is not required.
  17. 2. Altered source versions must be plainly marked as such, and must not
  18. be misrepresented as being the original software.
  19. 3. This notice may not be removed or altered from any source distribution.
  20. * _____ __ __ _____ ____ _____ _______ _ _ _______
  21. * |_ _| \/ | __ \ / __ \| __ \__ __|/\ | \ | |__ __|
  22. * | | | \ / | |__) | | | | |__) | | | / \ | \| | | |
  23. * | | | |\/| | ___/| | | | _ / | | / /\ \ | . ` | | |
  24. * _| |_| | | | | | |__| | | \ \ | |/ ____ \| |\ | | |
  25. * |_____|_| |_|_| \____/|_| \_\ |_/_/ \_\_| \_| |_|
  26. *
  27. * ------------------- DEVELOPER'S NOTES ---------------------------
  28. * (1) When adding a defined constant to this file, also add the same defined
  29. * constant to cgns_f.F90
  30. *
  31. * ------------------------------------------------------------------------- */
  32. #ifndef CGNSLIB_H
  33. #define CGNSLIB_H
  34. #define CGNS_VERSION 4300
  35. #define CGNS_DOTVERS 4.30
  36. #define CGNS_COMPATVERSION 2540
  37. #define CGNS_COMPATDOTVERS 2.54
  38. #include "cgnstypes.h"
  39. #if CG_BUILD_SCOPE
  40. # ifndef CGNS_SCOPE_ENUMS
  41. # define CGNS_SCOPE_ENUMS
  42. # endif
  43. #else
  44. # ifdef CGNS_SCOPE_ENUMS
  45. # undef CGNS_SCOPE_ENUMS
  46. # endif
  47. #endif
  48. #ifndef CGNSDLL
  49. # ifdef _WIN32
  50. # if defined(BUILD_DLL)
  51. # define CGNSDLL __declspec(dllexport)
  52. # elif defined(USE_DLL)
  53. # define CGNSDLL __declspec(dllimport)
  54. # else
  55. # define CGNSDLL
  56. # endif
  57. # else
  58. # define CGNSDLL
  59. # endif
  60. #endif
  61. #ifdef CGNS_SCOPE_ENUMS
  62. /* set scope prefix for values only */
  63. #define CGNS_ENUMV( e ) CG_ ## e
  64. /* set scope prefix for types */
  65. #define CGNS_ENUMT( e ) CG_ ## e
  66. /* set scope prefix for defines */
  67. #define CGNS_ENUMD( e ) CG_ ## e
  68. /* set scope prefix for variables (lowercase same as functions) */
  69. #define CGNS_ENUMF( e ) cg_ ## e
  70. #else
  71. #define CGNS_ENUMV( e ) e
  72. #define CGNS_ENUMT( e ) e
  73. #define CGNS_ENUMD( e ) e
  74. #define CGNS_ENUMF( e ) e
  75. #endif
  76. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  77. * modes for cgns file *
  78. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  79. #define CG_MODE_READ 0
  80. #define CG_MODE_WRITE 1
  81. #define CG_MODE_MODIFY 2
  82. /* file types */
  83. #define CG_FILE_NONE 0
  84. #define CG_FILE_ADF 1
  85. #define CG_FILE_HDF5 2
  86. #define CG_FILE_ADF2 3
  87. /* function return codes */
  88. #define CG_OK 0
  89. #define CG_ERROR 1
  90. #define CG_NODE_NOT_FOUND 2
  91. #define CG_INCORRECT_PATH 3
  92. #define CG_NO_INDEX_DIM 4
  93. /* Null and UserDefined enums */
  94. #define CG_Null 0
  95. #define CG_UserDefined 1
  96. /* max goto depth */
  97. #define CG_MAX_GOTO_DEPTH 20
  98. /* configuration options */
  99. #define CG_CONFIG_ERROR 1
  100. #define CG_CONFIG_COMPRESS 2
  101. #define CG_CONFIG_SET_PATH 3
  102. #define CG_CONFIG_ADD_PATH 4
  103. #define CG_CONFIG_FILE_TYPE 5
  104. #define CG_CONFIG_RIND_INDEX 6
  105. #define CG_CONFIG_HDF5_COMPRESS 201
  106. #define CG_CONFIG_HDF5_MPI_COMM 202
  107. #define CG_CONFIG_HDF5_DISKLESS 203
  108. #define CG_CONFIG_HDF5_DISKLESS_INCR 204
  109. #define CG_CONFIG_HDF5_DISKLESS_WRITE 205
  110. #define CG_CONFIG_HDF5_ALIGNMENT 206
  111. #define CG_CONFIG_HDF5_MD_BLOCK_SIZE 207
  112. #define CG_CONFIG_HDF5_BUFFER 208
  113. #define CG_CONFIG_HDF5_SIEVE_BUF_SIZE 209
  114. #define CG_CONFIG_RESET 1000
  115. #define CG_CONFIG_RESET_HDF5 1
  116. /* HDF5 dataset storage layout */
  117. #define CG_CONTIGUOUS 0
  118. #define CG_COMPACT 1
  119. #define CG_CHUNKED 2
  120. /* note: CG_CONFIG_RIND_ZERO is obsolete and considered a bug. Users are given
  121. * the option only for backwards compatibility */
  122. #define CG_CONFIG_RIND_ZERO (void*)0
  123. #define CG_CONFIG_RIND_CORE (void*)1
  124. #ifdef __cplusplus
  125. extern "C" {
  126. #endif
  127. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  128. * Enumerations: if any of this enumerations need to be modified, *
  129. * the corresponding namelist must also be updated. *
  130. * *
  131. * Any addition to an enum should be done as an addition at end of list *
  132. * with an explicit declaration of the corresponding integer. *
  133. * This is required for enums stored as integers in the CGNS file or *
  134. * used in applications. *
  135. * *
  136. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  137. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  138. * Dimensional Units *
  139. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  140. typedef enum {
  141. CGNS_ENUMV( MassUnitsNull ) =CG_Null,
  142. CGNS_ENUMV( MassUnitsUserDefined )=CG_UserDefined,
  143. CGNS_ENUMV( Kilogram ) =2,
  144. CGNS_ENUMV( Gram ) =3,
  145. CGNS_ENUMV( Slug ) =4,
  146. CGNS_ENUMV( PoundMass ) =5
  147. } CGNS_ENUMT( MassUnits_t );
  148. typedef enum {
  149. CGNS_ENUMV( LengthUnitsNull ) =CG_Null,
  150. CGNS_ENUMV( LengthUnitsUserDefined )=CG_UserDefined,
  151. CGNS_ENUMV( Meter ) =2,
  152. CGNS_ENUMV( Centimeter ) =3,
  153. CGNS_ENUMV( Millimeter ) =4,
  154. CGNS_ENUMV( Foot ) =5,
  155. CGNS_ENUMV( Inch ) =6
  156. } CGNS_ENUMT( LengthUnits_t );
  157. typedef enum {
  158. CGNS_ENUMV( TimeUnitsNull ) =CG_Null,
  159. CGNS_ENUMV( TimeUnitsUserDefined )=CG_UserDefined,
  160. CGNS_ENUMV( Second ) =2
  161. } CGNS_ENUMT( TimeUnits_t );
  162. typedef enum {
  163. CGNS_ENUMV( TemperatureUnitsNull ) =CG_Null,
  164. CGNS_ENUMV( TemperatureUnitsUserDefined )=CG_UserDefined,
  165. CGNS_ENUMV( Kelvin ) =2,
  166. CGNS_ENUMV( Celsius ) =3,
  167. CGNS_ENUMV( Rankine ) =4,
  168. CGNS_ENUMV( Fahrenheit ) =5
  169. } CGNS_ENUMT( TemperatureUnits_t );
  170. typedef enum {
  171. CGNS_ENUMV( AngleUnitsNull ) =CG_Null,
  172. CGNS_ENUMV( AngleUnitsUserDefined )=CG_UserDefined,
  173. CGNS_ENUMV( Degree ) =2,
  174. CGNS_ENUMV( Radian ) =3
  175. } CGNS_ENUMT( AngleUnits_t );
  176. typedef enum {
  177. CGNS_ENUMV( ElectricCurrentUnitsNull ) =CG_Null,
  178. CGNS_ENUMV( ElectricCurrentUnitsUserDefined )=CG_UserDefined,
  179. CGNS_ENUMV( Ampere ) =2,
  180. CGNS_ENUMV( Abampere ) =3,
  181. CGNS_ENUMV( Statampere ) =4,
  182. CGNS_ENUMV( Edison ) =5,
  183. CGNS_ENUMV( auCurrent ) =6
  184. } CGNS_ENUMT( ElectricCurrentUnits_t );
  185. typedef enum {
  186. CGNS_ENUMV( SubstanceAmountUnitsNull ) =CG_Null,
  187. CGNS_ENUMV( SubstanceAmountUnitsUserDefined )=CG_UserDefined,
  188. CGNS_ENUMV( Mole ) =2,
  189. CGNS_ENUMV( Entities ) =3,
  190. CGNS_ENUMV( StandardCubicFoot ) =4,
  191. CGNS_ENUMV( StandardCubicMeter ) =5
  192. } CGNS_ENUMT( SubstanceAmountUnits_t );
  193. typedef enum {
  194. CGNS_ENUMV( LuminousIntensityUnitsNull ) =CG_Null,
  195. CGNS_ENUMV( LuminousIntensityUnitsUserDefined )=CG_UserDefined,
  196. CGNS_ENUMV( Candela ) =2,
  197. CGNS_ENUMV( Candle ) =3,
  198. CGNS_ENUMV( Carcel ) =4,
  199. CGNS_ENUMV( Hefner ) =5,
  200. CGNS_ENUMV( Violle ) =6
  201. } CGNS_ENUMT( LuminousIntensityUnits_t );
  202. #define NofValidMassUnits 6
  203. #define NofValidLengthUnits 7
  204. #define NofValidTimeUnits 3
  205. #define NofValidTemperatureUnits 6
  206. #define NofValidAngleUnits 4
  207. #define NofValidElectricCurrentUnits 7
  208. #define NofValidSubstanceAmountUnits 6
  209. #define NofValidLuminousIntensityUnits 7
  210. extern CGNSDLL const char * MassUnitsName[NofValidMassUnits];
  211. extern CGNSDLL const char * LengthUnitsName[NofValidLengthUnits];
  212. extern CGNSDLL const char * TimeUnitsName[NofValidTimeUnits];
  213. extern CGNSDLL const char * TemperatureUnitsName[NofValidTemperatureUnits];
  214. extern CGNSDLL const char * AngleUnitsName[NofValidAngleUnits];
  215. extern CGNSDLL const char * ElectricCurrentUnitsName[NofValidElectricCurrentUnits];
  216. extern CGNSDLL const char * SubstanceAmountUnitsName[NofValidSubstanceAmountUnits];
  217. extern CGNSDLL const char * LuminousIntensityUnitsName[NofValidLuminousIntensityUnits];
  218. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  219. * Data Class *
  220. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  221. typedef enum {
  222. CGNS_ENUMV( DataClassNull ) =CG_Null,
  223. CGNS_ENUMV( DataClassUserDefined ) =CG_UserDefined,
  224. CGNS_ENUMV( Dimensional ) =2,
  225. CGNS_ENUMV( NormalizedByDimensional ) =3,
  226. CGNS_ENUMV( NormalizedByUnknownDimensional ) =4,
  227. CGNS_ENUMV( NondimensionalParameter ) =5,
  228. CGNS_ENUMV( DimensionlessConstant ) =6
  229. } CGNS_ENUMT( DataClass_t );
  230. #define NofValidDataClass 7
  231. extern CGNSDLL const char * DataClassName[NofValidDataClass];
  232. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  233. * Grid Location
  234. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  235. typedef enum {
  236. CGNS_ENUMV( GridLocationNull ) =CG_Null,
  237. CGNS_ENUMV( GridLocationUserDefined ) =CG_UserDefined,
  238. CGNS_ENUMV( Vertex ) =2,
  239. CGNS_ENUMV( CellCenter ) =3,
  240. CGNS_ENUMV( FaceCenter ) =4,
  241. CGNS_ENUMV( IFaceCenter ) =5,
  242. CGNS_ENUMV( JFaceCenter ) =6,
  243. CGNS_ENUMV( KFaceCenter ) =7,
  244. CGNS_ENUMV( EdgeCenter ) =8
  245. } CGNS_ENUMT( GridLocation_t );
  246. #define NofValidGridLocation 9
  247. extern CGNSDLL const char * GridLocationName[NofValidGridLocation];
  248. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  249. * BCData Types: Can not add types and stay forward compatible *
  250. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  251. typedef enum {
  252. CGNS_ENUMV( BCDataTypeNull ) =CG_Null,
  253. CGNS_ENUMV( BCDataTypeUserDefined ) =CG_UserDefined,
  254. CGNS_ENUMV( Dirichlet ) =2,
  255. CGNS_ENUMV( Neumann ) =3
  256. } CGNS_ENUMT( BCDataType_t );
  257. #define NofValidBCDataTypes 4
  258. extern CGNSDLL const char * BCDataTypeName[NofValidBCDataTypes];
  259. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  260. * Grid Connectivity Types *
  261. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  262. typedef enum {
  263. CGNS_ENUMV( GridConnectivityTypeNull ) =CG_Null,
  264. CGNS_ENUMV( GridConnectivityTypeUserDefined ) =CG_UserDefined,
  265. CGNS_ENUMV( Overset ) =2,
  266. CGNS_ENUMV( Abutting ) =3,
  267. CGNS_ENUMV( Abutting1to1 ) =4
  268. } CGNS_ENUMT( GridConnectivityType_t );
  269. #define NofValidGridConnectivityTypes 5
  270. extern CGNSDLL const char * GridConnectivityTypeName[NofValidGridConnectivityTypes];
  271. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  272. * Point Set Types: Can't add types and stay forward compatible
  273. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  274. typedef enum {
  275. CGNS_ENUMV( PointSetTypeNull ) =CG_Null,
  276. CGNS_ENUMV( PointSetTypeUserDefined ) =CG_UserDefined,
  277. CGNS_ENUMV( PointList ) =2,
  278. CGNS_ENUMV( PointListDonor ) =3,
  279. CGNS_ENUMV( PointRange ) =4,
  280. CGNS_ENUMV( PointRangeDonor ) =5,
  281. CGNS_ENUMV( ElementRange ) =6,
  282. CGNS_ENUMV( ElementList ) =7,
  283. CGNS_ENUMV( CellListDonor ) =8
  284. } CGNS_ENUMT( PointSetType_t );
  285. #define NofValidPointSetTypes 9
  286. extern CGNSDLL const char * PointSetTypeName[NofValidPointSetTypes];
  287. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  288. * Governing Equations and Physical Models Types *
  289. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  290. typedef enum {
  291. CGNS_ENUMV( GoverningEquationsNull ) =CG_Null,
  292. CGNS_ENUMV( GoverningEquationsUserDefined ) =CG_UserDefined,
  293. CGNS_ENUMV( FullPotential ) =2,
  294. CGNS_ENUMV( Euler ) =3,
  295. CGNS_ENUMV( NSLaminar ) =4,
  296. CGNS_ENUMV( NSTurbulent ) =5,
  297. CGNS_ENUMV( NSLaminarIncompressible ) =6,
  298. CGNS_ENUMV( NSTurbulentIncompressible ) =7
  299. } CGNS_ENUMT( GoverningEquationsType_t );
  300. /* Any model type will accept both ModelTypeNull and ModelTypeUserDefined.
  301. ** The following models will accept these values as valid...
  302. **
  303. ** GasModel_t: Ideal, VanderWaals, CaloricallyPerfect, ThermallyPerfect,
  304. ** ConstantDensity, RedlichKwong
  305. **
  306. ** ViscosityModel_t: Constant, PowerLaw, SutherlandLaw
  307. **
  308. ** ThermalConductivityModel_t: PowerLaw, SutherlandLaw, ConstantPrandtl
  309. **
  310. ** TurbulenceModel_t: Algebraic_BaldwinLomax, Algebraic_CebeciSmith,
  311. ** HalfEquation_JohnsonKing, OneEquation_BaldwinBarth,
  312. ** OneEquation_SpalartAllmaras, TwoEquation_JonesLaunder,
  313. ** TwoEquation_MenterSST,TwoEquation_Wilcox
  314. **
  315. ** TurbulenceClosure_t: EddyViscosity, ReynoldsStress, ReynoldsStressAlgebraic
  316. **
  317. ** ThermalRelaxationModel_t: Frozen, ThermalEquilib, ThermalNonequilib
  318. **
  319. ** ChemicalKineticsModel_t: Frozen, ChemicalEquilibCurveFit,
  320. ** ChemicalEquilibMinimization, ChemicalNonequilib
  321. **
  322. ** EMElectricFieldModel_t: Voltage, Interpolated, Constant, Frozen
  323. **
  324. ** EMMagneticFieldModel_t: Interpolated, Constant, Frozen
  325. **
  326. ** EMConductivityModel_t: Constant, Frozen, Equilibrium_LinRessler,
  327. ** Chemistry_LinRessler
  328. */
  329. typedef enum {
  330. CGNS_ENUMV( ModelTypeNull ) =CG_Null,
  331. CGNS_ENUMV( ModelTypeUserDefined ) =CG_UserDefined,
  332. CGNS_ENUMV( Ideal ) =2,
  333. CGNS_ENUMV( VanderWaals ) =3,
  334. CGNS_ENUMV( Constant ) =4,
  335. CGNS_ENUMV( PowerLaw ) =5,
  336. CGNS_ENUMV( SutherlandLaw ) =6,
  337. CGNS_ENUMV( ConstantPrandtl ) =7,
  338. CGNS_ENUMV( EddyViscosity ) =8,
  339. CGNS_ENUMV( ReynoldsStress ) =9,
  340. CGNS_ENUMV( ReynoldsStressAlgebraic ) =10,
  341. CGNS_ENUMV( Algebraic_BaldwinLomax ) =11,
  342. CGNS_ENUMV( Algebraic_CebeciSmith ) =12,
  343. CGNS_ENUMV( HalfEquation_JohnsonKing ) =13,
  344. CGNS_ENUMV( OneEquation_BaldwinBarth ) =14,
  345. CGNS_ENUMV( OneEquation_SpalartAllmaras ) =15,
  346. CGNS_ENUMV( TwoEquation_JonesLaunder ) =16,
  347. CGNS_ENUMV( TwoEquation_MenterSST ) =17,
  348. CGNS_ENUMV( TwoEquation_Wilcox ) =18,
  349. CGNS_ENUMV( CaloricallyPerfect ) =19,
  350. CGNS_ENUMV( ThermallyPerfect ) =20,
  351. CGNS_ENUMV( ConstantDensity ) =21,
  352. CGNS_ENUMV( RedlichKwong ) =22,
  353. CGNS_ENUMV( Frozen ) =23,
  354. CGNS_ENUMV( ThermalEquilib ) =24,
  355. CGNS_ENUMV( ThermalNonequilib ) =25,
  356. CGNS_ENUMV( ChemicalEquilibCurveFit ) =26,
  357. CGNS_ENUMV( ChemicalEquilibMinimization ) =27,
  358. CGNS_ENUMV( ChemicalNonequilib ) =28,
  359. CGNS_ENUMV( EMElectricField ) =29,
  360. CGNS_ENUMV( EMMagneticField ) =30,
  361. CGNS_ENUMV( EMConductivity ) =31,
  362. CGNS_ENUMV( Voltage ) =32,
  363. CGNS_ENUMV( Interpolated ) =33,
  364. CGNS_ENUMV( Equilibrium_LinRessler ) =34,
  365. CGNS_ENUMV( Chemistry_LinRessler ) =35
  366. } CGNS_ENUMT( ModelType_t );
  367. #define NofValidGoverningEquationsTypes 8
  368. #define NofValidModelTypes 36
  369. extern CGNSDLL const char * GoverningEquationsTypeName[NofValidGoverningEquationsTypes];
  370. extern CGNSDLL const char * ModelTypeName[NofValidModelTypes];
  371. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  372. * Boundary Condition Types *
  373. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  374. typedef enum {
  375. CGNS_ENUMV( BCTypeNull ) =CG_Null,
  376. CGNS_ENUMV( BCTypeUserDefined ) =CG_UserDefined,
  377. CGNS_ENUMV( BCAxisymmetricWedge ) =2,
  378. CGNS_ENUMV( BCDegenerateLine ) =3,
  379. CGNS_ENUMV( BCDegeneratePoint ) =4,
  380. CGNS_ENUMV( BCDirichlet ) =5,
  381. CGNS_ENUMV( BCExtrapolate ) =6,
  382. CGNS_ENUMV( BCFarfield ) =7,
  383. CGNS_ENUMV( BCGeneral ) =8,
  384. CGNS_ENUMV( BCInflow ) =9,
  385. CGNS_ENUMV( BCInflowSubsonic ) =10,
  386. CGNS_ENUMV( BCInflowSupersonic ) =11,
  387. CGNS_ENUMV( BCNeumann ) =12,
  388. CGNS_ENUMV( BCOutflow ) =13,
  389. CGNS_ENUMV( BCOutflowSubsonic ) =14,
  390. CGNS_ENUMV( BCOutflowSupersonic ) =15,
  391. CGNS_ENUMV( BCSymmetryPlane ) =16,
  392. CGNS_ENUMV( BCSymmetryPolar ) =17,
  393. CGNS_ENUMV( BCTunnelInflow ) =18,
  394. CGNS_ENUMV( BCTunnelOutflow ) =19,
  395. CGNS_ENUMV( BCWall ) =20,
  396. CGNS_ENUMV( BCWallInviscid ) =21,
  397. CGNS_ENUMV( BCWallViscous ) =22,
  398. CGNS_ENUMV( BCWallViscousHeatFlux ) =23,
  399. CGNS_ENUMV( BCWallViscousIsothermal ) =24,
  400. CGNS_ENUMV( FamilySpecified ) =25
  401. } CGNS_ENUMT( BCType_t );
  402. #define NofValidBCTypes 26
  403. extern CGNSDLL const char * BCTypeName[NofValidBCTypes];
  404. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  405. * Data types: Can not add data types and stay forward compatible *
  406. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  407. typedef enum {
  408. CGNS_ENUMV( DataTypeNull ) =CG_Null,
  409. CGNS_ENUMV( DataTypeUserDefined ) =CG_UserDefined,
  410. CGNS_ENUMV( Integer ) =2,
  411. CGNS_ENUMV( RealSingle ) =3,
  412. CGNS_ENUMV( RealDouble ) =4,
  413. CGNS_ENUMV( Character ) =5,
  414. CGNS_ENUMV( LongInteger ) =6,
  415. CGNS_ENUMV( ComplexSingle ) =7,
  416. CGNS_ENUMV( ComplexDouble ) =8
  417. } CGNS_ENUMT( DataType_t );
  418. #define NofValidDataTypes 9
  419. extern CGNSDLL const char * DataTypeName[NofValidDataTypes];
  420. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  421. * Element types *
  422. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  423. /* PLEASE ALSO UPDATE the cgnslib.h/el_size static table */
  424. typedef enum {
  425. CGNS_ENUMV( ElementTypeNull ) =CG_Null,
  426. CGNS_ENUMV( ElementTypeUserDefined ) =CG_UserDefined,
  427. CGNS_ENUMV( NODE ) =2,
  428. CGNS_ENUMV( BAR_2 ) =3,
  429. CGNS_ENUMV( BAR_3 ) =4,
  430. CGNS_ENUMV( TRI_3 ) =5,
  431. CGNS_ENUMV( TRI_6 ) =6,
  432. CGNS_ENUMV( QUAD_4 ) =7,
  433. CGNS_ENUMV( QUAD_8 ) =8,
  434. CGNS_ENUMV( QUAD_9 ) =9,
  435. CGNS_ENUMV( TETRA_4 ) =10,
  436. CGNS_ENUMV( TETRA_10 ) =11,
  437. CGNS_ENUMV( PYRA_5 ) =12,
  438. CGNS_ENUMV( PYRA_14 ) =13,
  439. CGNS_ENUMV( PENTA_6 ) =14,
  440. CGNS_ENUMV( PENTA_15 ) =15,
  441. CGNS_ENUMV( PENTA_18 ) =16,
  442. CGNS_ENUMV( HEXA_8 ) =17,
  443. CGNS_ENUMV( HEXA_20 ) =18,
  444. CGNS_ENUMV( HEXA_27 ) =19,
  445. CGNS_ENUMV( MIXED ) =20,
  446. CGNS_ENUMV( PYRA_13 ) =21,
  447. CGNS_ENUMV( NGON_n ) =22,
  448. CGNS_ENUMV( NFACE_n ) =23,
  449. CGNS_ENUMV( BAR_4 ) =24,
  450. CGNS_ENUMV( TRI_9 ) =25,
  451. CGNS_ENUMV( TRI_10 ) =26,
  452. CGNS_ENUMV( QUAD_12 ) =27,
  453. CGNS_ENUMV( QUAD_16 ) =28,
  454. CGNS_ENUMV( TETRA_16 ) =29,
  455. CGNS_ENUMV( TETRA_20 ) =30,
  456. CGNS_ENUMV( PYRA_21 ) =31,
  457. CGNS_ENUMV( PYRA_29 ) =32,
  458. CGNS_ENUMV( PYRA_30 ) =33,
  459. CGNS_ENUMV( PENTA_24 ) =34,
  460. CGNS_ENUMV( PENTA_38 ) =35,
  461. CGNS_ENUMV( PENTA_40 ) =36,
  462. CGNS_ENUMV( HEXA_32 ) =37,
  463. CGNS_ENUMV( HEXA_56 ) =38,
  464. CGNS_ENUMV( HEXA_64 ) =39,
  465. CGNS_ENUMV( BAR_5 )=40,
  466. CGNS_ENUMV( TRI_12 )=41,
  467. CGNS_ENUMV( TRI_15 )=42,
  468. CGNS_ENUMV( QUAD_P4_16 )=43,
  469. CGNS_ENUMV( QUAD_25 )=44,
  470. CGNS_ENUMV( TETRA_22 )=45,
  471. CGNS_ENUMV( TETRA_34 )=46,
  472. CGNS_ENUMV( TETRA_35 )=47,
  473. CGNS_ENUMV( PYRA_P4_29 )=48,
  474. CGNS_ENUMV( PYRA_50 )=49,
  475. CGNS_ENUMV( PYRA_55 )=50,
  476. CGNS_ENUMV( PENTA_33 )=51,
  477. CGNS_ENUMV( PENTA_66 )=52,
  478. CGNS_ENUMV( PENTA_75 )=53,
  479. CGNS_ENUMV( HEXA_44 )=54,
  480. CGNS_ENUMV( HEXA_98 )=55,
  481. CGNS_ENUMV( HEXA_125 )=56
  482. } CGNS_ENUMT( ElementType_t );
  483. #define NofValidElementTypes 57
  484. extern CGNSDLL const char * ElementTypeName[NofValidElementTypes];
  485. #ifdef CGNS_SCOPE_ENUMS
  486. #define CG_NPE_NODE 1
  487. #define CG_NPE_BAR_2 2
  488. #define CG_NPE_BAR_3 3
  489. #define CG_NPE_TRI_3 3
  490. #define CG_NPE_TRI_6 6
  491. #define CG_NPE_QUAD_4 4
  492. #define CG_NPE_QUAD_8 8
  493. #define CG_NPE_QUAD_9 9
  494. #define CG_NPE_TETRA_4 4
  495. #define CG_NPE_TETRA_10 10
  496. #define CG_NPE_PYRA_5 5
  497. #define CG_NPE_PYRA_13 13
  498. #define CG_NPE_PYRA_14 14
  499. #define CG_NPE_PENTA_6 6
  500. #define CG_NPE_PENTA_15 15
  501. #define CG_NPE_PENTA_18 18
  502. #define CG_NPE_HEXA_8 8
  503. #define CG_NPE_HEXA_20 20
  504. #define CG_NPE_HEXA_27 27
  505. #define CG_NPE_MIXED 0
  506. #define CG_NPE_NGON_n 0
  507. #define CG_NPE_NFACE_n 0
  508. #define CG_NPE_BAR_4 4
  509. #define CG_NPE_TRI_9 9
  510. #define CG_NPE_TRI_10 10
  511. #define CG_NPE_QUAD_12 12
  512. #define CG_NPE_QUAD_16 16
  513. #define CG_NPE_TETRA_16 16
  514. #define CG_NPE_TETRA_20 20
  515. #define CG_NPE_PYRA_21 21
  516. #define CG_NPE_PYRA_29 29
  517. #define CG_NPE_PYRA_30 30
  518. #define CG_NPE_PENTA_24 24
  519. #define CG_NPE_PENTA_38 38
  520. #define CG_NPE_PENTA_40 40
  521. #define CG_NPE_HEXA_32 32
  522. #define CG_NPE_HEXA_56 56
  523. #define CG_NPE_HEXA_64 64
  524. #define CG_NPE_BAR_5 5
  525. #define CG_NPE_TRI_12 12
  526. #define CG_NPE_TRI_15 15
  527. #define CG_NPE_QUAD_P4_16 16
  528. #define CG_NPE_QUAD_25 25
  529. #define CG_NPE_TETRA_22 22
  530. #define CG_NPE_TETRA_34 34
  531. #define CG_NPE_TETRA_35 35
  532. #define CG_NPE_PYRA_P4_29 29
  533. #define CG_NPE_PYRA_50 50
  534. #define CG_NPE_PYRA_55 55
  535. #define CG_NPE_PENTA_33 33
  536. #define CG_NPE_PENTA_66 66
  537. #define CG_NPE_PENTA_75 75
  538. #define CG_NPE_HEXA_44 44
  539. #define CG_NPE_HEXA_98 98
  540. #define CG_NPE_HEXA_125 125
  541. #else
  542. #define NPE_NODE 1
  543. #define NPE_BAR_2 2
  544. #define NPE_BAR_3 3
  545. #define NPE_TRI_3 3
  546. #define NPE_TRI_6 6
  547. #define NPE_QUAD_4 4
  548. #define NPE_QUAD_8 8
  549. #define NPE_QUAD_9 9
  550. #define NPE_TETRA_4 4
  551. #define NPE_TETRA_10 10
  552. #define NPE_PYRA_5 5
  553. #define NPE_PYRA_13 13
  554. #define NPE_PYRA_14 14
  555. #define NPE_PENTA_6 6
  556. #define NPE_PENTA_15 15
  557. #define NPE_PENTA_18 18
  558. #define NPE_HEXA_8 8
  559. #define NPE_HEXA_20 20
  560. #define NPE_HEXA_27 27
  561. #define NPE_MIXED 0
  562. #define NPE_NGON_n 0
  563. #define NPE_NFACE_n 0
  564. #define NPE_BAR_4 4
  565. #define NPE_TRI_9 9
  566. #define NPE_TRI_10 10
  567. #define NPE_QUAD_12 12
  568. #define NPE_QUAD_16 16
  569. #define NPE_TETRA_16 16
  570. #define NPE_TETRA_20 20
  571. #define NPE_PYRA_21 21
  572. #define NPE_PYRA_29 29
  573. #define NPE_PYRA_30 30
  574. #define NPE_PENTA_24 24
  575. #define NPE_PENTA_38 38
  576. #define NPE_PENTA_40 40
  577. #define NPE_HEXA_32 32
  578. #define NPE_HEXA_56 56
  579. #define NPE_HEXA_64 64
  580. #define NPE_BAR_5 5
  581. #define NPE_TRI_12 12
  582. #define NPE_TRI_15 15
  583. #define NPE_QUAD_P4_16 16
  584. #define NPE_QUAD_25 25
  585. #define NPE_TETRA_22 22
  586. #define NPE_TETRA_34 34
  587. #define NPE_TETRA_35 35
  588. #define NPE_PYRA_P4_29 29
  589. #define NPE_PYRA_50 50
  590. #define NPE_PYRA_55 55
  591. #define NPE_PENTA_33 33
  592. #define NPE_PENTA_66 66
  593. #define NPE_PENTA_75 75
  594. #define NPE_HEXA_44 44
  595. #define NPE_HEXA_98 98
  596. #define NPE_HEXA_125 125
  597. #endif
  598. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  599. * Zone types *
  600. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  601. typedef enum {
  602. CGNS_ENUMV( ZoneTypeNull ) =CG_Null,
  603. CGNS_ENUMV( ZoneTypeUserDefined ) =CG_UserDefined,
  604. CGNS_ENUMV( Structured ) =2,
  605. CGNS_ENUMV( Unstructured ) =3
  606. } CGNS_ENUMT( ZoneType_t );
  607. #define NofValidZoneTypes 4
  608. extern CGNSDLL const char * ZoneTypeName[NofValidZoneTypes];
  609. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  610. * Rigid Grid Motion types *
  611. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  612. typedef enum {
  613. CGNS_ENUMV( RigidGridMotionTypeNull ) =CG_Null,
  614. CGNS_ENUMV( RigidGridMotionTypeUserDefined ) =CG_UserDefined,
  615. CGNS_ENUMV( ConstantRate ) =2,
  616. CGNS_ENUMV( VariableRate ) =3
  617. } CGNS_ENUMT( RigidGridMotionType_t );
  618. #define NofValidRigidGridMotionTypes 4
  619. extern CGNSDLL const char * RigidGridMotionTypeName[NofValidRigidGridMotionTypes];
  620. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  621. * Arbitrary Grid Motion types *
  622. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  623. typedef enum {
  624. CGNS_ENUMV( ArbitraryGridMotionTypeNull ) =CG_Null,
  625. CGNS_ENUMV( ArbitraryGridMotionTypeUserDefined ) =CG_UserDefined,
  626. CGNS_ENUMV( NonDeformingGrid ) =2,
  627. CGNS_ENUMV( DeformingGrid ) =3
  628. } CGNS_ENUMT( ArbitraryGridMotionType_t );
  629. #define NofValidArbitraryGridMotionTypes 4
  630. extern CGNSDLL const char * ArbitraryGridMotionTypeName[NofValidArbitraryGridMotionTypes];
  631. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  632. * Simulation types *
  633. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  634. typedef enum {
  635. CGNS_ENUMV( SimulationTypeNull ) =CG_Null,
  636. CGNS_ENUMV( SimulationTypeUserDefined ) =CG_UserDefined,
  637. CGNS_ENUMV( TimeAccurate ) =2,
  638. CGNS_ENUMV( NonTimeAccurate ) =3
  639. } CGNS_ENUMT( SimulationType_t );
  640. #define NofValidSimulationTypes 4
  641. extern CGNSDLL const char * SimulationTypeName[NofValidSimulationTypes];
  642. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  643. * BC Property types *
  644. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  645. typedef enum {
  646. CGNS_ENUMV( WallFunctionTypeNull ) =CG_Null,
  647. CGNS_ENUMV( WallFunctionTypeUserDefined ) =CG_UserDefined,
  648. CGNS_ENUMV( Generic ) =2
  649. } CGNS_ENUMT( WallFunctionType_t );
  650. typedef enum {
  651. CGNS_ENUMV( AreaTypeNull ) =CG_Null,
  652. CGNS_ENUMV( AreaTypeUserDefined ) =CG_UserDefined,
  653. CGNS_ENUMV( BleedArea ) =2,
  654. CGNS_ENUMV( CaptureArea ) =3
  655. } CGNS_ENUMT( AreaType_t );
  656. #define NofValidWallFunctionTypes 3
  657. #define NofValidAreaTypes 4
  658. extern CGNSDLL const char * WallFunctionTypeName[NofValidWallFunctionTypes];
  659. extern CGNSDLL const char * AreaTypeName[NofValidAreaTypes];
  660. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  661. * Grid Connectivity Property types *
  662. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  663. typedef enum {
  664. CGNS_ENUMV( AverageInterfaceTypeNull ) =CG_Null,
  665. CGNS_ENUMV( AverageInterfaceTypeUserDefined ) =CG_UserDefined,
  666. CGNS_ENUMV( AverageAll ) =2,
  667. CGNS_ENUMV( AverageCircumferential ) =3,
  668. CGNS_ENUMV( AverageRadial ) =4,
  669. CGNS_ENUMV( AverageI ) =5,
  670. CGNS_ENUMV( AverageJ ) =6,
  671. CGNS_ENUMV( AverageK ) =7
  672. } CGNS_ENUMT( AverageInterfaceType_t );
  673. #define NofValidAverageInterfaceTypes 8
  674. extern CGNSDLL const char * AverageInterfaceTypeName[NofValidAverageInterfaceTypes];
  675. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  676. * LIBRARY FUNCTIONS *
  677. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  678. CGNSDLL int cg_is_cgns(const char *filename, int *file_type);
  679. CGNSDLL int cg_open(const char * filename, int mode, int *fn);
  680. CGNSDLL int cg_version(int fn, float *FileVersion);
  681. CGNSDLL int cg_precision(int fn, int *precision);
  682. CGNSDLL int cg_close(int fn);
  683. CGNSDLL int cg_save_as(int fn, const char *filename, int file_type,
  684. int follow_links);
  685. CGNSDLL int cg_set_file_type(int file_type);
  686. CGNSDLL int cg_get_file_type(int fn, int *file_type);
  687. CGNSDLL int cg_root_id(int fn, double *rootid);
  688. CGNSDLL int cg_get_cgio(int fn, int *cgio_num);
  689. CGNSDLL int cg_configure(int what, void *value);
  690. CGNSDLL int cg_error_handler(void (*)(int, char *));
  691. CGNSDLL int cg_set_compress(int compress);
  692. CGNSDLL int cg_get_compress(int *compress);
  693. CGNSDLL int cg_set_path(const char *path);
  694. CGNSDLL int cg_add_path(const char *path);
  695. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  696. * typedef names *
  697. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  698. #undef type
  699. CGNSDLL const char *cg_get_name(int nnames, const char **names, int type);
  700. CGNSDLL const char *cg_MassUnitsName(CGNS_ENUMT( MassUnits_t ) type);
  701. CGNSDLL const char *cg_LengthUnitsName(CGNS_ENUMT( LengthUnits_t ) type);
  702. CGNSDLL const char *cg_TimeUnitsName(CGNS_ENUMT( TimeUnits_t ) type);
  703. CGNSDLL const char *cg_TemperatureUnitsName(CGNS_ENUMT( TemperatureUnits_t ) type);
  704. CGNSDLL const char *cg_AngleUnitsName(CGNS_ENUMT( AngleUnits_t ) type);
  705. CGNSDLL const char *cg_ElectricCurrentUnitsName(CGNS_ENUMT( ElectricCurrentUnits_t ) type);
  706. CGNSDLL const char *cg_SubstanceAmountUnitsName(CGNS_ENUMT( SubstanceAmountUnits_t ) type);
  707. CGNSDLL const char *cg_LuminousIntensityUnitsName(CGNS_ENUMT( LuminousIntensityUnits_t ) type);
  708. CGNSDLL const char *cg_DataClassName(CGNS_ENUMT( DataClass_t ) type);
  709. CGNSDLL const char *cg_GridLocationName(CGNS_ENUMT( GridLocation_t ) type);
  710. CGNSDLL const char *cg_BCDataTypeName(CGNS_ENUMT( BCDataType_t ) type);
  711. CGNSDLL const char *cg_GridConnectivityTypeName(CGNS_ENUMT( GridConnectivityType_t ) type);
  712. CGNSDLL const char *cg_PointSetTypeName(CGNS_ENUMT( PointSetType_t ) type);
  713. CGNSDLL const char *cg_GoverningEquationsTypeName(CGNS_ENUMT( GoverningEquationsType_t ) type);
  714. CGNSDLL const char *cg_ModelTypeName(CGNS_ENUMT( ModelType_t ) type);
  715. CGNSDLL const char *cg_BCTypeName(CGNS_ENUMT( BCType_t ) type);
  716. CGNSDLL const char *cg_DataTypeName(CGNS_ENUMT( DataType_t ) type);
  717. CGNSDLL const char *cg_ElementTypeName(CGNS_ENUMT( ElementType_t ) type);
  718. CGNSDLL const char *cg_ZoneTypeName(CGNS_ENUMT( ZoneType_t ) type);
  719. CGNSDLL const char *cg_RigidGridMotionTypeName(CGNS_ENUMT( RigidGridMotionType_t ) type);
  720. CGNSDLL const char *cg_ArbitraryGridMotionTypeName(CGNS_ENUMT( ArbitraryGridMotionType_t ) type);
  721. CGNSDLL const char *cg_SimulationTypeName(CGNS_ENUMT( SimulationType_t ) type);
  722. CGNSDLL const char *cg_WallFunctionTypeName(CGNS_ENUMT( WallFunctionType_t ) type);
  723. CGNSDLL const char *cg_AreaTypeName(CGNS_ENUMT( AreaType_t ) type);
  724. CGNSDLL const char *cg_AverageInterfaceTypeName(CGNS_ENUMT( AverageInterfaceType_t ) type);
  725. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  726. * Read and write CGNSBase_t Nodes *
  727. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  728. CGNSDLL int cg_nbases(int fn, int *nbases);
  729. CGNSDLL int cg_base_read(int file_number, int B, char *basename,
  730. int *cell_dim, int *phys_dim);
  731. CGNSDLL int cg_base_id(int fn, int B, double *base_id);
  732. CGNSDLL int cg_base_write(int file_number, const char * basename,
  733. int cell_dim, int phys_dim, int *B);
  734. CGNSDLL int cg_cell_dim(int fn, int B, int *cell_dim);
  735. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  736. * Read and write Zone_t Nodes *
  737. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  738. CGNSDLL int cg_nzones(int fn, int B, int *nzones);
  739. CGNSDLL int cg_zone_read(int fn, int B, int Z, char *zonename, cgsize_t *size);
  740. CGNSDLL int cg_zone_type(int file_number, int B, int Z,
  741. CGNS_ENUMT(ZoneType_t) *type);
  742. CGNSDLL int cg_zone_id(int fn, int B, int Z, double *zone_id);
  743. CGNSDLL int cg_zone_write(int fn, int B, const char * zonename,
  744. const cgsize_t * size, CGNS_ENUMT(ZoneType_t) type, int *Z);
  745. CGNSDLL int cg_index_dim(int fn, int B, int Z, int *index_dim);
  746. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  747. * Read and write Family_t Nodes *
  748. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  749. CGNSDLL int cg_nfamilies(int file_number, int B, int *nfamilies);
  750. CGNSDLL int cg_family_read(int file_number, int B, int F,
  751. char *family_name, int *nboco, int *ngeos);
  752. CGNSDLL int cg_family_write(int file_number, int B,
  753. const char * family_name, int *F);
  754. CGNSDLL int cg_nfamily_names(int file_number, int B, int F, int *nnames);
  755. CGNSDLL int cg_family_name_read(int file_number, int B, int F,
  756. int N, char *name, char *family);
  757. CGNSDLL int cg_family_name_write(int file_number, int B, int F,
  758. const char *name, const char *family);
  759. /* FamilyTree extension */ /* ** FAMILY TREE ** */
  760. CGNSDLL int cg_node_family_write( const char* family_name, int* F);
  761. CGNSDLL int cg_node_nfamilies( int* nfamilies );
  762. CGNSDLL int cg_node_family_read( int F, char* family_name, int* nFamBC, int *nGeo );
  763. CGNSDLL int cg_node_family_name_write( const char* node_name, const char* family_name );
  764. CGNSDLL int cg_node_nfamily_names( int* nnames );
  765. CGNSDLL int cg_node_family_name_read(int N, char* node_name, char* family_name );
  766. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  767. * Read and write FamilyName_t Nodes *
  768. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  769. CGNSDLL int cg_famname_read(char *family_name);
  770. CGNSDLL int cg_famname_write(const char * family_name);
  771. CGNSDLL int cg_nmultifam(int *nfams);
  772. CGNSDLL int cg_multifam_read(int N, char *name, char *family);
  773. CGNSDLL int cg_multifam_write(const char *name, const char *family);
  774. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  775. * Read and write FamilyBC_t Nodes *
  776. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  777. CGNSDLL int cg_fambc_read(int file_number, int B, int F, int BC,
  778. char *fambc_name, CGNS_ENUMT(BCType_t) *bocotype);
  779. CGNSDLL int cg_fambc_write(int file_number, int B, int F,
  780. const char * fambc_name, CGNS_ENUMT(BCType_t) bocotype, int *BC);
  781. /* FamilyTree extension */ /* ** FAMILY TREE ** */
  782. CGNSDLL int cg_node_fambc_read( int BC, char* fambc_name,
  783. CGNS_ENUMT(BCType_t) *bocotype);
  784. CGNSDLL int cg_node_fambc_write( const char* fambc_name,
  785. CGNS_ENUMT(BCType_t) bocotype, int *BC );
  786. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  787. * Read and write GeometryReference_t Nodes *
  788. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  789. CGNSDLL int cg_geo_read(int file_number, int B, int F, int G, char *geo_name,
  790. char **geo_file, char *CAD_name, int *npart);
  791. CGNSDLL int cg_geo_write(int file_number, int B, int F, const char * geo_name,
  792. const char * filename, const char * CADname, int *G);
  793. /* FamilyTree extension */ /* ** FAMILY TREE ** */
  794. CGNSDLL int cg_node_geo_read( int G, char *geo_name,
  795. char **geo_file, char *CAD_name, int *npart );
  796. CGNSDLL int cg_node_geo_write( const char *geo_name,
  797. const char *filename, const char *CADname, int *G);
  798. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  799. * Read and write GeometryEntity_t Nodes *
  800. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  801. CGNSDLL int cg_part_read(int file_number, int B, int F, int G, int P,
  802. char *part_name);
  803. CGNSDLL int cg_part_write(int file_number, int B, int F, int G,
  804. const char * part_name, int *P);
  805. /* FamilyTree extension */ /* ** FAMILY TREE ** */
  806. CGNSDLL int cg_node_part_read(int G, int P, char *part_name);
  807. CGNSDLL int cg_node_part_write(int G, const char * part_name, int *P);
  808. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  809. * Read and write GridCoordinates_t Nodes *
  810. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  811. CGNSDLL int cg_ngrids(int file_number, int B, int Z, int *ngrids);
  812. CGNSDLL int cg_grid_read(int file_number, int B, int Z, int G, char *gridname);
  813. CGNSDLL int cg_grid_write(int file_number, int B, int Z,
  814. const char * zcoorname, int *G);
  815. CGNSDLL int cg_grid_bounding_box_read(int file_number, int B, int Z, int G,
  816. CGNS_ENUMT(DataType_t) type, void* boundingbox);
  817. CGNSDLL int cg_grid_bounding_box_write(int file_number, int B, int Z, int G,
  818. CGNS_ENUMT(DataType_t) type, void* boundingbox);
  819. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  820. * Read and write GridCoordinates_t/DataArray_t Nodes *
  821. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  822. CGNSDLL int cg_ncoords(int fn, int B, int Z, int *ncoords);
  823. CGNSDLL int cg_coord_info(int fn, int B, int Z, int C,
  824. CGNS_ENUMT(DataType_t) *type, char *coordname);
  825. CGNSDLL int cg_coord_read(int fn, int B, int Z, const char * coordname,
  826. CGNS_ENUMT(DataType_t) type, const cgsize_t * rmin,
  827. const cgsize_t * rmax, void *coord);
  828. CGNSDLL int cg_coord_general_read(int fn, int B, int Z,
  829. const char * coordname, const cgsize_t *s_rmin, const cgsize_t *s_rmax,
  830. CGNS_ENUMT(DataType_t) m_type, int m_numdim, const cgsize_t *m_dimvals,
  831. const cgsize_t *m_rmin, const cgsize_t *m_rmax, void *coord_ptr);
  832. CGNSDLL int cg_coord_id(int fn, int B, int Z, int C, double *coord_id);
  833. CGNSDLL int cg_coord_write(int fn, int B, int Z,
  834. CGNS_ENUMT(DataType_t) type, const char * coordname,
  835. const void * coord_ptr, int *C);
  836. CGNSDLL int cg_coord_partial_write(int fn, int B, int Z,
  837. CGNS_ENUMT(DataType_t) type, const char * coordname,
  838. const cgsize_t *rmin, const cgsize_t *rmax,
  839. const void * coord_ptr, int *C);
  840. CGNSDLL int cg_coord_general_write(int fn, int B, int Z,
  841. const char *coordname, CGNS_ENUMT(DataType_t) s_type,
  842. const cgsize_t *rmin, const cgsize_t *rmax,
  843. CGNS_ENUMT(DataType_t) m_type, int m_numdim, const cgsize_t *m_dims,
  844. const cgsize_t *m_rmin, const cgsize_t *m_rmax,
  845. const void *coord_ptr, int *C);
  846. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  847. * Read and write Elements_t Nodes *
  848. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  849. CGNSDLL int cg_nsections(int file_number, int B, int Z, int *nsections);
  850. CGNSDLL int cg_section_read(int file_number, int B, int Z, int S,
  851. char *SectionName, CGNS_ENUMT(ElementType_t) *type,
  852. cgsize_t *start, cgsize_t *end, int *nbndry, int *parent_flag);
  853. CGNSDLL int cg_elements_read(int file_number, int B, int Z, int S,
  854. cgsize_t *elements, cgsize_t *parent_data);
  855. CGNSDLL int cg_poly_elements_read(int file_number, int B, int Z, int S,
  856. cgsize_t *elements, cgsize_t *connect_offset, cgsize_t *parent_data);
  857. CGNSDLL int cg_section_write(int file_number, int B, int Z,
  858. const char * SectionName, CGNS_ENUMT(ElementType_t) type,
  859. cgsize_t start, cgsize_t end, int nbndry, const cgsize_t * elements,
  860. int *S);
  861. CGNSDLL int cg_poly_section_write(int file_number, int B, int Z,
  862. const char * SectionName, CGNS_ENUMT(ElementType_t) type,
  863. cgsize_t start, cgsize_t end, int nbndry, const cgsize_t * elements,
  864. const cgsize_t * connect_offset, int *S);
  865. CGNSDLL int cg_section_general_write(int file_number, int B, int Z,
  866. const char * SectionName, const CGNS_ENUMT(ElementType_t) type,
  867. const CGNS_ENUMT(DataType_t) elementDataType, cgsize_t start,
  868. cgsize_t end, cgsize_t elementDataSize, int nbndry, int *S);
  869. CGNSDLL int cg_section_initialize(int file_number, int B, int Z, int S);
  870. CGNSDLL int cg_parent_data_write(int file_number, int B, int Z, int S,
  871. const cgsize_t * parent_data);
  872. CGNSDLL int cg_npe( CGNS_ENUMT(ElementType_t) type, int *npe);
  873. CGNSDLL int cg_ElementDataSize(int file_number, int B, int Z, int S,
  874. cgsize_t *ElementDataSize);
  875. CGNSDLL int cg_section_partial_write(int file_number, int B, int Z,
  876. const char * SectionName, CGNS_ENUMT(ElementType_t) type,
  877. cgsize_t start, cgsize_t end, int nbndry, int *S);
  878. CGNSDLL int cg_elements_partial_write(int fn, int B, int Z, int S,
  879. cgsize_t start, cgsize_t end, const cgsize_t *elements);
  880. CGNSDLL int cg_elements_general_write(int fn, int B, int Z, int S,
  881. cgsize_t start, cgsize_t end, CGNS_ENUMT(DataType_t) m_type,
  882. const void *elements);
  883. CGNSDLL int cg_poly_elements_partial_write(int fn, int B, int Z, int S,
  884. cgsize_t start, cgsize_t end, const cgsize_t *elements, const cgsize_t *connect_offset);
  885. CGNSDLL int cg_poly_elements_general_write(int fn, int B, int Z, int S,
  886. cgsize_t start, cgsize_t end, CGNS_ENUMT(DataType_t) m_type,
  887. const void *elements, const void *connect_offset);
  888. CGNSDLL int cg_parent_data_partial_write(int fn, int B, int Z, int S,
  889. cgsize_t start, cgsize_t end, const cgsize_t *ParentData);
  890. CGNSDLL int cg_elements_partial_read(int file_number, int B, int Z, int S,
  891. cgsize_t start, cgsize_t end, cgsize_t *elements, cgsize_t *parent_data);
  892. CGNSDLL int cg_poly_elements_partial_read(int file_number, int B, int Z, int S,
  893. cgsize_t start, cgsize_t end, cgsize_t *elements, cgsize_t *connect_offset, cgsize_t *parent_data);
  894. /* For reading with a datatype different from cgsize_t. Use at your own risk */
  895. CGNSDLL int cg_elements_general_read(int file_number, int B, int Z, int S,
  896. cgsize_t start, cgsize_t end, CGNS_ENUMT(DataType_t) m_type, void* elements);
  897. CGNSDLL int cg_poly_elements_general_read(int file_number, int B, int Z, int S,
  898. cgsize_t start, cgsize_t end, CGNS_ENUMT(DataType_t) m_type, void* elements, void* connect_offset);
  899. CGNSDLL int cg_parent_elements_general_read(int file_number, int B, int Z, int S,
  900. cgsize_t start, cgsize_t end, CGNS_ENUMT(DataType_t) m_type, void* parelem);
  901. CGNSDLL int cg_parent_elements_position_general_read(int file_number, int B, int Z, int S,
  902. cgsize_t start, cgsize_t end, CGNS_ENUMT(DataType_t) m_type, void* parface);
  903. CGNSDLL int cg_ElementPartialSize(int file_number, int B, int Z, int S,
  904. cgsize_t start, cgsize_t end, cgsize_t *ElementDataSize);
  905. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  906. * Read and write FlowSolution_t Nodes *
  907. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  908. CGNSDLL int cg_nsols(int fn, int B, int Z, int *nsols);
  909. CGNSDLL int cg_sol_info(int fn, int B, int Z, int S, char *solname,
  910. CGNS_ENUMT(GridLocation_t) *location);
  911. CGNSDLL int cg_sol_id(int fn, int B, int Z,int S, double *sol_id);
  912. CGNSDLL int cg_sol_write(int fn, int B, int Z, const char * solname,
  913. CGNS_ENUMT(GridLocation_t) location, int *S);
  914. CGNSDLL int cg_sol_size(int fn, int B, int Z, int S,
  915. int *data_dim, cgsize_t *dim_vals);
  916. CGNSDLL int cg_sol_ptset_info(int fn, int B, int Z, int S,
  917. CGNS_ENUMT(PointSetType_t) *ptset_type, cgsize_t *npnts);
  918. CGNSDLL int cg_sol_ptset_read(int fn, int B, int Z, int S, cgsize_t *pnts);
  919. CGNSDLL int cg_sol_ptset_write(int fn, int B, int Z, const char *solname,
  920. CGNS_ENUMT(GridLocation_t) location,
  921. CGNS_ENUMT(PointSetType_t) ptset_type, cgsize_t npnts,
  922. const cgsize_t *pnts, int *S);
  923. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  924. * Read and write solution DataArray_t Nodes *
  925. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  926. CGNSDLL int cg_nfields(int fn, int B, int Z, int S, int *nfields);
  927. CGNSDLL int cg_field_info(int fn,int B,int Z,int S, int F,
  928. CGNS_ENUMT(DataType_t) *type, char *fieldname);
  929. CGNSDLL int cg_field_read(int fn, int B, int Z, int S, const char *fieldname,
  930. CGNS_ENUMT(DataType_t) type, const cgsize_t *rmin,
  931. const cgsize_t *rmax, void *field_ptr);
  932. CGNSDLL int cg_field_general_read(int fn, int B, int Z, int S,
  933. const char *fieldname, const cgsize_t *s_rmin, const cgsize_t *s_rmax,
  934. CGNS_ENUMT(DataType_t) m_type, int m_numdim, const cgsize_t *m_dimvals,
  935. const cgsize_t *m_rmin, const cgsize_t *m_rmax, void *field_ptr);
  936. CGNSDLL int cg_field_id(int fn, int B, int Z,int S, int F, double *field_id);
  937. CGNSDLL int cg_field_write(int fn,int B,int Z,int S,
  938. CGNS_ENUMT(DataType_t) type, const char * fieldname,
  939. const void * field_ptr, int *F);
  940. CGNSDLL int cg_field_partial_write(int fn, int B, int Z, int S,
  941. CGNS_ENUMT(DataType_t) type, const char * fieldname,
  942. const cgsize_t *rmin, const cgsize_t *rmax,
  943. const void * field_ptr, int *F);
  944. CGNSDLL int cg_field_general_write(int fn, int B, int Z, int S,
  945. const char * fieldname, CGNS_ENUMT(DataType_t) s_type,
  946. const cgsize_t *rmin, const cgsize_t *rmax,
  947. CGNS_ENUMT(DataType_t) m_type, int m_numdim, const cgsize_t *m_dims,
  948. const cgsize_t *m_rmin, const cgsize_t *m_rmax,
  949. const void *field_ptr, int *F);
  950. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  951. * Read and write ZoneSubRegion_t Nodes *
  952. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  953. CGNSDLL int cg_nsubregs(int fn, int B, int Z, int *nsubreg);
  954. CGNSDLL int cg_subreg_info(int fn, int B, int Z, int S, char *regname,
  955. int *dimension, CGNS_ENUMT(GridLocation_t) *location,
  956. CGNS_ENUMT(PointSetType_t) *ptset_type, cgsize_t *npnts,
  957. int *bcname_len, int *gcname_len);
  958. CGNSDLL int cg_subreg_ptset_read(int fn, int B, int Z, int S, cgsize_t *pnts);
  959. CGNSDLL int cg_subreg_bcname_read(int fn, int B, int Z, int S, char *bcname);
  960. CGNSDLL int cg_subreg_gcname_read(int fn, int B, int Z, int S, char *gcname);
  961. CGNSDLL int cg_subreg_ptset_write(int fn, int B, int Z, const char *regname,
  962. int dimension, CGNS_ENUMT(GridLocation_t) location,
  963. CGNS_ENUMT(PointSetType_t) ptset_type, cgsize_t npnts,
  964. const cgsize_t *pnts, int *S);
  965. CGNSDLL int cg_subreg_bcname_write(int fn, int B, int Z, const char *regname,
  966. int dimension, const char *bcname, int *S);
  967. CGNSDLL int cg_subreg_gcname_write(int fn, int B, int Z, const char *regname,
  968. int dimension, const char *gcname, int *S);
  969. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  970. * Read and write ZoneGridConnectivity_t Nodes *
  971. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  972. CGNSDLL int cg_nzconns(int fn, int B, int Z, int *nzconns);
  973. CGNSDLL int cg_zconn_read(int fn, int B, int Z, int C, char *name);
  974. CGNSDLL int cg_zconn_write(int fn, int B, int Z, const char *name, int *C);
  975. CGNSDLL int cg_zconn_get(int fn, int B, int Z, int *C);
  976. CGNSDLL int cg_zconn_set(int fn, int B, int Z, int C);
  977. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  978. * Read and write OversetHoles_t Nodes *
  979. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  980. CGNSDLL int cg_nholes(int fn, int B, int Z, int *nholes);
  981. CGNSDLL int cg_hole_info(int fn, int B, int Z, int Ii, char *holename,
  982. CGNS_ENUMT(GridLocation_t) *location, CGNS_ENUMT(PointSetType_t) *ptset_type,
  983. int *nptsets, cgsize_t *npnts);
  984. CGNSDLL int cg_hole_read(int fn, int B, int Z, int Ii, cgsize_t *pnts);
  985. CGNSDLL int cg_hole_id(int fn, int B, int Z, int Ii, double *hole_id);
  986. CGNSDLL int cg_hole_write(int fn, int B, int Z, const char * holename,
  987. CGNS_ENUMT(GridLocation_t) location, CGNS_ENUMT(PointSetType_t) ptset_type,
  988. int nptsets, cgsize_t npnts, const cgsize_t * pnts, int *Ii);
  989. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  990. * Read and write GridConnectivity_t Nodes *
  991. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  992. CGNSDLL int cg_nconns(int fn, int B, int Z, int *nconns);
  993. CGNSDLL int cg_conn_info(int file_number, int B, int Z, int Ii,
  994. char *connectname, CGNS_ENUMT(GridLocation_t) *location,
  995. CGNS_ENUMT(GridConnectivityType_t) *type,
  996. CGNS_ENUMT(PointSetType_t) *ptset_type,
  997. cgsize_t *npnts, char *donorname,
  998. CGNS_ENUMT(ZoneType_t) *donor_zonetype,
  999. CGNS_ENUMT(PointSetType_t) *donor_ptset_type,
  1000. CGNS_ENUMT(DataType_t) *donor_datatype,
  1001. cgsize_t *ndata_donor);
  1002. CGNSDLL int cg_conn_read(int file_number, int B, int Z, int Ii, cgsize_t *pnts,
  1003. CGNS_ENUMT(DataType_t) donor_datatype,
  1004. cgsize_t *donor_data);
  1005. CGNSDLL int cg_conn_id(int fn, int B, int Z, int Ii, double *conn_id);
  1006. CGNSDLL int cg_conn_write(int file_number, int B, int Z,
  1007. const char * connectname, CGNS_ENUMT(GridLocation_t) location,
  1008. CGNS_ENUMT(GridConnectivityType_t) type,
  1009. CGNS_ENUMT(PointSetType_t) ptset_type,
  1010. cgsize_t npnts, const cgsize_t * pnts, const char * donorname,
  1011. CGNS_ENUMT(ZoneType_t) donor_zonetype,
  1012. CGNS_ENUMT(PointSetType_t) donor_ptset_type,
  1013. CGNS_ENUMT(DataType_t) donor_datatype,
  1014. cgsize_t ndata_donor, const cgsize_t *donor_data, int *Ii);
  1015. CGNSDLL int cg_conn_write_short(int file_number, int B, int Z,
  1016. const char * connectname, CGNS_ENUMT(GridLocation_t) location,
  1017. CGNS_ENUMT(GridConnectivityType_t) type,
  1018. CGNS_ENUMT(PointSetType_t) ptset_type,
  1019. cgsize_t npnts, const cgsize_t * pnts, const char * donorname, int *Ii);
  1020. CGNSDLL int cg_conn_read_short(int file_number, int B, int Z, int Ii,
  1021. cgsize_t *pnts);
  1022. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1023. * Read and write GridConnectivity1to1_t Nodes in a zone *
  1024. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1025. CGNSDLL int cg_n1to1(int fn, int B, int Z, int *n1to1);
  1026. CGNSDLL int cg_1to1_read(int fn, int B, int Z, int Ii, char *connectname,
  1027. char *donorname, cgsize_t *range, cgsize_t *donor_range, int *transform);
  1028. CGNSDLL int cg_1to1_id(int fn, int B, int Z, int Ii, double *one21_id);
  1029. CGNSDLL int cg_1to1_write(int fn, int B, int Z, const char * connectname,
  1030. const char * donorname, const cgsize_t * range,
  1031. const cgsize_t * donor_range, const int * transform, int *Ii);
  1032. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1033. * Read all GridConnectivity1to1_t Nodes of a base *
  1034. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1035. CGNSDLL int cg_n1to1_global(int fn, int B, int *n1to1_global);
  1036. CGNSDLL int cg_1to1_read_global(int fn, int B, char **connectname,
  1037. char **zonename, char **donorname, cgsize_t **range,
  1038. cgsize_t **donor_range, int **transform);
  1039. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1040. * Read and write BC_t Nodes *
  1041. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1042. CGNSDLL int cg_nbocos(int fn, int B, int Z, int *nbocos);
  1043. CGNSDLL int cg_boco_info(int fn, int B, int Z, int BC, char *boconame,
  1044. CGNS_ENUMT(BCType_t) *bocotype, CGNS_ENUMT(PointSetType_t) *ptset_type,
  1045. cgsize_t *npnts, int *NormalIndex, cgsize_t *NormalListSize,
  1046. CGNS_ENUMT(DataType_t) *NormalDataType, int *ndataset);
  1047. CGNSDLL int cg_boco_read(int fn, int B, int Z, int BC, cgsize_t *pnts,
  1048. void *NormalList);
  1049. CGNSDLL int cg_boco_id(int fn, int B, int Z, int BC, double *boco_id);
  1050. CGNSDLL int cg_boco_write(int file_number, int B, int Z, const char * boconame,
  1051. CGNS_ENUMT(BCType_t) bocotype, CGNS_ENUMT(PointSetType_t) ptset_type,
  1052. cgsize_t npnts, const cgsize_t * pnts, int *BC);
  1053. CGNSDLL int cg_boco_normal_write(int file_number, int B, int Z, int BC,
  1054. const int * NormalIndex, int NormalListFlag,
  1055. CGNS_ENUMT(DataType_t) NormalDataType, const void * NormalList);
  1056. CGNSDLL int cg_boco_gridlocation_read(int file_number, int B, int Z,
  1057. int BC, CGNS_ENUMT(GridLocation_t) *location);
  1058. CGNSDLL int cg_boco_gridlocation_write(int file_number, int B, int Z,
  1059. int BC, CGNS_ENUMT(GridLocation_t) location);
  1060. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1061. * Read and write BCDataSet_t Nodes *
  1062. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1063. CGNSDLL int cg_dataset_read(int fn, int B, int Z, int BC, int DS, char *name,
  1064. CGNS_ENUMT(BCType_t) *BCType, int *DirichletFlag, int *NeumannFlag);
  1065. CGNSDLL int cg_dataset_write(int file_number, int B, int Z, int BC,
  1066. const char * name, CGNS_ENUMT(BCType_t) BCType, int *Dset);
  1067. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1068. * Read and write FamilyBCDataSet_t Nodes *
  1069. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1070. CGNSDLL int cg_bcdataset_write(const char *name, CGNS_ENUMT(BCType_t) BCType,
  1071. CGNS_ENUMT(BCDataType_t) BCDataType);
  1072. CGNSDLL int cg_bcdataset_info(int *n_dataset);
  1073. CGNSDLL int cg_bcdataset_read(int index, char *name,
  1074. CGNS_ENUMT(BCType_t) *BCType, int *DirichletFlag, int *NeumannFlag);
  1075. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1076. * Read and write BCData_t Nodes *
  1077. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1078. CGNSDLL int cg_bcdata_write(int file_number, int B, int Z, int BC, int Dset,
  1079. CGNS_ENUMT(BCDataType_t) BCDataType);
  1080. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1081. * Read and write DiscreteData_t Nodes *
  1082. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1083. CGNSDLL int cg_ndiscrete(int file_number, int B, int Z, int *ndiscrete);
  1084. CGNSDLL int cg_discrete_read(int file_number, int B, int Z, int D,
  1085. char *discrete_name);
  1086. CGNSDLL int cg_discrete_write(int file_number, int B, int Z,
  1087. const char * discrete_name, int *D);
  1088. CGNSDLL int cg_discrete_size(int fn, int B, int Z, int D,
  1089. int *data_dim, cgsize_t *dim_vals);
  1090. CGNSDLL int cg_discrete_ptset_info(int fn, int B, int Z, int D,
  1091. CGNS_ENUMT(PointSetType_t) *ptset_type, cgsize_t *npnts);
  1092. CGNSDLL int cg_discrete_ptset_read(int fn, int B, int Z, int D,
  1093. cgsize_t *pnts);
  1094. CGNSDLL int cg_discrete_ptset_write(int fn, int B, int Z,
  1095. const char *discrete_name, CGNS_ENUMT(GridLocation_t) location,
  1096. CGNS_ENUMT(PointSetType_t) ptset_type, cgsize_t npnts,
  1097. const cgsize_t *pnts, int *D);
  1098. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1099. * Read and write RigidGridMotion_t Nodes *
  1100. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1101. CGNSDLL int cg_n_rigid_motions(int file_number, int B, int Z,
  1102. int *n_rigid_motions);
  1103. CGNSDLL int cg_rigid_motion_read(int file_number, int B, int Z, int R,
  1104. char *name, CGNS_ENUMT(RigidGridMotionType_t) *type);
  1105. CGNSDLL int cg_rigid_motion_write(int file_number, int B, int Z,
  1106. const char * name, CGNS_ENUMT(RigidGridMotionType_t) type, int *R);
  1107. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1108. * Read and write ArbitraryGridMotion_t Nodes *
  1109. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1110. CGNSDLL int cg_n_arbitrary_motions(int file_number, int B, int Z,
  1111. int *n_arbitrary_motions);
  1112. CGNSDLL int cg_arbitrary_motion_read(int file_number, int B, int Z, int A,
  1113. char *name, CGNS_ENUMT(ArbitraryGridMotionType_t) *type);
  1114. CGNSDLL int cg_arbitrary_motion_write(int file_number, int B, int Z,
  1115. const char * amotionname, CGNS_ENUMT(ArbitraryGridMotionType_t) type,
  1116. int *A);
  1117. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1118. * Read and write SimulationType_t Node *
  1119. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1120. CGNSDLL int cg_simulation_type_read(int file_number, int B,
  1121. CGNS_ENUMT(SimulationType_t) *type);
  1122. CGNSDLL int cg_simulation_type_write(int file_number, int B,
  1123. CGNS_ENUMT(SimulationType_t) type);
  1124. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1125. * Read and write BaseIterativeData_t Node *
  1126. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1127. CGNSDLL int cg_biter_read(int file_number, int B, char *bitername, int *nsteps);
  1128. CGNSDLL int cg_biter_write(int file_number, int B, const char * bitername, int nsteps);
  1129. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1130. * Read and write ZoneIterativeData_t Node *
  1131. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1132. CGNSDLL int cg_ziter_read(int file_number, int B, int Z, char *zitername);
  1133. CGNSDLL int cg_ziter_write(int file_number, int B, int Z, const char * zitername);
  1134. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1135. * Read and write Gravity_t Nodes *
  1136. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1137. CGNSDLL int cg_gravity_read(int file_number, int B, float *gravity_vector);
  1138. CGNSDLL int cg_gravity_write(int file_number, int B, float const *gravity_vector);
  1139. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1140. * Read and write Axisymmetry_t Nodes *
  1141. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1142. CGNSDLL int cg_axisym_read(int file_number, int B, float *ref_point,
  1143. float *axis);
  1144. CGNSDLL int cg_axisym_write(int file_number, int B, float const *ref_point,
  1145. float const *axis);
  1146. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1147. * Read and write RotatingCoordinates_t Nodes *
  1148. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1149. CGNSDLL int cg_rotating_read(float *rot_rate, float *rot_center);
  1150. CGNSDLL int cg_rotating_write(float const *rot_rate, float const *rot_center);
  1151. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1152. * Read and write BCProperty_t/WallFunction_t Nodes *
  1153. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1154. CGNSDLL int cg_bc_wallfunction_read(int file_number, int B, int Z, int BC,
  1155. CGNS_ENUMT(WallFunctionType_t) *WallFunctionType);
  1156. CGNSDLL int cg_bc_wallfunction_write(int file_number, int B, int Z, int BC,
  1157. CGNS_ENUMT(WallFunctionType_t) WallFunctionType);
  1158. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1159. * Read and write BCProperty_t/Area_t Nodes *
  1160. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1161. CGNSDLL int cg_bc_area_read(int file_number, int B, int Z, int BC,
  1162. CGNS_ENUMT(AreaType_t) *AreaType, float *SurfaceArea, char *RegionName);
  1163. CGNSDLL int cg_bc_area_write(int file_number, int B, int Z, int BC,
  1164. CGNS_ENUMT(AreaType_t) AreaType, float SurfaceArea, const char *RegionName);
  1165. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1166. * Read and write GridConnectivityProperty_t/Periodic_t Nodes *
  1167. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1168. CGNSDLL int cg_conn_periodic_read(int file_number, int B, int Z, int Ii,
  1169. float *RotationCenter, float *RotationAngle, float *Translation);
  1170. CGNSDLL int cg_conn_periodic_write(int file_number, int B, int Z, int Ii,
  1171. float const *RotationCenter, float const *RotationAngle,
  1172. float const *Translation);
  1173. CGNSDLL int cg_1to1_periodic_write(int file_number, int B, int Z, int Ii,
  1174. float const *RotationCenter, float const *RotationAngle,
  1175. float const *Translation);
  1176. CGNSDLL int cg_1to1_periodic_read(int file_number, int B, int Z, int Ii,
  1177. float *RotationCenter, float *RotationAngle, float *Translation);
  1178. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1179. * Read and write GridConnectivityProperty_t/AverageInterface_t Nodes *
  1180. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1181. CGNSDLL int cg_conn_average_read(int file_number, int B, int Z, int Ii,
  1182. CGNS_ENUMT(AverageInterfaceType_t) *AverageInterfaceType);
  1183. CGNSDLL int cg_conn_average_write(int file_number, int B, int Z, int Ii,
  1184. CGNS_ENUMT(AverageInterfaceType_t) AverageInterfaceType);
  1185. CGNSDLL int cg_1to1_average_write(int file_number, int B, int Z, int Ii,
  1186. CGNS_ENUMT(AverageInterfaceType_t) AverageInterfaceType);
  1187. CGNSDLL int cg_1to1_average_read(int file_number, int B, int Z, int Ii,
  1188. CGNS_ENUMT(AverageInterfaceType_t) *AverageInterfaceType);
  1189. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1190. * Variable Argument List Functions *
  1191. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1192. CGNSDLL int cg_goto(int file_number, int B, ...);
  1193. CGNSDLL int cg_goto_f08(int file_number, int B, ...);
  1194. CGNSDLL int cg_gorel(int file_number, ...);
  1195. CGNSDLL int cg_gorel_f08(int file_number, ...);
  1196. CGNSDLL int cg_gopath(int file_number, const char *path);
  1197. CGNSDLL int cg_golist(int file_number, int B, int depth, char **label,
  1198. int *num);
  1199. CGNSDLL int cg_where(int *file_number, int *B, int *depth, char **label,
  1200. int *num);
  1201. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1202. * Read and write ConvergenceHistory_t Nodes *
  1203. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1204. CGNSDLL int cg_convergence_read(int *iterations, char **NormDefinitions);
  1205. CGNSDLL int cg_convergence_write(int iterations, const char * NormDefinitions);
  1206. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1207. * Read and write ReferenceState_t Nodes *
  1208. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1209. CGNSDLL int cg_state_read(char **StateDescription);
  1210. CGNSDLL int cg_state_write(const char * StateDescription);
  1211. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1212. * Read and write FlowEquationSet_t Nodes *
  1213. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1214. CGNSDLL int cg_equationset_read(int *EquationDimension,
  1215. int *GoverningEquationsFlag, int *GasModelFlag,
  1216. int *ViscosityModelFlag, int *ThermalConductivityModelFlag,
  1217. int *TurbulenceClosureFlag, int *TurbulenceModelFlag);
  1218. CGNSDLL int cg_equationset_chemistry_read(int *ThermalRelaxationFlag,
  1219. int *ChemicalKineticsFlag);
  1220. CGNSDLL int cg_equationset_elecmagn_read(int *ElecFldModelFlag,
  1221. int *MagnFldModelFlag, int *ConductivityModelFlag);
  1222. CGNSDLL int cg_equationset_write(int EquationDimension);
  1223. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1224. * Read and write GoverningEquations_t Nodes *
  1225. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1226. CGNSDLL int cg_governing_read(CGNS_ENUMT(GoverningEquationsType_t) *EquationsType);
  1227. CGNSDLL int cg_governing_write(CGNS_ENUMT(GoverningEquationsType_t) Equationstype);
  1228. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1229. * Read and write Diffusion Model Nodes *
  1230. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1231. CGNSDLL int cg_diffusion_read(int *diffusion_model);
  1232. CGNSDLL int cg_diffusion_write(const int * diffusion_model);
  1233. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1234. * Read and write GasModel_t, ViscosityModel_t, *
  1235. * ThermalConductivityModel_t, TurbulenceClosure_t, *
  1236. * TurbulenceModel_t, ThermalRelaxationModel_t, *
  1237. * ChemicalKineticsModel_t, EMElectricFieldModel_t, *
  1238. * EMMagneticFieldModel_t Nodes *
  1239. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1240. CGNSDLL int cg_model_read(const char *ModelLabel, CGNS_ENUMT(ModelType_t) *ModelType);
  1241. CGNSDLL int cg_model_write(const char * ModelLabel, CGNS_ENUMT(ModelType_t) ModelType);
  1242. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1243. * Read and write DataArray_t Nodes *
  1244. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1245. CGNSDLL int cg_narrays(int *narrays);
  1246. CGNSDLL int cg_array_info(int A, char *ArrayName,
  1247. CGNS_ENUMT(DataType_t) *DataType,
  1248. int *DataDimension, cgsize_t *DimensionVector);
  1249. CGNSDLL int cg_array_read(int A, void *Data);
  1250. CGNSDLL int cg_array_read_as(int A, CGNS_ENUMT(DataType_t) type, void *Data);
  1251. CGNSDLL int cg_array_general_read(int A,
  1252. const cgsize_t *s_rmin, const cgsize_t *s_rmax,
  1253. CGNS_ENUMT(DataType_t) m_type, int m_numdim, const cgsize_t *m_dimvals,
  1254. const cgsize_t *m_rmin, const cgsize_t *m_rmax, void *data);
  1255. CGNSDLL int cg_array_write(const char * ArrayName,
  1256. CGNS_ENUMT(DataType_t) DataType, int DataDimension,
  1257. const cgsize_t * DimensionVector, const void * Data);
  1258. CGNSDLL int cg_array_general_write(const char *arrayname,
  1259. CGNS_ENUMT(DataType_t) s_type, int s_numdim, const cgsize_t *s_dimvals,
  1260. const cgsize_t *s_rmin, const cgsize_t *s_rmax,
  1261. CGNS_ENUMT(DataType_t) m_type, int m_numdim, const cgsize_t *m_dimvals,
  1262. const cgsize_t *m_rmin, const cgsize_t *m_rmax, const void *data);
  1263. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1264. * Read and write UserDefinedData_t Nodes - new in version 2.1 *
  1265. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1266. CGNSDLL int cg_nuser_data(int *nuser_data);
  1267. CGNSDLL int cg_user_data_read(int Index, char *user_data_name);
  1268. CGNSDLL int cg_user_data_write(const char * user_data_name);
  1269. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1270. * Read and write IntegralData_t Nodes *
  1271. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1272. CGNSDLL int cg_nintegrals(int *nintegrals);
  1273. CGNSDLL int cg_integral_read(int IntegralDataIndex, char *IntegralDataName);
  1274. CGNSDLL int cg_integral_write(const char * IntegralDataName);
  1275. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1276. * Read and write Rind_t Nodes *
  1277. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1278. CGNSDLL int cg_rind_read(int *RindData);
  1279. CGNSDLL int cg_rind_write(const int * RindData);
  1280. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1281. * Read and write Descriptor_t Nodes *
  1282. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1283. CGNSDLL int cg_ndescriptors(int *ndescriptors);
  1284. CGNSDLL int cg_descriptor_read(int descr_no, char *descr_name, char **descr_text);
  1285. CGNSDLL int cg_descriptor_write(const char * descr_name, const char * descr_text);
  1286. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1287. * Read and write DimensionalUnits_t Nodes *
  1288. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1289. CGNSDLL int
  1290. cg_nunits(int *nunits);
  1291. CGNSDLL int
  1292. cg_units_read (CGNS_ENUMT(MassUnits_t) *mass,
  1293. CGNS_ENUMT(LengthUnits_t) *length,
  1294. CGNS_ENUMT(TimeUnits_t) *time,
  1295. CGNS_ENUMT(TemperatureUnits_t) *temperature,
  1296. CGNS_ENUMT(AngleUnits_t) *angle);
  1297. CGNSDLL int
  1298. cg_units_write (CGNS_ENUMT(MassUnits_t) mass,
  1299. CGNS_ENUMT(LengthUnits_t) length,
  1300. CGNS_ENUMT(TimeUnits_t) time,
  1301. CGNS_ENUMT(TemperatureUnits_t) temperature,
  1302. CGNS_ENUMT(AngleUnits_t) angle);
  1303. CGNSDLL int
  1304. cg_unitsfull_read (CGNS_ENUMT(MassUnits_t) *mass,
  1305. CGNS_ENUMT(LengthUnits_t) *length,
  1306. CGNS_ENUMT(TimeUnits_t) *time,
  1307. CGNS_ENUMT(TemperatureUnits_t) *temperature,
  1308. CGNS_ENUMT(AngleUnits_t) *angle,
  1309. CGNS_ENUMT(ElectricCurrentUnits_t) *current,
  1310. CGNS_ENUMT(SubstanceAmountUnits_t) *amount,
  1311. CGNS_ENUMT(LuminousIntensityUnits_t) *intensity);
  1312. CGNSDLL int
  1313. cg_unitsfull_write(CGNS_ENUMT(MassUnits_t) mass,
  1314. CGNS_ENUMT(LengthUnits_t) length,
  1315. CGNS_ENUMT(TimeUnits_t) time,
  1316. CGNS_ENUMT(TemperatureUnits_t) temperature,
  1317. CGNS_ENUMT(AngleUnits_t) angle,
  1318. CGNS_ENUMT(ElectricCurrentUnits_t) current,
  1319. CGNS_ENUMT(SubstanceAmountUnits_t) amount,
  1320. CGNS_ENUMT(LuminousIntensityUnits_t) intensity);
  1321. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1322. * Read and write DimensionalExponents_t Nodes *
  1323. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1324. CGNSDLL int cg_exponents_info(CGNS_ENUMT(DataType_t) *DataType);
  1325. CGNSDLL int cg_nexponents(int *numexp);
  1326. CGNSDLL int cg_exponents_read(void *exponents);
  1327. CGNSDLL int cg_exponents_write(CGNS_ENUMT(DataType_t) DataType, const void * exponents);
  1328. CGNSDLL int cg_expfull_read(void *exponents);
  1329. CGNSDLL int cg_expfull_write(CGNS_ENUMT(DataType_t) DataType, const void * exponents);
  1330. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1331. * Read and write DataConversion_t Nodes *
  1332. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1333. CGNSDLL int cg_conversion_info(CGNS_ENUMT(DataType_t) *DataType);
  1334. CGNSDLL int cg_conversion_read(void *ConversionFactors);
  1335. CGNSDLL int cg_conversion_write(CGNS_ENUMT(DataType_t) DataType, const void * ConversionFactors);
  1336. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1337. * Read and write DataClass_t Nodes *
  1338. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1339. CGNSDLL int cg_dataclass_read(CGNS_ENUMT(DataClass_t) *dataclass);
  1340. CGNSDLL int cg_dataclass_write(CGNS_ENUMT(DataClass_t) dataclass);
  1341. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1342. * Read and write GridLocation_t Nodes *
  1343. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1344. CGNSDLL int cg_gridlocation_read(CGNS_ENUMT(GridLocation_t) *GridLocation);
  1345. CGNSDLL int cg_gridlocation_write(CGNS_ENUMT(GridLocation_t) GridLocation);
  1346. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1347. * Read and write Ordinal_t Nodes *
  1348. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1349. CGNSDLL int cg_ordinal_read(int *Ordinal);
  1350. CGNSDLL int cg_ordinal_write(int Ordinal);
  1351. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1352. * Read and write IndexArray/Range_t Nodes - new in version 2.4 *
  1353. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1354. CGNSDLL int cg_ptset_info(CGNS_ENUMT(PointSetType_t) *ptset_type,
  1355. cgsize_t *npnts);
  1356. CGNSDLL int cg_ptset_write(CGNS_ENUMT(PointSetType_t) ptset_type,
  1357. cgsize_t npnts, const cgsize_t *pnts);
  1358. CGNSDLL int cg_ptset_read(cgsize_t *pnts);
  1359. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1360. * Link Handling Functions - new in version 2.1 *
  1361. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1362. CGNSDLL int cg_is_link(int *path_length);
  1363. CGNSDLL int cg_link_read(char **filename, char **link_path);
  1364. CGNSDLL int cg_link_write(const char * nodename, const char * filename,
  1365. const char * name_in_file);
  1366. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1367. * General Delete Function *
  1368. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1369. CGNSDLL int cg_delete_node(const char *node_name);
  1370. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1371. * Free library malloced memory *
  1372. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1373. CGNSDLL int cg_free(void *data);
  1374. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
  1375. * Error Handling Functions *
  1376. \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  1377. CGNSDLL const char *cg_get_error(void);
  1378. CGNSDLL void cg_error_exit(void);
  1379. CGNSDLL void cg_error_print(void);
  1380. #ifdef __cplusplus
  1381. }
  1382. #endif
  1383. #endif