Re: FLUKA: Help me...


To fluka-discuss@cern.ch
From Alberto Fasso' <Alberto.Fasso@cern.ch>
Date Tue, 28 Aug 2001 17:46:40 +0200 (CEST)
In-Reply-To <000b01c12fd2$44a3aee0$902868a6@hanyang.ac.kr >
Reply-To "Alberto Fasso'" <Alberto.Fasso@cern.ch>
Sender owner-fluka-discuss@listbox.cern.ch

There are at least two types of errors in your input file (maybe
there are more, but I suggest that you start correcting these).
An example of both is in your line 5:
*23456789 123456789 123456789 123456789 123456789 123456789 123456789 
123456789
BEAM       400.      0.0       0.0        2.0e+8    2.0e+8    1.0      PROTON
                                          ^^^^^^   ^^^^^^^             ^^^^^^

1) All SDUM values must start in column 71, not 72
2) Floating point numbers with an exponent, such as 2.0e+8, must be
   right-aligned in their field (in the example above, they are read as
   2.0e+80)

Both errors occur many times in your file (the second one also in
the geometry input): please check them all.

Please consider the following excerpts from the manual:

              11} Description of FLUKA formatted output
.......................................................................
                            Main output
                            -----------
.......................................................................
 - A straight echo of the input cards
      Each input line is echoed in output, but not character by character.
      The input WHATs and SDUMs are read, and then written with a
      different format. Any alignment error shows up as a number or a
      character string different from the one intended: therefore in case
      of problems checking this part of the output is more effective than
      checking the input itself.

.........................................................................
.........................................................................
 19} A beginner's guide to prepare an input file for some typical cases

.........................................................................
 In addition to the simple echo, an
"interpreted" feedback to all
 commands is provided in the next section of the standard output.
 Checking this part of the output is also very useful, because it
 helps making sure that the user's intentions have been expressed
 correctly and understood by the code.
.........................................................................

                              Alignment
                              ---------
 Be careful to align properly keywords and numbers. Format is not free,
 unless a command FREE is issued at the beginning of input. Even in
 that case, however, the part of the input describing the geometry must
 be written in fixed format (different from the general FLUKA input
 format, see 10}).  
.........................................................................
 In numerical fields, blanks are treated as zero. Therefore, numbers
 written with a decimal period and without an exponent (e.g. 1.2345)
 can be placed anywhere inside their respective format fields, but
 if the decimal point is missing or if they are written in exponential
 notation (e.g. 2.3E5), they must aligned to the right.
.........................................................................
 Keywords (character strings such as BEAM and PROTON) must be aligned
 to the left and must be in upper case. An exception is the continuation
 character & used in some commands, which can be placed anywhere within
 its 10-characters field.

Best regards,

      Alberto

On Wed, 29 Aug 2001, [ks_c_5601-1987] À¯¼ÛÀç wrote:

> Please check my input file. 
> I think there are many faults. 
> I want to calculate cosmic ray spectrum with FLUKA.
> But I'm just beginner. 
> Could you comment to me. 
> And If my input file have faults, Please correct it.
> And
> I cann't get meaningful outputs. 
> Which card add to the input file?
> Please show me some exemple.
> Thanks
> Please don't tell me "Read mannul"....
> I read a mannual already.
> 

-- 
Alberto Fassò
CERN-EP/AIP, CH-1211 Geneve 23 (Switzerland)
Phone: (41 22) 767 2398    Fax: (41 22) 767 9480   Alberto.Fasso@cern.ch


Your name :
Your email :
Subject :
Body :
 

Partial thread listing: