Re: [fluka-discuss]: problem with Source Geometry

From: Andrea Fontana <andrea.fontana_at_pv.infn.it>
Date: Mon, 23 Sep 2019 11:29:12 +0200

Hello,
      a possible solution for your problem would be to define your
source region
by using the combinatorial geometry capabilities of FLUKA and then to
generate
your primary initial position within this region in the SOURCE.F user
routine.

For the first step, you can obtain your volume by the union of one cylinder
and two spheres for the endcaps.

For the second step, you could generate a uniformly distributed random
point in a volume slightly bigger than your source and only accept the
points that are within the region with the routine GEOREG:

SUBROUTINE GEOREG ( X, Y, Z, NREG, IDISC )
*     Input variables:                                                 *
*        X,Y,Z = coordinates of the particle                           *
*                                                                      *
*     Output variable:                                                 *
*        Nreg  = region number of the particle                         *
*        Idisc = flag=0 unless next region is blackhole*

I attach an example of the SOURCE.F and of the input file.

Please pay attention that this is a very rough approach that will
not give you a uniform and isotropic fluence source. A more complex
algorithm for this is needed, but you can start from this example.

Hope this helps.
Kind regards,
Andrea



Il 23/09/2019 00:48, r_rajabi ha scritto:
>
> Dear Experts and Users
> I want to define a source as cylinder.JPJ, source is a cylinder with a length of 1 cm
> and a diameter of 0.5 cm. It is welded by two semi- spherical with 0.5 cm diameter. I
> don't know how can I define it in source? what 's the settings in source routine?
> Thanks in advance
>

-- 
========================================================================
Dr. Andrea Fontana                    tel: +39 0382 987991
Istituto Nazionale                    fax: +39 0382 423241
di Fisica Nucleare
Sezione di Pavia                      e-mail: andrea.fontana_at_pv.infn.it
Via Bassi 6                           web   : www.pv.infn.it/~fontana
27100 PAVIA, Italy
========================================================================




__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info

Received on Mon Sep 23 2019 - 12:51:15 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 23 2019 - 12:51:23 CEST