source: CIVL/examples/fortran/flash/eos_getData_min/Eos_map.h

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 2.7 KB
Line 
1#if 0
2This file contains symbols for integer indices that represent the various ROLES
3in which variables in Grid data structures, including UNK, GRIDVAR, and face variables,
4can be used. These symbols therefore provide a generalization of the set of UNK
5variables that have traditionally been used as input to, and output from, Eos
6calls via Eos_wrapped.
7
8Some of the corresponding variables in Grid data structures get directly
9copied to corresponding basic Eos data structure components passed in calls to Eos(),
10and/or copied back from corresponding basic Eos data structure components after
11Eos calls; see Eos.h for the list of defined Eos data structure components.
12For other variables in Grid data structures that correspond to Eos_map roles,
13the relationship to their related Eos data structure components is less direct.
14For example, the Grid data structures that correspond to Eos_map roles EOSMAP_VEL[XYZ]
15are used as inputs to compute kinetic energy for the purpose of determining the value
16of the EOS_EINT basic Eos data structure component when calling Eos().
17
18See Eos_getData.F90 and Eos_putData.F90 for how these Eos_map roles are actually used.
19
20EOSMAP_PRES Pressure (normally PRES_VAR)
21EOSMAP_DENS Density (normally DENS_VAR)
22EOSMAP_TEMP Temperature (normally TEMP_VAR)
23EOSMAP_GAMC Adiabatic index, Chandrasekhars Gamma1 (normally GAMC_VAR)
24EOSMAP_GAME Adiabatic index, another of Chandrasekhars Gammas (normally GAME_VAR)
25EOSMAP_EINT Total internal energy (normally EINT_VAR)
26EOSMAP_ENER Total energy, internal plus kinetic (normally ENER_VAR)
27EOSMAP_SUME Used in Ye-based Eos to derive average mass of the nuclei
28EOSMAP_YE Used in Ye-based Eos to derive Average proton number
29EOSMAP_ENTR Entropy, normally output only
30EOSMAP_VELX Velocity component, used to compute kinetic energy, input only
31EOSMAP_VELY Velocity component, used to compute kinetic energy, input only
32EOSMAP_VELZ Velocity component, used to compute kinetic energy, input only
33
34This can easily be added if the need arises:
35EOSMAP_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
Note: See TracBrowser for help on using the repository browser.