# Re: RE: The maximum number of binnings in USRBIN

From: <yyc2011_at_mail.ustc.edu.cn>
Date: Sun, 1 Sep 2013 19:39:44 +0800 (CST)

Dear Anton,

First, you say "maximum number of binnings" refers to the number of USRBINs I can have.What is the meaning?It means we can have many
usrbins,one of usrbin about energy deposition,one of usrbin about fluence,one of usrbin about neutron balance,and so on.I understand
it,Right?

Second,you say "It is not important how many bins you have per USRBIN, but how many you have in total for all USRBINs".I don't
understand what you say.Could you give me a example or a detailed explain?

Third,you say "your smallest geometric structure is 20 um in x and 6 mm in y, while you aim for a bin size of less than 1 um in both
x and y".At this point,I make some changes in my input file.In the new input file,the smallest geometric structure is still 20 um in
x and 6 mm in y,but my aim for a bin size of 4 um in x and 200 um in y.Do you think I was right in doing this?

Fourth, my primary electrons energy is 160 KeV.The transport cut-off energy is 100KeV for electrons.You ask me to consider if this
difference between primary energy and cut is sufficient for my problem.At this point,I want to know how can I estimate if this
difference between primary energy and cut is sufficient for my problem".Meanwhile,I add the EMFCUT card in my new input file.Please
see my new input file.And,I will very happy if you give me some suggestions.

Fifth,you say "if I have such low primary electron energies and um geometries, I should consider applying single scattering."In my
new input file,I add the MULSOPT card.This is the first time I use this card.Could you see my input file?Is it wrong?Maybe You can
give me some examples.

Thanks for your time.Thanks for any suggestions.

Yours,
Chenyuan

> -----Original E-mail-----
> From: "Anton Lechner" <Anton.Lechner_at_cern.ch>
> Sent Time: 2013-8-31 19:30:33
> To: "yyc2011_at_mail.ustc.edu.cn" <yyc2011_at_mail.ustc.edu.cn>, "fluka-discuss_at_fluka.org" <fluka-discuss_at_fluka.org>
> Cc:
> Subject: RE: The maximum number of binnings in USRBIN
>
> Dear Chenyuan,
>
> You misunderstood the comment in the manual: "maximum number of binnings" refers to the number of USRBINs you can have and not to the number of bins (see Manual: "A 'binning' is a regular spatial mesh"). The number of bins you can have is limited by the memory available for scorings:
> *) See following answer on the FLUKA discuss list: http://www.fluka.org/web_archive/earchive/new-fluka-discuss/5260.html: the memory allocation is hard-wired in the library and is 360 MB
> *) It is not important how many bins you have per USRBIN, but how many you have in total for all USRBINs
> *) Your mesh of 10000*10000*1 occupies 800 MB and is hence far beyond the limit of allocated memory
>
> Apart from this, I have some further comments:
> *) Even if such a large number of bins would be possible, you should ask yourself if it would make sense. First, your smallest geometric structure is 20 um in x and 6 mm in y, while you aim for a bin size of less than 1 um in both x and y. Secondly, such a large number of bins would probably be challenging in terms of statistical error.
> *) Your primary electrons have an energy of 160 keV, but the transport cut-off and production threshold set by PRECISIO is 100 keV. You should ask yourself if this difference between primary energy and cut is sufficient for your problem. You can set lower cut values with the EMFCUT card.
> *) Note that if you have such low primary electron energies and um geometries, you should consider applying single scattering. I also quote the FLUKA manual: "The minimum recommended energy for PRIMARY electrons is about 50 to 100 keV for low-Z materials and 100-200 keV for heavy materials, unless the single scattering algorithm is used. Single scattering transport allows to overcome most of the limitations at low energy for the heaviest materials at the price of some increase in CPU time."
>
> Cheers, Anton
>
>
>
> ________________________________________
> From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on behalf of yyc2011_at_mail.ustc.edu.cn [yyc2011_at_mail.ustc.edu.cn]
> Sent: 31 August 2013 05:19
> To: fluka-discuss_at_fluka.org
> Subject: The maximum number of binnings in USRBIN
>
> Dear Fluka experts,
>
> I have a question about the maximum number of binnings that I can define in USRBIN.It seems to go wrong when I set the number of
> binnings=10000 or 8000 in my input file.But when I set the number of binnings=1000,it runs normal. Meanwhile,I note in the Fluka
> manual"The maximum number of binnings that the user can define is 400. This value can be changed by modifying the parameter MXUSBN
> in member USRBIN of the flukapro library or directory and then re-compiling and linking Fluka." In the manual,It says the maximum
> number of binnings that the user can define is 400.But when I set the number of binnings=1000,I do not modify the parameter
> MXUSBN.But the fluka runs normal.The attachments are my input file and .out file.Could you help me?
>
> Thanks for any suggestions.
>
> Yours
> Chenyuan
>
Received on Sun Sep 01 2013 - 17:41:18 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 01 2013 - 17:41:19 CEST