Instructions of FLUKA installation -------------------------------------------------------- UPDATED===10.12.2008.16.52.27 TITLE===Instructions of FLUKA installation TYPE===delete --------------------------------------------------------

To install FLUKA about 500 Mbyte of disk space are needed. In addition, a FORTRAN compiler suitable for your platform is required to generate the FLUKA executable(s). At this moment, the only distributed version of FLUKA requires g77.

For the purpose of these instructions, you are supposed to use a Unix system. After a successful download into an arbitrary directory (e.g. /somePath), you will find there a compressed Unix tar file containing the FLUKA package (something like fluka2008.3-linuxAA.tar.gz, which we will call here fluka.tar.gz).

IMPORTANT Please create a dedicated directory for the FLUKA installation (e.g. Flukacode in /somePath)

		cd /somePath
mkdir Flukacode
BEFORE unpacking, move into this directory the file you have just downloaded
		mv fluka.tar.gz Flukacode
	

The following commands will perform the installation

		cd Flukacode
		tar -xzvf fluka.tar.gz
		setenv FLUPRO /somePath/Flukacode
		make
	

The last but one command line implements an environment variable ($FLUPRO) which is required by the scripts which link and run FLUKA (they are $FLUPRO/flutil/lfluka and $FLUPRO/flutil/rfluka, respectively). This line is depending on the Unix SHELL one uses. The above example is the correct syntax for tcsh/csh. In case of bash the equivalent command would read

		export FLUPRO=/somePath/Flukacode
	

You may want to incorporate this command in your shell configuration file (such as .tcshrc or .bashrc in $HOME) to avoid to type it on each new terminal window.

The last command line (make) produces the standard FLUKA executable (flukahp) in the $FLUPRO directory and all the executables of the postprocessing tools available in the $FLUPRO/flutil subdirectory.

In order to be able to perform nucleus-nucleus interactions, a special executable linking the event generator libraries already included in the distributed package, is needed. To create it, the script ldpmqmd in $FLUPRO/flutil has to be launched:

		$FLUPRO/flutil/ldpmqmd
	

The default name of the executable coming out is flukadpm3. You can set a different name through the option - o. This is useful when linking in addition one's own user routines. A list of options supported by the script lfluka (internally used by ldpmqmd) is shown issuing the command

		$FLUPRO/flutil/lfluka -h
	

Note that the twin script ldpm2qmd allows to link a previous version of the DPMJET event generator (DPMJET-2.53 instead of DPMJET-3).


In order to run FLUKA, one has to prepare an input file (e.g. myproblem.inp) looking like the examples available in the $FLUPRO directory. It is recommended to work/run in a directory different from the installation one, i.e. outside $FLUPRO. Detailed instructions for building a FLUKA input can be found in the Section 2.2 of the Manual. The run is started launching the script rfluka

		$FLUPRO/flutil/rfluka myproblem [without ".inp"]
	

The standard executable $FLUPRO/flukahp will be used. A different executable to be used can be specified through the option - e. A list of options supported by the script rfluka is shown issuing the command

		$FLUPRO/flutil/rfluka -h
	

A lecture focused on installing and running FLUKA is provided as a part of the user course material (Installation, Release Notes).

With the FLUKA package, you received a current version of the FLUKA manual. The manual is the major source of information/help for preparing and running FLUKA. It is available also online.

Take a look also at the RELEASE-NOTES.

Always a good way to get started with a new software tool is to study well documented examples. We are trying to provide a series of such examples for various physics conditions.