| 1 | #if 0
|
|---|
| 2 | This file contains symbols for integer indices that represent the various ROLES
|
|---|
| 3 | in which variables in Grid data structures, including UNK, GRIDVAR, and face variables,
|
|---|
| 4 | can be used. These symbols therefore provide a generalization of the set of UNK
|
|---|
| 5 | variables that have traditionally been used as input to, and output from, Eos
|
|---|
| 6 | calls via Eos_wrapped.
|
|---|
| 7 |
|
|---|
| 8 | Some of the corresponding variables in Grid data structures get directly
|
|---|
| 9 | copied to corresponding basic Eos data structure components passed in calls to Eos(),
|
|---|
| 10 | and/or copied back from corresponding basic Eos data structure components after
|
|---|
| 11 | Eos calls; see Eos.h for the list of defined Eos data structure components.
|
|---|
| 12 | For other variables in Grid data structures that correspond to Eos_map roles,
|
|---|
| 13 | the relationship to their related Eos data structure components is less direct.
|
|---|
| 14 | For example, the Grid data structures that correspond to Eos_map roles EOSMAP_VEL[XYZ]
|
|---|
| 15 | are used as inputs to compute kinetic energy for the purpose of determining the value
|
|---|
| 16 | of the EOS_EINT basic Eos data structure component when calling Eos().
|
|---|
| 17 |
|
|---|
| 18 | See Eos_getData.F90 and Eos_putData.F90 for how these Eos_map roles are actually used.
|
|---|
| 19 |
|
|---|
| 20 | EOSMAP_PRES Pressure (normally PRES_VAR)
|
|---|
| 21 | EOSMAP_DENS Density (normally DENS_VAR)
|
|---|
| 22 | EOSMAP_TEMP Temperature (normally TEMP_VAR)
|
|---|
| 23 | EOSMAP_GAMC Adiabatic index, Chandrasekhars Gamma1 (normally GAMC_VAR)
|
|---|
| 24 | EOSMAP_GAME Adiabatic index, another of Chandrasekhars Gammas (normally GAME_VAR)
|
|---|
| 25 | EOSMAP_EINT Total internal energy (normally EINT_VAR)
|
|---|
| 26 | EOSMAP_ENER Total energy, internal plus kinetic (normally ENER_VAR)
|
|---|
| 27 | EOSMAP_SUME Used in Ye-based Eos to derive average mass of the nuclei
|
|---|
| 28 | EOSMAP_YE Used in Ye-based Eos to derive Average proton number
|
|---|
| 29 | EOSMAP_ENTR Entropy, normally output only
|
|---|
| 30 | EOSMAP_VELX Velocity component, used to compute kinetic energy, input only
|
|---|
| 31 | EOSMAP_VELY Velocity component, used to compute kinetic energy, input only
|
|---|
| 32 | EOSMAP_VELZ Velocity component, used to compute kinetic energy, input only
|
|---|
| 33 |
|
|---|
| 34 | This can easily be added if the need arises:
|
|---|
| 35 | EOSMAP_EKIN used to hold kinetic energy for internal Eos use
|
|---|
| 36 | #endif
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | #define EOSMAP_BEGIN 1
|
|---|
| 40 | #define EOSMAP_NUM_ROLES 27
|
|---|
| 41 |
|
|---|
| 42 | #define EOSMAP_PRES 1
|
|---|
| 43 | #define EOSMAP_DENS 2
|
|---|
| 44 | #define EOSMAP_EINT 3
|
|---|
| 45 | #define EOSMAP_TEMP 4
|
|---|
| 46 | #define EOSMAP_GAMC 5
|
|---|
| 47 | #define EOSMAP_GAME 6
|
|---|
| 48 | #define EOSMAP_ENER 7
|
|---|
| 49 | #define EOSMAP_VELX 8
|
|---|
| 50 | #define EOSMAP_VELY 9
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 | #define EOSMAP_VELZ 10
|
|---|
| 54 | #define EOSMAP_ENTR 11
|
|---|
| 55 | #define EOSMAP_SUMY 12
|
|---|
| 56 | #define EOSMAP_YE 13
|
|---|
| 57 |
|
|---|
| 58 | #define EOSMAP_PRES1 14
|
|---|
| 59 | #define EOSMAP_PRES2 15
|
|---|
| 60 | #define EOSMAP_PRES3 16
|
|---|
| 61 | #define EOSMAP_EINT1 17
|
|---|
| 62 | #define EOSMAP_EINT2 18
|
|---|
| 63 | #define EOSMAP_EINT3 19
|
|---|
| 64 | #define EOSMAP_TEMP1 20
|
|---|
| 65 | #define EOSMAP_TEMP2 21
|
|---|
| 66 | #define EOSMAP_TEMP3 22
|
|---|
| 67 | #define EOSMAP_E1 23
|
|---|
| 68 | #define EOSMAP_E2 24
|
|---|
| 69 | #define EOSMAP_E3 25
|
|---|
| 70 |
|
|---|
| 71 | #define EOSMAP_SELE 26
|
|---|
| 72 | #define EOSMAP_SRAD 27
|
|---|
| 73 |
|
|---|
| 74 | #define EOS_IN 1
|
|---|
| 75 | #define EOS_OUT 2
|
|---|