Define a cylinder isotropic source by source_newgen.f

Hey, FLUKA users,

I want to define an isotropic cylindrical source using the method in source_newgen.f.

According to the CYLI-VOL source and - Advanced Features and User Routines - FLUKA User Forum (cern.ch) and How to properly design complex source items? - Source Definition - FLUKA User Forum (cern.ch), I modified version 5.1 in the source_newgen_CYLI.f file, but the compilation resulted in an error. Could you please let me know what the reason might be?

I look forward to your response.

source_newgen_CYLI.f (21.4 KB)
cyli.flair (3.8 KB)

Dear @CSH,

If you check the output of your compilation you can see that some of the variables that you used are not defined. If you add this line, the compilation will work:

double precision, save :: rmax, theta, zmax, zmin, r

Cheers,
Mihaela

1 Like

Thanks your reply.

According to the suggestion: Dose rate calculations for isotropic cylindrical sources - Source Definition - FLUKA User Forum (cern.ch), I have modified my source_newgan_CYLI.f to perform isotropic sampling for CYLI-VOL, and it has been successfully built.

However, after plotting the projections of the source in the XYZ directions, the cylindrical source definition did not take effect, and it still shows as a point source. If it is a CYLI-VOL source, the projection at this time should be a straight line.
Could you please tell me what might be the issue?"

source_newgen_CYLI.f (21.8 KB)

Dear @CSH ,

it seems you uploaded a different source routine than the intended one, as this one doesn’t contain anything related to the cylindrical sampling.

Make sure when you run the simulation your compiled executable is selected, otherwise the default FLUKA executable is used.

Cheers,
David