Last version:
FLUKA 2023.3.4, April 10th 2024
(last respin 2023.3.4)
flair-2.3-0d 13-Sep-2023

News:

-- Fluka Release
( 10.04.2024 )

FLUKA 2023.3.4 has been released.


font_small font_med font_big print_ascii

[ <--- prev -- ]  [ HOME ]  [ -- next ---> ]

[ full index ]


FREE

activates free-format input

See also FIXED, GLOBAL

WHAT(1-6) and SDUM are not used.

     Default (option FREE not given): input must follow the standard
             FLUKA format (A8,2X,6E10.0,A8) (see (6)), unless free format has
             been chosen via a GLOBAL command.

Notes:

  • 1) FREE can be given at any point in input, excluding the geometry. All successive input (excepted the geometry) will be read in free format, VOXELS and LATTICE cards included, until a FIXED command will possibly re-establish fixed-format input.

  • 2) In free-format input, keywords, WHATs and SDUM do not need to be aligned in columns but can be written anywhere on the input line, alternating with "separators" in a manner similar to that of list-oriented format in Fortran (but character strings - keywords and SDUMs - must NOT be put between quotes!). A separator is any one of the following:
  • One of the five characters ',' (comma), ';' (semicolon),
    '/' (slash), '\' (backslash), ':' (colon), preceded or not by one or more blanks, and followed or not by one or more blanks
  • One or more successive blanks without any non-blank separator

  • 3) Different separators may be used on the same line.

  • 4) If a non-blank separator is immediately followed by another one (with or without blanks in between), a value of 0.0 is assumed to be given between them.

  • 5) Zero values must be given explicitly or as empty places between two non-blank separators as explained above.

  • 6) Geometry input (i.e. input between GEOBEGIN and GEOEND cards not included) must still respect the column format described in (8), except if free-format geometry input has been requested by GLOBAL.

  • 7) PLOTGEOM input, whether in a separate file PLG.GFXINDAT or directly after a PLOTGEOM card in standard input, must still be formatted as shown in the description of that option.

  • 8) If FREE has been issued, from then on constants must be written without any blank imbedded (e.g. 5.3 E-5 is not allowed, but must be written 5.3E-5 or 5.30E-5)

  • 9) Free format, if requested, applies to option cards (of the form KEYWORD WHAT(1) WHAT(2) ... WHAT(6) SDUM) but not to any data card specific to certain options (for instance the card following TITLE)

  • 10) Free format can be requested also by option GLOBAL, but extended to the whole input and not only from the point where the command is issued. GLOBAL can also be used to request free format geometry input.

Example 1:

The following fixed-format input line

 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
 BEAM       20.                     0.0   -1.0  E-2     -0.02    1.0   PION+
 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8

is equivalent to

 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
 FREE
 BEAM  20. 0.0      0.0   -1.0E-2  -0.02 1.0  PION+
 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8

or to

 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
 FREE
 BEAM, 20.,0.0   ,  0.0,  -1.0E-2; -0.02 1.0 /PION+   ! 20 GeV/c momentum?
 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8

etc... Note the possibility to insert comments at the end of the line!

Example 2: At any momemnt the {\zz FIXED} card re-establishes the fixed-format input mode.

 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
 FREE
 BEAM, 20.,0.0   ,  0.0,  -1.0E-2; -0.02 1.0 /PION+   ! 20 GeV/c momentum?
 FIXED
 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
 BEAMPOS           0.        0.      200.    -0.012 0.0652336          NEGATIVE
 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8

© FLUKA Team 2000–2024

Informativa cookies