Note: on Sun platforms, the extension of all Fluka *.f files must be replaced by *.F.
Note: the lfluka script uses the Fortran compiler whose executable has a slightly different name on different Unix platforms. The lfluka script resides in the FLUPRO/flutil directory.
STEP 1
The installed version of FLUKA
is now ready-to-run.
First you specify your inputs
for the FLUKA run. You do this by creating a *.inp file. The *.inp
file is placed in the FLUPRO directory.
Look at the mu.inp in
the FLUPRO directory to see an example of a *.inp file. A description of the used format
for the *.inp file is given in the
FLUKA manual.
The *.inp file is a
series of FORTRAN input sets called option cards, together with
a START card to start FLUKA execution and a STOP card to
stop execution. The option cards include options like MATERIAL,
GEO(metry)BEGIN, GEOEND, SCORE, STEPSIZE and TITLE which you will want
to use in most simulations. The full list of available option cards
and their defaults and formats is given in the manual section on the
FLUKA input options.
In the default mode, *.inp
must be formatted into columns as described in the Fluka manual. Free
format is evoked by the FREE
option.
Some option cards must
be immediately followed in
*.inp by a data card. The data card must also
be formatted into columns unless the FREE option is evoked. Full requirements
for the data cards are given in the Fluka manual:
Description of available input options
The physical units used in
FLUKA input and output data are listed in the Fluka manual:
General features of FLUKA input
STEP 2
Electromagnetic
Transport Inputs:
If you want FLUKA to transport
electromagnetic particles in detail (i.e. the
EMF
option), you will also need to create a *.pemf file before you run
FLUKA. The *.pemf file preprocesses the electromagnetic cross-sections.
The *.pemf file is described
in detail in the Fluka manual:
PEMF: a preprocessor of electromagnetic
cross sections for FLUKA and:
Instructions for using PEMF.
To create the *.pemf
file, you first set up an appropriate *.peg file in the directory
FLUPRO/fluka/pemf. Specifications for the *.peg file are given in
the Fluka manual:
Instructions for using PEMF.
Look at the marl.peg in the FLUPRO/pemf directory to see an example of a *.peg file.
Next, run the rpemf
script in the FLUPRO/flutil directory to produce a (filename).pemf
file from the (filename).peg file.
To do this, type
$rpemf (filename)
The .peg extension is
omitted in the rpemf command line. rpemf creates the file
(filename).pemf
in
the FLUPRO/fluka/pemf directory.
To run FLUKA with the EMF option,
use a rfluka command line which includes the
-p option and the (filename).pemf file
eg.
$rfluka -p(filename) (input
filename)
The .pemf extension
is omitted in the rfluka command line.
STEP 3
Once you have created the
(input
filename).inp file, and a *.pemf
file if required, use the command line
$rfluka <options> (input
filename)
to run FLUKA. The rfluka
options are listed below.
The output
files are placed in the directory from which you call rfluka. You
will probably want to create a new subdirectory for this purpose because
the output can be extensive. Check your output directory is in the PATH.
The rfluka script can
be used to run the code interactively or through a batch queue. The rfluka
script is located in the FLUPRO/flutil directory and contains all relevant
I/O file definitions.
Further information can also
be found in README file in the FLUPRO directory.
$rfluka -h
Each
Fluka run generates two types of output files: user-generated Data
Output Files and diagnostic Standard Output
Files. The files are placed in the directory from which you called
rfluka.
A full
set of output files are written at the end of each cycle of a Fluka
run.
Each Fluka
run also creates a temporary directory called
fluka_XXXXX
This directory
is automatically deleted at the end of the run, unless the run is terminated
by an error.
The
user-generated
Data Output Files are the output data which you specified in the *.inp
input file. A full description of user-generated output is found in the
FLUKA manual: Description of FLUKA formatted output
If your
rfluka
input
file was called (input filename).inp, the Data Output Files are
named
(input filename)QQQ_fort.XX
where
QQQ
is the integer number of the cycle and XX >78 is a Fortran unit
number.
The Data
Output Files may be formatted or unformatted. The output can be manipulated
using the user routines in the FLUPRO/flutil directory or other user-written
routines. See the README file in the FLUPRO directory for an introduction
to auxiliary analysis routines.
The physical units used in
Fluka output data are given in the Fluka manual:
General features of FLUKA input
The Standard
Output Files are mainly diagnostic files. They are automatically
generated each cycle.
If your
rfluka
input file was called (input filename).inp, the four Standard Output
Files are:
How
to optionally compile routines:
If you edit a routine, you
will have to re-compile and then re-link the code before running FLUKA.
The fff script in the
FLUPRO/flutil directory is used to compile an individual routine.
To compile a Fortran routine
called (filename).f, type
$fff (filename)
without the .f
extension.
This creates the Fortran object file
(filename).o
in the same directory as the
routine.
Note:
the
If a routine has been editted
and re-compiled, or you wish to link to optional object files or libraries,
the FLUKA code will have to be re-linked before running FLUKA.
The lfluka script in
the FLUPRO/flutil directory links all routines into an executable.
Online help on the lfluka
parameters is available by typing
$lfluka -h
lfluka creates the Fluka
executable flukahp and places it in the FLUPRO directory.
Note:
the lfluka script uses the Fortran compiler f77. On
some Linux platforms, you will need to replace f77 by g77
in the lfluka and
fff scripts.