Versions
Please provide the used software versions.
FLUKA:4.5.0
Flair:3.4.2
Operating system: Ubuntu 25.04 virtual machine
Compiler: Gnu Fortran/gcc Ubuntu 14.2.0
Description
Dear all, I want to simulate marinelli beaker that contains isotopes in it using source_newgen_with_regionsource but first, I want to try source routine for cylindrical source and want to be sure that my steps are correct. So I can move forward.
First, I run simulation with original source routine. Its fluence result for photons are given in Figure 1. When I look at the photon fluence from top (z axis), the shape is square. It is probably because i selected Xmin,Xmax, Ymin, Ymax and Zmin, Zmax for source definition and my source becomes cubic shape. There is circular shape in Figure 1, I guess it is due to interaction of source with cylindrical container walls.
I tried it with 1 million particles too, but results for fluence also same.
I tried to convert coordinates to cylindrical by adding below code to source routine (below code is taken from previous topics ) :
rmax = 6.799998D0 zmin = -3.051062D0 zmax = 0.518998D0 theta = FLRNDM(xdummy)*TWOPIP r=rmax*FLRNDM(xdummy) coordinate_x = r*cos(theta) coordinate_y = r*sin(theta) coordinate_z = FLRNDM(xdummy)*(zmax-zmin)+zmin
I manage to compile source_newgen_with_regionsource with this changes but when I press “run” button, simulation seems running but it is actually not running. When I made error in source routine, even if it compiles, I had similar problems before.
Probably it is something easy but I didn’t find solution yet. I am playing with it for a long time. Could you please guide me? Thank you.
Note: Only source_newgen_with_regionsource.f files are different, the rest of fluka files are the same.
Input files
Figure 1,
de.flair (5.9 KB)
de.inp (6.8 KB)
source_newgen_with_regionsource.f (20.6 KB)
Fluka input file with original source routine,
source_newgen_with_regionsource.f (20.9 KB)
the source routine i tried to modify.




