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