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
H9.0000E-01
<source ...>
HE3.0000E-05
<source ...>
C4.0000E-06
<source ...>
N2.0000E-06
<source ...>
O1.0000E-05
<source ...>
NE2.0000E-03
<source ...>
SI8.0000E-06
<source ...>
FE1.0000E-03
<source ...>
NI2.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):
CHANGEABUNDANCE
H
${Hnew}
MASS FRACTION
CHANGEABUNDANCE
HE
${HEnew}
MASS FRACTION
CHANGEABUNDANCE
C
${Cnew}
MASS FRACTION
CHANGEABUNDANCE
N
${Nnew}
MASS FRACTION
CHANGEABUNDANCE
O
${Onew}
MASS FRACTION
CHANGEABUNDANCE
NE
${NEnew}
MASS FRACTION
CHANGEABUNDANCE
SI
${SInew}
MASS FRACTION
CHANGEABUNDANCE
FE
${FEnew}
MASS FRACTION
CHANGEABUNDANCE
NI
${NInew}
MASS FRACTION