Home    Search    Reference Manuals    Return    Misc Group Documentation





Users Manual for Program VAMPIRE2GENSYS  





Table of Contents

Introduction
Input data commands
Example





Introduction

Program VAMPIRE2GENSYS translates a Vampire input data file into Gensys format.

Make the translation with the following steps:

  1. Before running program VAMPIRE2GENSYS:
  2. Create file Master.vampire2gensysf, see the file in the Example below.
  3. Run program vampire2gensys with command:
    vampire2gensys Master.vampire2gensysf 2>&1 | tee vampire2gensys.out
  4. Open file vampire2gensys.out and check for potential errors and warnings.
  5. Open file Gensys_model.tsimf and do some manual editing in the file:
  6. The UNIX stream editor "sed" can be used to make the names of the masses more human readable.
    E.g.:
    sed -e 's/\<mass0000\>/grd_1/g' \
        -e 's/\<mass0001\>/car_1/g' \
        -e 's/\<mass0002\>/bol_11/g' \
        -e 's/\<mass0003\>/sfr_11r/g' \
        -e 's/\<mass0004\>/sfr_11l/g' \
        -e 's/\<mass0007\>/bol_12/g' \
        -e 's/\<mass0008\>/sfr_12r/g' \
        -e 's/\<mass0009\>/sfr_12l/g' \
        Gensys_model.tsimf > Gensys_model_names.tsimf 
    N.B. The mass names "mass0001", "mass0002", "mass0003",,, etc. may be different in different models. The arguments to the "sed"-command must be modified accordingly.


Input data commands

Input data is read in free format, valid separators between the input values are <space>, <comma>, <tab>, <equal sign> or <carriage return>. The commands can be written both in lower and upper case letters. The operation of the program is controlled by the commands described below; some of the commands also need arguments.



INFIL
Vampire *.run-file
On the third line of the *.run-file program VAMPIRE2GENSYS expects to find the reference to the Vampire *.veh-file. If the name of the *.veh-file starts with the letters C: they will be removed from the file name.
Declared= Character*132    Default= Blank

UTFIL
Output written in Gensys format.
Declared= Character*132    Default= Blank



Example of an input data file

Following example: Master.vampire2gensysf can be used as a master file:

##
##      Input data for program VAMPIRE2GENSYS 
##

  INFIL= Vampire_model_mod.veh
  UTFIL= Gensys_model.tsimf