D.8 Naming the TMAP models

In the framework of the Virtual Observatory, TMAP models and SEDs that are calculated from them have to follow a general rule. The models’ names have to start with Teff (TTTTTTT) and logg (G.GG), followed by the element abundances in mass fractions. An example is

0100000_7.00_H:__9.0000E-01_HE:_1.0000E-01 .

This is suitable for a small number of elements, where the level name stays relatively short. Thus, the general form for a model name is then

TTTTTTT_G.GG_ABUND_<nnn> ,

where nnn is a three digit integer code. ABUND_nnn corresponds to a file with the same name (located e.g. in the model directory). It has the form

H |~|  |~| 9.0000E-01 |~| <source ...>
HE |~| 3.0000E-05 |~| <source ...>
C |~|  |~| 4.0000E-06 |~| <source ...>
N |~|  |~| 2.0000E-06 |~| <source ...>
O |~|  |~| 1.0000E-05 |~| <source ...>
NE |~| 2.0000E-03 |~| <source ...>
SI |~| 8.0000E-06 |~| <source ...>
FE |~| 1.0000E-03 |~| <source ...>
NI |~| 2.0000E-05 |~| <source ...>

Please use one line per element, starting with the TMAP element code. The abundances are in mass fraction. The entry for the source of the abundances is optional and format free. Avoid to use any string that will be erroneously identified as an element code by a UNIX grep command!

In the TMAP jobs, the following has to be inserted to set some shell variables (${moddir} is the model directory, ${abund_old} and ${abund_new} may be used for different abundances).

#
abund_old="ABUND_001"
abund_new="ABUND_001"
#
#
# abundances in mass fraction (see files)
#
# old abundances
oldabund=${moddir}/${abund_old}
#
Hold=`grep "H |~|  |~| " ${oldabund} | awk '{ print $2 }'`
HEold=`grep "HE |~| " ${oldabund} | awk '{ print $2 }'`
Cold=`grep "C |~|  |~| " ${oldabund} | awk '{ print $2 }'`
Nold=`grep "N |~|  |~| " ${oldabund} | awk '{ print $2 }'`
Oold=`grep "O |~|  |~| " ${oldabund} | awk '{ print $2 }'`
NEold=`grep "NE |~| " ${oldabund} | awk '{ print $2 }'`
SIold=`grep "SI |~| " ${oldabund} | awk '{ print $2 }'`
FEold=`grep "FE |~| " ${oldabund} | awk '{ print $2 }'`
NIold=`grep "NI |~| " ${oldabund} | awk '{ print $2 }'`
#
#
# new abundances
newabund=${moddir}/${abund_new}
#
Hnew=`grep "H |~|  |~| " ${newabund} | awk '{ print $2 }'`
HEnew=`grep "HE |~| " ${newabund} | awk '{ print $2 }'`
Cnew=`grep "C |~|  |~| " ${newabund} | awk '{ print $2 }'`
Nnew=`grep "N |~|  |~| " ${newabund} | awk '{ print $2 }'`
Onew=`grep "O |~|  |~| " ${newabund} | awk '{ print $2 }'`
NEnew=`grep "NE |~| " ${newabund} | awk '{ print $2 }'`
SInew=`grep "SI |~| " ${newabund} | awk '{ print $2 }'`
FEnew=`grep "FE |~| " ${newabund} | awk '{ print $2 }'`
NInew=`grep "NI |~| " ${newabund} | awk '{ print $2 }'`
#

In the input files of e.g. PRO2 respective cards have to use the XXnew variables (XX is the element):

CHANGE |~| ABUNDANCE |~| H |~|  |~| ${Hnew} |~|  |~| MASS FRACTION
CHANGE |~| ABUNDANCE |~| HE |~| ${HEnew} |~| MASS FRACTION
CHANGE |~| ABUNDANCE |~| C |~|  |~| ${Cnew} |~|  |~| MASS FRACTION
CHANGE |~| ABUNDANCE |~| N |~|  |~| ${Nnew} |~|  |~| MASS FRACTION
CHANGE |~| ABUNDANCE |~| O |~|  |~| ${Onew} |~|  |~| MASS FRACTION
CHANGE |~| ABUNDANCE |~| NE |~| ${NEnew} |~| MASS FRACTION
CHANGE |~| ABUNDANCE |~| SI |~| ${SInew} |~| MASS FRACTION
CHANGE |~| ABUNDANCE |~| FE |~| ${FEnew} |~| MASS FRACTION
CHANGE |~| ABUNDANCE |~| NI |~| ${NInew} |~| MASS FRACTION