Re: [fluka-discuss]: How to define the source in source.f

From: Francesc Salvat-Pujol <francesc.salvat.pujol_at_cern.ch>
Date: Mon, 13 Aug 2018 09:36:06 +0200

Dear Zhou Yang,

Assuming you want to sample positions distributed homogeneously in a
rectangular parallellepiped volume of sides DX, DY, DZ (not necessarily
equal), you can consider something like

      DX = 1.D+01
      DY = 2.D+01
      DZ = 3.D+01
      XFLK (NPFLKA) = XBEAM + DX * FLRNDM(DUMVA1)
      YFLK (NPFLKA) = YBEAM + DY * FLRNDM(DUMVA2)
      ZFLK (NPFLKA) = ZBEAM + DZ * FLRNDM(DUMVA3)

Adapt to whatever you need. Also make sure you set the direction
cosines TXFLK,TYFLK,TZFLK as needed. For the energy spectrum, apply the
same logics to whatever spectrum you need (see the manual notes under
source.f for a few practical pointers on sampling).

Cesc


On Mon, Aug 13 2018, at 10:15 +0800, 周洋 wrote:
>
>Dear FLUKA experts
>
> I want to define an extended source by using SOURCE card. Its structure is cuboid. Its energy ranges from 1kev to 1Mev like white-light. So how should I write in source.f?
>
> Looking forward to your reply!
>
>Zhou Yang

--
Francesc Salvat Pujol
CERN-EN/STI
CH-1211 Geneva 23
Switzerland
Tel: +41 22 76 64011
Fax: +41 22 76 69474
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Mon Aug 13 2018 - 11:01:59 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 13 2018 - 11:02:01 CEST