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:
- Before running program VAMPIRE2GENSYS:
- Make a copy of the Vampire input data file:
cp Vampire_model_orig.veh Vampire_model_mod.veh
- Open file Vampire_model_mod.veh with "xed" or "opdiff" and
remove or change all special characters.
Following special characters are not allowed:œ, ®, $, @ and ².
- Under main-command *FRICTION, remove all coefficients of friction under tension.
- Remove or comment out all couplings that in the .veh-file has been created with sub-command LINK.
- Create file Master.vampire2gensysf, see the file in the Example below.
- Run program vampire2gensys with command:
vampire2gensys Master.vampire2gensysf 2>&1 | tee vampire2gensys.out
- Open file vampire2gensys.out and check for potential errors and warnings.
- Open file Gensys_model.tsimf and do some manual editing in the file:
- Manually Copy the comments från the .veh-file and put a #-character in front of them
- Remove the offset "Delta" for all couplings that has a given direction of action x,y,z,f,k,p or m.
- Move dampers in the primary suspension to the center of the wheelset.
Alternatively model the axleboxes as separate masses.
- Manually create couplings in file Gensys_model.tsimf, that in the .veh-file has been created with sub-command LINK.
- 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