1 /* 2 @#@#@ $Id: cgnsKeywords.h,v 1.3 2008/07/11 00:25:35 brucewedan Exp $ 3 @#@#@ CHECKSUM: 296864779 40788 4 @#@#@ (cat cgnsKeywords.h | grep -v '@#@#@' | cksum) 5 */ 6 7 /*------------------------------------------------------------------------- 8 This software is provided 'as-is', without any express or implied warranty. 9 In no event will the authors be held liable for any damages arising from 10 the use of this software. 11 12 Permission is granted to anyone to use this software for any purpose, 13 including commercial applications, and to alter it and redistribute it 14 freely, subject to the following restrictions: 15 16 1. The origin of this software must not be misrepresented; you must not 17 claim that you wrote the original software. If you use this software 18 in a product, an acknowledgment in the product documentation would be 19 appreciated but is not required. 20 21 2. Altered source versions must be plainly marked as such, and must not 22 be misrepresented as being the original software. 23 24 3. This notice may not be removed or altered from any source distribution. 25 -------------------------------------------------------------------------*/ 26 27 /* _____ __ __ _____ ____ _____ _______ _ _ _______ 28 * |_ _| \/ | __ \ / __ \| __ \__ __|/\ | \ | |__ __| 29 * | | | \ / | |__) | | | | |__) | | | / \ | \| | | | 30 * | | | |\/| | ___/| | | | _ / | | / /\ \ | . ` | | | 31 * _| |_| | | | | | |__| | | \ \ | |/ ____ \| |\ | | | 32 * |_____|_| |_|_| \____/|_| \_\ |_/_/ \_\_| \_| |_| 33 * 34 * ------------------- DEVELOPER'S NOTES --------------------------- 35 * 36 * (1) If a new keyword is introduced into this file then the same keyword 37 * needs to be added to cgns_f.F90 in order to maintain Fortran 38 * compatibility. 39 * 40 */ 41 42 #ifndef CGNSLIB_KEYWORDS_H 43 #define CGNSLIB_KEYWORDS_H 44 45 /* 46 THIS HEADER CAN BE READ BY ANY C LANGUAGE PRE-PROCESSOR 47 48 ENUMERATES DEFINITIONS ARE DECLARED, IN THE CASE YOU DO NOT WANT 49 THESE DEFINITIONS (e.g. you compile Fortran) THEN YOU HAVE TO UNSET 50 THE __CGNS_ENUMS__ 51 52 #undef __CGNS_ENUMS__ 53 54 BY DEFAULT YOU WANT TO DECLARE THESE ENUMERATES 55 56 #define __CGNS_ENUMS__ 57 58 */ 59 60 #define __CGNS_ENUMS__ 61 62 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 63 * VERSION NUMBER * 64 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 65 66 #define CGNS_VERSION 4100 67 #define CGNS_DOTVERS 4.10 68 #define CGNS_COMPATVERSION 2540 69 #define CGNS_COMPATDOTVERS 2.54 70 71 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 72 * modes for cgns file * 73 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 74 75 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 76 * modes for cgns file * 77 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 78 79 #define CG_MODE_READ 0 80 #define CG_MODE_WRITE 1 81 #define CG_MODE_MODIFY 2 82 #define CG_MODE_CLOSED 3 83 84 /* function return codes */ 85 86 #define CG_OK 0 87 #define CG_ERROR 1 88 #define CG_NODE_NOT_FOUND 2 89 #define CG_INCORRECT_PATH 3 90 #define CG_NO_INDEX_DIM 4 91 92 /* Null and UserDefined enums */ 93 94 #define CG_Null 0 95 #define CG_UserDefined 1 96 97 /* max goto depth */ 98 99 #define CG_MAX_GOTO_DEPTH 20 100 101 /* configuration options */ 102 103 #define CG_CONFIG_ERROR 1 104 #define CG_CONFIG_COMPRESS 2 105 #define CG_CONFIG_SET_PATH 3 106 #define CG_CONFIG_ADD_PATH 4 107 #define CG_CONFIG_FILE_TYPE 5 108 109 /* The Null and the UserDefined string constants are always the same, 110 whatever enumerate you consider. */ 111 #define CG_Null_s "Null" 112 #define CG_UserDefined_s "Userdefined" 113 114 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 115 * Dimensional Units * 116 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 117 118 /* Mass ---*/ 119 #ifdef __CGNS_ENUMS__ 120 typedef enum { 121 MassUnitsNull, MassUnitsUserDefined, 122 Kilogram, Gram, Slug, PoundMass 123 } MassUnits_t; 124 #endif 125 #define NofValidMassUnits 6 126 127 #define Kilogram_s "Kilogram" 128 #define Gram_s "Gram" 129 #define Slug_s "Slug" 130 #define PoundMass_s "PoundMass" 131 #define Meter_s "Meter" 132 133 /* Length ---*/ 134 #ifdef __CGNS_ENUMS__ 135 typedef enum { 136 LengthUnitsNull, LengthUnitsUserDefined, 137 Meter, Centimeter, Millimeter, Foot, Inch 138 } LengthUnits_t; 139 #endif 140 #define NofValidLengthUnits 7 141 142 #define Centimeter_s "Centimeter" 143 #define Millimeter_s "Millimeter" 144 #define Foot_s "Foot" 145 #define Inch_s "Inch" 146 147 /* Mass ---*/ 148 #ifdef __CGNS_ENUMS__ 149 typedef enum { 150 TimeUnitsNull, TimeUnitsUserDefined, Second 151 } TimeUnits_t; 152 #endif 153 #define NofValidTimeUnits 3 154 155 #define Second_s "Second" 156 157 /* Temperature ---*/ 158 #ifdef __CGNS_ENUMS__ 159 typedef enum { 160 TemperatureUnitsNull, TemperatureUnitsUserDefined, 161 Kelvin, Celsius, Rankine, Fahrenheit 162 } TemperatureUnits_t; 163 #endif 164 #define NofValidTemperatureUnits 6 165 166 #define Kelvin_s "Kelvin" 167 #define Celsius_s "Celsius" 168 #define Rankine_s "Rankine" 169 #define Fahrenheit_s "Fahrenheit" 170 171 /* Angle ---*/ 172 #ifdef __CGNS_ENUMS__ 173 typedef enum { 174 AngleUnitsNull, AngleUnitsUserDefined, Degree, Radian 175 } AngleUnits_t; 176 #endif 177 #define NofValidAngleUnits 4 178 179 #define Degree_s "Degree" 180 #define Radian_s "Radian" 181 182 /* ElectricCurrent ---*/ 183 #ifdef __CGNS_ENUMS__ 184 typedef enum { 185 ElectricCurrentUnitsNull, ElectricCurrentUnitsUserDefined, 186 Ampere, Abampere, Statampere, Edison, auCurrent 187 } ElectricCurrentUnits_t; 188 #endif 189 #define NofValidElectricCurrentUnits 7 190 191 #define Ampere_s "Ampere" 192 #define Abampere_s "Abampere" 193 #define Statampere_s "Statampere" 194 #define Edison_s "Edison" 195 #define auCurrent_s "auCurrent" 196 197 /* SubstanceAmount ---*/ 198 #ifdef __CGNS_ENUMS__ 199 typedef enum { 200 SubstanceAmountUnitsNull, SubstanceAmountUnitsUserDefined, 201 Mole, Entities, StandardCubicFoot, StandardCubicMeter 202 } SubstanceAmountUnits_t; 203 #endif 204 #define NofValidSubstanceAmountUnits 6 205 206 #define Mole_s "Mole" 207 #define Entities_s "Entities" 208 #define StandardCubicFoot_s "StandardCubicFoot" 209 #define StandardCubicMeter_s "StandardCubicMeter" 210 211 /* LuminousIntensity ---*/ 212 #ifdef __CGNS_ENUMS__ 213 typedef enum { 214 LuminousIntensityUnitsNull, LuminousIntensityUnitsUserDefined, 215 Candela, Candle, Carcel, Hefner, Violle 216 } LuminousIntensityUnits_t; 217 #endif 218 #define NofValidLuminousIntensityUnits 7 219 220 #define Candela_s "Candela" 221 #define Candle_s "Candle" 222 #define Carcel_s "Carcel" 223 #define Hefner_s "Hefner" 224 #define Violle_s "Violle" 225 226 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 227 * Data Class * 228 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 229 230 #ifdef __CGNS_ENUMS__ 231 typedef enum { 232 DataClassNull, DataClassUserDefined, 233 Dimensional, NormalizedByDimensional, 234 NormalizedByUnknownDimensional, 235 NondimensionalParameter, DimensionlessConstant 236 } DataClass_t; 237 #endif 238 #define NofValidDataClass 7 239 240 #define Dimensional_s "Dimensional" 241 #define NormalizedByDimensional_s "NormalizedByDimensional" 242 #define NormalizedByUnknownDimensional_s "NormalizedByUnknownDimensional" 243 #define NondimensionalParameter_s "NondimensionalParameter" 244 #define DimensionlessConstant_s "DimensionlessConstant" 245 246 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 247 * Grid Location 248 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 249 250 #ifdef __CGNS_ENUMS__ 251 typedef enum { 252 GridLocationNull, GridLocationUserDefined, 253 Vertex, CellCenter, FaceCenter, 254 IFaceCenter, JFaceCenter, KFaceCenter, EdgeCenter 255 } GridLocation_t; 256 #endif 257 #define NofValidGridLocation 9 258 259 #define Vertex_s "Vertex" 260 #define CellCenter_s "CellCenter" 261 #define FaceCenter_s "FaceCenter" 262 #define IFaceCenter_s "IFaceCenter" 263 #define JFaceCenter_s "JFaceCenter" 264 #define KFaceCenter_s "KFaceCenter" 265 #define EdgeCenter_s "EdgeCenter" 266 267 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 268 * BCData Types * 269 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 270 271 #ifdef __CGNS_ENUMS__ 272 typedef enum { 273 BCDataTypeNull, BCDataTypeUserDefined, 274 Dirichlet, Neumann 275 } BCDataType_t; 276 #endif 277 #define NofValidBCDataTypes 4 278 279 #define Dirichlet_s "Dirichlet" 280 #define Neumann_s "Neumann" 281 282 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 283 * Grid Connectivity Types * 284 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 285 286 #ifdef __CGNS_ENUMS__ 287 typedef enum { 288 GridConnectivityTypeNull, GridConnectivityTypeUserDefined, 289 Overset, Abutting, Abutting1to1 290 } GridConnectivityType_t; 291 #endif 292 #define NofValidGridConnectivityTypes 5 293 294 #define Overset_s "Overset" 295 #define Abutting_s "Abutting" 296 #define Abutting1to1_s "Abutting1to1" 297 298 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 299 * Point Set Types * 300 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 301 302 #ifdef __CGNS_ENUMS__ 303 typedef enum { 304 PointSetTypeNull, PointSetTypeUserDefined, 305 PointList, PointListDonor, 306 PointRange, PointRangeDonor, 307 ElementRange, ElementList, CellListDonor 308 } PointSetType_t; 309 310 #endif 311 #define NofValidPointSetTypes 9 312 313 #define PointList_s "PointList" 314 #define PointListDonor_s "PointListDonor" 315 #define PointRange_s "PointRange" 316 #define PointRangeDonor_s "PointRangeDonor" 317 #define ElementRange_s "ElementRange" 318 #define ElementList_s "ElementList" 319 #define CellListDonor_s "CellListDonor" 320 321 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 322 * Governing Equations and Physical Models Types * 323 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 324 325 #ifdef __CGNS_ENUMS__ 326 typedef enum { 327 GoverningEquationsNull, GoverningEquationsUserDefined, 328 FullPotential, Euler, NSLaminar, NSTurbulent, 329 NSLaminarIncompressible, NSTurbulentIncompressible 330 } GoverningEquationsType_t; 331 #endif 332 #define NofValidGoverningEquationsTypes 8 333 334 #define FullPotential_s "FullPotential" 335 #define Euler_s "Euler" 336 #define NSLaminar_s "NSLaminar" 337 #define NSTurbulent_s "NSTurbulent" 338 #define NSLaminarIncompressible_s "NSLaminarIncompressible" 339 #define NSTurbulentIncompressible_s "NSTurbulentIncompressible" 340 341 /* Any model type will accept both ModelTypeNull and ModelTypeUserDefined. 342 ** The following models will accept these values as valid... 343 ** 344 ** GasModel_t: Ideal, VanderWaals, CaloricallyPerfect, ThermallyPerfect, 345 ** ConstantDensity, RedlichKwong 346 ** 347 ** ViscosityModel_t: Constant, PowerLaw, SutherlandLaw 348 ** 349 ** ThermalConductivityModel_t: PowerLaw, SutherlandLaw, ConstantPrandtl 350 ** 351 ** TurbulenceModel_t: Algebraic_BaldwinLomax, Algebraic_CebeciSmith, 352 ** HalfEquation_JohnsonKing, OneEquation_BaldwinBarth, 353 ** OneEquation_SpalartAllmaras, TwoEquation_JonesLaunder, 354 ** TwoEquation_MenterSST,TwoEquation_Wilcox 355 ** 356 ** TurbulenceClosure_t: EddyViscosity, ReynoldsStress, ReynoldsStressAlgebraic 357 ** 358 ** ThermalRelaxationModel_t: Frozen, ThermalEquilib, ThermalNonequilib 359 ** 360 ** ChemicalKineticsModel_t: Frozen, ChemicalEquilibCurveFit, 361 ** ChemicalEquilibMinimization, ChemicalNonequilib 362 ** 363 ** EMElectricFieldModel_t: Voltage, Interpolated, Constant, Frozen 364 ** 365 ** EMMagneticFieldModel_t: Interpolated, Constant, Frozen 366 ** 367 ** EMConductivityModel_t: Constant, Frozen, Equilibrium_LinRessler, 368 ** Chemistry_LinRessler 369 */ 370 371 #ifdef __CGNS_ENUMS__ 372 typedef enum { 373 ModelTypeNull, ModelTypeUserDefined, 374 Ideal, VanderWaals, 375 Constant, 376 PowerLaw, SutherlandLaw, 377 ConstantPrandtl, 378 EddyViscosity, ReynoldsStress, ReynoldsStressAlgebraic, 379 Algebraic_BaldwinLomax, Algebraic_CebeciSmith, 380 HalfEquation_JohnsonKing, OneEquation_BaldwinBarth, 381 OneEquation_SpalartAllmaras, TwoEquation_JonesLaunder, 382 TwoEquation_MenterSST, TwoEquation_Wilcox, 383 CaloricallyPerfect, ThermallyPerfect, 384 ConstantDensity, RedlichKwong, 385 Frozen, ThermalEquilib, ThermalNonequilib, 386 ChemicalEquilibCurveFit, ChemicalEquilibMinimization, 387 ChemicalNonequilib, 388 EMElectricField, EMMagneticField, EMConductivity, 389 Voltage, Interpolated, Equilibrium_LinRessler, Chemistry_LinRessler 390 } ModelType_t; 391 #endif 392 #define NofValidModelTypes 36 393 394 #define Ideal_s "Ideal" 395 #define VanderWaals_s "VanderWaals" 396 #define Constant_s "Constant" 397 #define PowerLaw_s "PowerLaw" 398 #define SutherlandLaw_s "SutherlandLaw" 399 #define ConstantPrandtl_s "ConstantPrandtl" 400 #define EddyViscosity_s "EddyViscosity" 401 #define ReynoldsStress_s "ReynoldsStress" 402 #define Algebraic_s "Algebraic" 403 #define BaldwinLomax_s "BaldwinLomax" 404 #define ReynoldsStressAlgebraic_s "ReynoldsStressAlgebraic" 405 #define Algebraic_CebeciSmith_s "Algebraic_CebeciSmith" 406 #define HalfEquation_JohnsonKing_s "HalfEquation_JohnsonKing" 407 #define OneEquation_BaldwinBarth_s "OneEquation_BaldwinBarth" 408 #define OneEquation_SpalartAllmaras_s "OneEquation_SpalartAllmaras" 409 #define TwoEquation_JonesLaunder_s "TwoEquation_JonesLaunder" 410 #define TwoEquation_MenterSST_s "TwoEquation_MenterSST" 411 #define TwoEquation_Wilcox_s "TwoEquation_Wilcox" 412 #define CaloricallyPerfect_s "CaloricallyPerfect" 413 #define ThermallyPerfect_s "ThermallyPerfect" 414 #define ConstantDensity_s "ConstantDensity" 415 #define RedlichKwong_s "RedlichKwong" 416 #define Frozen_s "Frozen" 417 #define ThermalEquilib_s "ThermalEquilib" 418 #define ThermalNonequilib_s "ThermalNonequilib" 419 #define ChemicalEquilibCurveFit_s "ChemicalEquilibCurveFit" 420 #define ChemicalEquilibMinimization_s "ChemicalEquilibMinimization" 421 #define ChemicalNonequilib_s "ChemicalNonequilib" 422 #define EMElectricField_s "EMElectricField" 423 #define EMMagneticField_s "EMMagneticField" 424 #define EMConductivity_s "EMConductivity" 425 #define Voltage_s "Voltage" 426 #define Interpolated_s "Interpolated" 427 #define Equilibrium_LinRessler_s "Equilibrium_LinRessler" 428 #define Chemistry_LinRessler_s "Chemistry_LinRessler" 429 430 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 431 * Boundary Condition Types * 432 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 433 434 #ifdef __CGNS_ENUMS__ 435 typedef enum { 436 BCTypeNull, BCTypeUserDefined, 437 BCAxisymmetricWedge, BCDegenerateLine, BCDegeneratePoint, 438 BCDirichlet, BCExtrapolate, BCFarfield, BCGeneral, BCInflow, 439 BCInflowSubsonic, BCInflowSupersonic, BCNeumann, BCOutflow, 440 BCOutflowSubsonic, BCOutflowSupersonic, BCSymmetryPlane, 441 BCSymmetryPolar, BCTunnelInflow, BCTunnelOutflow, BCWall, 442 BCWallInviscid, BCWallViscous, BCWallViscousHeatFlux, 443 BCWallViscousIsothermal, FamilySpecified 444 } BCType_t; 445 #endif 446 #define NofValidBCTypes 26 447 448 #define BCAxisymmetricWedge_s "BCAxisymmetricWedge" 449 #define BCDegenerateLine_s "BCDegenerateLine" 450 #define BCDegeneratePoint_s "BCDegeneratePoint" 451 #define BCDirichlet_s "BCDirichlet" 452 #define BCExtrapolate_s "BCExtrapolate" 453 #define BCFarfield_s "BCFarfield" 454 #define BCGeneral_s "BCGeneral" 455 #define BCInflow_s "BCInflow" 456 #define BCInflowSubsonic_s "BCInflowSubsonic" 457 #define BCInflowSupersonic_s "BCInflowSupersonic" 458 #define BCNeumann_s "BCNeumann" 459 #define BCOutflow_s "BCOutflow" 460 #define BCOutflowSubsonic_s "BCOutflowSubsonic" 461 #define BCOutflowSupersonic_s "BCOutflowSupersonic" 462 #define BCSymmetryPlane_s "BCSymmetryPlane" 463 #define BCSymmetryPolar_s "BCSymmetryPolar" 464 #define BCTunnelInflow_s "BCTunnelInflow" 465 #define BCTunnelOutflow_s "BCTunnelOutflow" 466 #define BCWall_s "BCWall" 467 #define BCWallInviscid_s "BCWallInviscid" 468 #define BCWallViscous_s "BCWallViscous" 469 #define BCWallViscousHeatFlux_s "BCWallViscousHeatFlux" 470 #define BCWallViscousIsothermal_s "BCWallViscousIsothermal" 471 #define FamilySpecified_s "FamilySpecified" 472 473 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 474 * Data types: Can not add data types and stay forward compatible * 475 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 476 477 #ifdef __CGNS_ENUMS__ 478 typedef enum { 479 DataTypeNull, DataTypeUserDefined, Integer, RealSingle, 480 RealDouble, Character, LongInteger 481 } DataType_t; 482 #endif 483 #define NofValidDataTypes 7 484 485 #define Integer_s "Integer" 486 #define RealSingle_s "RealSingle" 487 #define RealDouble_s "RealDouble" 488 #define Character_s "Character" 489 #define LongInteger_s "LongInteger" 490 491 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 492 * Element types * 493 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 494 495 #ifdef __CGNS_ENUMS__ 496 typedef enum { 497 ElementTypeNull, ElementTypeUserDefined, /* 0, 1, */ 498 NODE, BAR_2, BAR_3, /* 2, 3, 4, */ 499 TRI_3, TRI_6, /* 5, 6, */ 500 QUAD_4, QUAD_8, QUAD_9, /* 7, 8, 9, */ 501 TETRA_4, TETRA_10, /* 10, 11, */ 502 PYRA_5, PYRA_14, /* 12, 13, */ 503 PENTA_6, PENTA_15, PENTA_18, /* 14, 15, 16, */ 504 HEXA_8, HEXA_20, HEXA_27, /* 17, 18, 19, */ 505 MIXED, PYRA_13, NGON_n, NFACE_n /* 20, 21, 22, 23*/ 506 } ElementType_t; 507 #endif 508 #define NofValidElementTypes 24 509 510 #define NODE_s "NODE" 511 #define BAR_2_s "BAR_2" 512 #define BAR_3_s "BAR_3" 513 #define TRI_3_s "TRI_3" 514 #define TRI_6_s "TRI_6" 515 #define QUAD_4_s "QUAD_4" 516 #define QUAD_8_s "QUAD_8" 517 #define QUAD_9_s "QUAD_9" 518 #define TETRA_4_s "TETRA_4" 519 #define TETRA_10_s "TETRA_10" 520 #define PYRA_5_s "PYRA_5" 521 #define PYRA_14_s "PYRA_14" 522 #define PENTA_6_s "PENTA_6" 523 #define PENTA_15_s "PENTA_15" 524 #define PENTA_18_s "PENTA_18" 525 #define HEXA_8_s "HEXA_8" 526 #define HEXA_20_s "HEXA_20" 527 #define HEXA_27_s "HEXA_27" 528 #define MIXED_s "MIXED" 529 #define PYRA_13_s "PYRA_13" 530 #define NGON_n_s "NGON_n" 531 #define NFACE_n_s "NFACE_n" 532 533 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 534 * Zone types * 535 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 536 537 #ifdef __CGNS_ENUMS__ 538 typedef enum { 539 ZoneTypeNull, ZoneTypeUserDefined, 540 Structured, Unstructured 541 } ZoneType_t; 542 #endif 543 #define NofValidZoneTypes 4 544 545 #define Structured_s "Structured" 546 #define Unstructured_s "Unstructured" 547 548 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 549 * Rigid Grid Motion types * 550 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 551 552 #ifdef __CGNS_ENUMS__ 553 typedef enum { 554 RigidGridMotionTypeNull, RigidGridMotionTypeUserDefined, 555 ConstantRate, VariableRate 556 } RigidGridMotionType_t; 557 #endif 558 #define NofValidRigidGridMotionTypes 4 559 560 #define ConstantRate_s "ConstantRate" 561 #define VariableRate_s "VariableRate" 562 563 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 564 * Arbitrary Grid Motion types * 565 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 566 567 #ifdef __CGNS_ENUMS__ 568 typedef enum { 569 ArbitraryGridMotionTypeNull, ArbitraryGridMotionTypeUserDefined, 570 NonDeformingGrid, DeformingGrid 571 } ArbitraryGridMotionType_t; 572 #endif 573 #define NofValidArbitraryGridMotionTypes 4 574 575 #define NonDeformingGrid_s "NonDeformingGrid" 576 #define DeformingGrid_s "DeformingGrid" 577 578 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 579 * Simulation types * 580 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 581 582 #ifdef __CGNS_ENUMS__ 583 typedef enum { 584 SimulationTypeNull, SimulationTypeUserDefined, 585 TimeAccurate, NonTimeAccurate 586 } SimulationType_t; 587 #endif 588 #define NofValidSimulationTypes 4 589 590 #define TimeAccurate_s "TimeAccurate" 591 #define NonTimeAccurate_s "NonTimeAccurate" 592 593 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 594 * BC Property types * 595 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 596 597 #ifdef __CGNS_ENUMS__ 598 typedef enum { 599 WallFunctionTypeNull, WallFunctionTypeUserDefined, 600 Generic 601 } WallFunctionType_t; 602 #endif 603 #define NofValidWallFunctionTypes 3 604 605 #define Generic_s "Generic" 606 607 #ifdef __CGNS_ENUMS__ 608 typedef enum { 609 AreaTypeNull, AreaTypeUserDefined, 610 BleedArea, CaptureArea 611 } AreaType_t; 612 #endif 613 #define NofValidAreaTypes 4 614 615 #define BleedArea_s "BleedArea" 616 #define CaptureArea_s "CaptureArea" 617 618 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 619 * Grid Connectivity Property types * 620 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 621 622 #ifdef __CGNS_ENUMS__ 623 typedef enum { 624 AverageInterfaceTypeNull, AverageInterfaceTypeUserDefined, 625 AverageAll, AverageCircumferential, AverageRadial, AverageI, 626 AverageJ, AverageK 627 } AverageInterfaceType_t; 628 #endif 629 #define NofValidAverageInterfaceTypes 8 630 631 #define AverageAll_s "AverageAll" 632 #define AverageCircumferential_s "AverageCircumferential" 633 #define AverageRadial_s "AverageRadial" 634 #define AverageI_s "AverageI" 635 #define AverageJ_s "AverageJ" 636 #define AverageK_s "AverageK" 637 638 639 640 /* The strings defined below are node names or node name patterns */ 641 642 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 643 * Coordinate system * 644 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 645 646 #define CoordinateX_s "CoordinateX" 647 #define CoordinateY_s "CoordinateY" 648 #define CoordinateZ_s "CoordinateZ" 649 #define CoordinateR_s "CoordinateR" 650 #define CoordinateTheta_s "CoordinateTheta" 651 #define CoordinatePhi_s "CoordinatePhi" 652 #define CoordinateNormal_s "CoordinateNormal" 653 #define CoordinateTangential_s "CoordinateTangential" 654 #define CoordinateXi_s "CoordinateXi" 655 #define CoordinateEta_s "CoordinateEta" 656 #define CoordinateZeta_s "CoordinateZeta" 657 #define CoordinateTransform_s "CoordinateTransform" 658 #define InterpolantsDonor_s "InterpolantsDonor" 659 #define ElementConnectivity_s "ElementConnectivity" 660 #define ParentData_s "ParentData" 661 662 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 663 * FlowSolution Quantities * 664 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 665 666 /* Patterns --- */ 667 #define VectorX_ps "%sX" 668 #define VectorY_ps "%sY" 669 #define VectorZ_ps "%sZ" 670 #define VectorTheta_ps "%sTheta" 671 #define VectorPhi_ps "%sPhi" 672 #define VectorMagnitude_ps "%sMagnitude" 673 #define VectorNormal_ps "%sNormal" 674 #define VectorTangential_ps "%sTangential" 675 676 #define Potential_s "Potential" 677 #define StreamFunction_s "StreamFunction" 678 #define Density_s "Density" 679 #define Pressure_s "Pressure" 680 #define Temperature_s "Temperature" 681 #define EnergyInternal_s "EnergyInternal" 682 #define Enthalpy_s "Enthalpy" 683 #define Entropy_s "Entropy" 684 #define EntropyApprox_s "EntropyApprox" 685 #define DensityStagnation_s "DensityStagnation" 686 #define PressureStagnation_s "PressureStagnation" 687 #define TemperatureStagnation_s "TemperatureStagnation" 688 #define EnergyStagnation_s "EnergyStagnation" 689 #define EnthalpyStagnation_s "EnthalpyStagnation" 690 #define EnergyStagnationDensity_s "EnergyStagnationDensity" 691 #define VelocityX_s "VelocityX" 692 #define VelocityY_s "VelocityY" 693 #define VelocityZ_s "VelocityZ" 694 #define VelocityR_s "VelocityR" 695 #define VelocityTheta_s "VelocityTheta" 696 #define VelocityPhi_s "VelocityPhi" 697 #define VelocityMagnitude_s "VelocityMagnitude" 698 #define VelocityNormal_s "VelocityNormal" 699 #define VelocityTangential_s "VelocityTangential" 700 #define VelocitySound_s "VelocitySound" 701 #define VelocitySoundStagnation_s "VelocitySoundStagnation" 702 #define MomentumX_s "MomentumX" 703 #define MomentumY_s "MomentumY" 704 #define MomentumZ_s "MomentumZ" 705 #define MomentumMagnitude_s "MomentumMagnitude" 706 #define RotatingVelocityX_s "RotatingVelocityX" 707 #define RotatingVelocityY_s "RotatingVelocityY" 708 #define RotatingVelocityZ_s "RotatingVelocityZ" 709 #define RotatingMomentumX_s "RotatingMomentumX" 710 #define RotatingMomentumY_s "RotatingMomentumY" 711 #define RotatingMomentumZ_s "RotatingMomentumZ" 712 #define RotatingVelocityMagnitude_s "RotatingVelocityMagnitude" 713 #define RotatingPressureStagnation_s "RotatingPressureStagnation" 714 #define RotatingEnergyStagnation_s "RotatingEnergyStagnation" 715 #define RotatingEnergyStagnationDensity_s "RotatingEnergyStagnationDensity" 716 #define RotatingEnthalpyStagnation_s "RotatingEnthalpyStagnation" 717 #define EnergyKinetic_s "EnergyKinetic" 718 #define PressureDynamic_s "PressureDynamic" 719 #define SoundIntensityDB_s "SoundIntensityDB" 720 #define SoundIntensity_s "SoundIntensity" 721 722 #define VorticityX_s "VorticityX" 723 #define VorticityY_s "VorticityY" 724 #define VorticityZ_s "VorticityZ" 725 #define VorticityMagnitude_s "VorticityMagnitude" 726 #define SkinFrictionX_s "SkinFrictionX" 727 #define SkinFrictionY_s "SkinFrictionY" 728 #define SkinFrictionZ_s "SkinFrictionZ" 729 #define SkinFrictionMagnitude_s "SkinFrictionMagnitude" 730 #define VelocityAngleX_s "VelocityAngleX" 731 #define VelocityAngleY_s "VelocityAngleY" 732 #define VelocityAngleZ_s "VelocityAngleZ" 733 #define VelocityUnitVectorX_s "VelocityUnitVectorX" 734 #define VelocityUnitVectorY_s "VelocityUnitVectorY" 735 #define VelocityUnitVectorZ_s "VelocityUnitVectorZ" 736 #define MassFlow_s "MassFlow" 737 #define ViscosityKinematic_s "ViscosityKinematic" 738 #define ViscosityMolecular_s "ViscosityMolecular" 739 #define ViscosityEddyDynamic_s "ViscosityEddyDynamic" 740 #define ViscosityEddy_s "ViscosityEddy" 741 #define ThermalConductivity_s "ThermalConductivity" 742 #define PowerLawExponent_s "PowerLawExponent" 743 #define SutherlandLawConstant_s "SutherlandLawConstant" 744 #define TemperatureReference_s "TemperatureReference" 745 #define ViscosityMolecularReference_s "ViscosityMolecularReference" 746 #define ThermalConductivityReference_s "ThermalConductivityReference" 747 #define IdealGasConstant_s "IdealGasConstant" 748 #define SpecificHeatPressure_s "SpecificHeatPressure" 749 #define SpecificHeatVolume_s "SpecificHeatVolume" 750 #define ReynoldsStressXX_s "ReynoldsStressXX" 751 #define ReynoldsStressXY_s "ReynoldsStressXY" 752 #define ReynoldsStressXZ_s "ReynoldsStressXZ" 753 #define ReynoldsStressYY_s "ReynoldsStressYY" 754 #define ReynoldsStressYZ_s "ReynoldsStressYZ" 755 #define ReynoldsStressZZ_s "ReynoldsStressZZ" 756 #define LengthReference_s "LengthReference" 757 758 #define MolecularWeight_s "MolecularWeight" 759 #define MolecularWeight_ps "MolecularWeight%s" 760 #define HeatOfFormation_s "HeatOfFormation" 761 #define HeatOfFormation_ps "HeatOfFormation%s" 762 #define FuelAirRatio_s "FuelAirRatio" 763 #define ReferenceTemperatureHOF_s "ReferenceTemperatureHOF" 764 #define MassFraction_s "MassFraction" 765 #define MassFraction_ps "MassFraction%s" 766 #define LaminarViscosity_s "LaminarViscosity" 767 #define LaminarViscosity_ps "LaminarViscosity%s" 768 #define ThermalConductivity_ps "ThermalConductivity%s" 769 #define EnthalpyEnergyRatio_s "EnthalpyEnergyRatio" 770 #define CompressibilityFactor_s "CompressibilityFactor" 771 #define VibrationalElectronEnergy_s "VibrationalElectronEnergy" 772 #define VibrationalElectronTemperature_s "VibrationalElectronTemperature" 773 #define SpeciesDensity_s "SpeciesDensity" 774 #define SpeciesDensity_ps "SpeciesDensity%s" 775 #define MoleFraction_s "MoleFraction" 776 #define MoleFraction_ps "MoleFraction%s" 777 778 #define ElectricFieldX_s "ElectricFieldX" 779 #define ElectricFieldY_s "ElectricFieldY" 780 #define ElectricFieldZ_s "ElectricFieldZ" 781 #define MagneticFieldX_s "MagneticFieldX" 782 #define MagneticFieldY_s "MagneticFieldY" 783 #define MagneticFieldZ_s "MagneticFieldZ" 784 #define CurrentDensityX_s "CurrentDensityX" 785 #define CurrentDensityY_s "CurrentDensityY" 786 #define CurrentDensityZ_s "CurrentDensityZ" 787 #define LorentzForceX_s "LorentzForceX" 788 #define LorentzForceY_s "LorentzForceY" 789 #define LorentzForceZ_s "LorentzForceZ" 790 #define ElectricConductivity_s "ElectricConductivity" 791 #define JouleHeating_s "JouleHeating" 792 793 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 794 * Typical Turbulence Models * 795 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 796 797 #define TurbulentDistance_s "TurbulentDistance" 798 #define TurbulentEnergyKinetic_s "TurbulentEnergyKinetic" 799 #define TurbulentDissipation_s "TurbulentDissipation" 800 #define TurbulentDissipationRate_s "TurbulentDissipationRate" 801 #define TurbulentBBReynolds_s "TurbulentBBReynolds" 802 #define TurbulentSANuTilde_s "TurbulentSANuTilde" 803 804 805 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 806 * Nondimensional Parameters * 807 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 808 809 #define Mach_s "Mach" 810 #define Mach_Velocity_s "Mach_Velocity" 811 #define Mach_VelocitySound_s "Mach_VelocitySound" 812 #define Reynolds_s "Reynolds" 813 #define Reynolds_Velocity_s "Reynolds_Velocity" 814 #define Reynolds_Length_s "Reynolds_Length" 815 #define Reynolds_ViscosityKinematic_s "Reynolds_ViscosityKinematic" 816 #define Prandtl_s "Prandtl" 817 #define Prandtl_ThermalConductivity_s "Prandtl_ThermalConductivity" 818 #define Prandtl_ViscosityMolecular_s "Prandtl_ViscosityMolecular" 819 #define Prandtl_SpecificHeatPressure_s "Prandtl_SpecificHeatPressure" 820 #define PrandtlTurbulent_s "PrandtlTurbulent" 821 #define SpecificHeatRatio_s "SpecificHeatRatio" 822 #define SpecificHeatRatio_Pressure_s "SpecificHeatRatio_Pressure" 823 #define SpecificHeatRatio_Volume_s "SpecificHeatRatio_Volume" 824 #define CoefPressure_s "CoefPressure" 825 #define CoefSkinFrictionX_s "CoefSkinFrictionX" 826 #define CoefSkinFrictionY_s "CoefSkinFrictionY" 827 #define CoefSkinFrictionZ_s "CoefSkinFrictionZ" 828 #define Coef_PressureDynamic_s "Coef_PressureDynamic" 829 #define Coef_PressureReference_s "Coef_PressureReference" 830 831 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 832 * Characteristics and Riemann invariant * 833 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 834 835 #define Vorticity_s "Vorticity" 836 #define Acoustic_s "Acoustic" 837 838 #define RiemannInvariantPlus_s "RiemannInvariantPlus" 839 #define RiemannInvariantMinus_s "RiemannInvariantMinus" 840 #define CharacteristicEntropy_s "CharacteristicEntropy" 841 #define CharacteristicVorticity1_s "CharacteristicVorticity1" 842 #define CharacteristicVorticity2_s "CharacteristicVorticity2" 843 #define CharacteristicAcousticPlus_s "CharacteristicAcousticPlus" 844 #define CharacteristicAcousticMinus_s "CharacteristicAcousticMinus" 845 846 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 847 * Forces and Moments * 848 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 849 850 #define ForceX_s "ForceX" 851 #define ForceY_s "ForceY" 852 #define ForceZ_s "ForceZ" 853 #define ForceR_s "ForceR" 854 #define ForceTheta_s "ForceTheta" 855 #define ForcePhi_s "ForcePhi" 856 #define Lift_s "Lift" 857 #define Drag_s "Drag" 858 #define MomentX_s "MomentX" 859 #define MomentY_s "MomentY" 860 #define MomentZ_s "MomentZ" 861 #define MomentR_s "MomentR" 862 #define MomentTheta_s "MomentTheta" 863 #define MomentPhi_s "MomentPhi" 864 #define MomentXi_s "MomentXi" 865 #define MomentEta_s "MomentEta" 866 #define MomentZeta_s "MomentZeta" 867 #define Moment_CenterX_s "Moment_CenterX" 868 #define Moment_CenterY_s "Moment_CenterY" 869 #define Moment_CenterZ_s "Moment_CenterZ" 870 #define CoefLift_s "CoefLift" 871 #define CoefDrag_s "CoefDrag" 872 #define CoefMomentX_s "CoefMomentX" 873 #define CoefMomentY_s "CoefMomentY" 874 #define CoefMomentZ_s "CoefMomentZ" 875 #define CoefMomentR_s "CoefMomentR" 876 #define CoefMomentTheta_s "CoefMomentTheta" 877 #define CoefMomentPhi_s "CoefMomentPhi" 878 #define CoefMomentXi_s "CoefMomentXi" 879 #define CoefMomentEta_s "CoefMomentEta" 880 #define CoefMomentZeta_s "CoefMomentZeta" 881 #define Coef_PressureDynamic_s "Coef_PressureDynamic" 882 #define Coef_Area_s "Coef_Area" 883 #define Coef_Length_s "Coef_Length" 884 885 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 886 * Time dependent flow * 887 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 888 889 #define TimeValues_s "TimeValues" 890 #define IterationValues_s "IterationValues" 891 #define NumberOfZones_s "NumberOfZones" 892 #define NumberOfFamilies_s "NumberOfFamilies" 893 #define ZonePointers_s "ZonePointers" 894 #define FamilyPointers_s "FamilyPointers" 895 #define RigidGridMotionPointers_s "RigidGridMotionPointers" 896 #define ArbitraryGridMotionPointers_s "ArbitraryGridMotionPointers" 897 #define GridCoordinatesPointers_s "GridCoordinatesPointers" 898 #define FlowSolutionPointers_s "FlowSolutionPointers" 899 #define OriginLocation_s "OriginLocation" 900 #define RigidRotationAngle_s "RigidRotationAngle" 901 #define RigidVelocity_s "RigidVelocity" 902 #define RigidRotationRate_s "RigidRotationRate" 903 #define GridVelocityX_s "GridVelocityX" 904 #define GridVelocityY_s "GridVelocityY" 905 #define GridVelocityZ_s "GridVelocityZ" 906 #define GridVelocityR_s "GridVelocityR" 907 #define GridVelocityTheta_s "GridVelocityTheta" 908 #define GridVelocityPhi_s "GridVelocityPhi" 909 #define GridVelocityXi_s "GridVelocityXi" 910 #define GridVelocityEta_s "GridVelocityEta" 911 #define GridVelocityZeta_s "GridVelocityZeta" 912 913 914 /* The strings defined below are type names used for node labels */ 915 916 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 917 * Types as strings * 918 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 919 #define ArbitraryGridMotion_ts "ArbitraryGridMotion_t" 920 #define Area_ts "Area_t" 921 #define AverageInterface_ts "AverageInterface_t" 922 #define Axisymmetry_ts "Axisymmetry_t" 923 #define BCDataSet_ts "BCDataSet_t" 924 #define BCData_ts "BCData_t" 925 #define BCProperty_ts "BCProperty_t" 926 #define BC_ts "BC_t" 927 #define BaseIterativeData_ts "BaseIterativeData_t" 928 #define CGNSBase_ts "CGNSBase_t" 929 #define CGNSLibraryVersion_ts "CGNSLibraryVersion_t" 930 #define ChemicalKineticsModel_ts "ChemicalKineticsModel_t" 931 #define ConvergenceHistory_ts "ConvergenceHistory_t" 932 #define DataArray_ts "DataArray_t" 933 #define DataClass_ts "DataClass_t" 934 #define DataConversion_ts "DataConversion_t" 935 #define Descriptor_ts "Descriptor_t" 936 #define DimensionalExponents_ts "DimensionalExponents_t" 937 #define DimensionalUnits_ts "DimensionalUnits_t" 938 #define DiscreteData_ts "DiscreteData_t" 939 #define Elements_ts "Elements_t" 940 #define FamilyBC_ts "FamilyBC_t" 941 #define FamilyName_ts "FamilyName_t" 942 #define Family_ts "Family_t" 943 #define FlowEquationSet_ts "FlowEquationSet_t" 944 #define FlowSolution_ts "FlowSolution_t" 945 #define GasModel_ts "GasModel_t" 946 #define GeometryEntity_ts "GeometryEntity_t" 947 #define GeometryFile_ts "GeometryFile_t" 948 #define GeometryFormat_ts "GeometryFormat_t" 949 #define GeometryReference_ts "GeometryReference_t" 950 #define GoverningEquations_ts "GoverningEquations_t" 951 #define Gravity_ts "Gravity_t" 952 #define GridConnectivity1to1_ts "GridConnectivity1to1_t" 953 #define GridConnectivityProperty_ts "GridConnectivityProperty_t" 954 #define GridConnectivityType_ts "GridConnectivityType_t" 955 #define GridConnectivity_ts "GridConnectivity_t" 956 #define GridCoordinates_ts "GridCoordinates_t" 957 #define GridLocation_ts "GridLocation_t" 958 #define IndexArray_ts "IndexArray_t" 959 #define IndexRange_ts "IndexRange_t" 960 #define IntegralData_ts "IntegralData_t" 961 #define InwardNormalList_ts "InwardNormalList_t" 962 #define Ordinal_ts "Ordinal_t" 963 #define OversetHoles_ts "OversetHoles_t" 964 #define Periodic_ts "Periodic_t" 965 #define ReferenceState_ts "ReferenceState_t" 966 #define RigidGridMotion_ts "RigidGridMotion_t" 967 #define Rind_ts "Rind_t" 968 #define RotatingCoordinates_ts "RotatingCoordinates_t" 969 #define SimulationType_ts "SimulationType_t" 970 #define ThermalConductivityModel_ts "ThermalConductivityModel_t" 971 #define ThermalRelaxationModel_ts "ThermalRelaxationModel_t" 972 #define TurbulenceClosure_ts "TurbulenceClosure_t" 973 #define TurbulenceModel_ts "TurbulenceModel_t" 974 #define UserDefinedData_ts "UserDefinedData_t" 975 #define ViscosityModel_ts "ViscosityModel_t" 976 #define WallFunction_ts "WallFunction_t" 977 #define ZoneBC_ts "ZoneBC_t" 978 #define ZoneGridConnectivity_ts "ZoneGridConnectivity_t" 979 #define ZoneIterativeData_ts "ZoneIterativeData_t" 980 #define ZoneType_ts "ZoneType_t" 981 #define Zone_ts "Zone_t" 982 983 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\ 984 * No line after this comment - * 985 \* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 986 987 #endif 988