I am using FLAIR and trying to define the spatial characteristics of a beam through a USRBIN .bnn output file. I have read the SPECSOUR/BIN-SOUR card and the following posts: 1, 2, yet some things still remain unclear. Can you please explain how to correctly apply the BIN-SOUR card? If interested, to test the SPEC-SOUR card I took the following steps:
After generating my USRBIN file (for ENERGY deposition), I created an exact copy of my flair project. Then I removed any BEAM and BEAMPOS information but kept the primary type. Geometry, material definition, sourcing etc were all kept the same. I used the OPEN card to read the generated USRBIN file and added the respective file unit to SPEC-SOUR.
As a second question, is it possible in FLUKA/FLAIR to read real experimental data of absorbed energy and generate beam information? If so, any help on how this can be done, would be greatly appreciated.
Thank you for the quick reply. I followed the steps you mentioned and there are still errors. Here is what I did
I created a USRBIN file in unit 53 and then opened it via the OPEN card. Geometry, materials and scoring were kept the same.
Regarding my second question, we have a material that has absorbed a certain amount of dose through a beam. Is it possible to translate the experimental data (amount of dose absorbed in different points of said material) to a .bnn file and have Fluka extract the beam profile that was used?
Without knowing what the actual error message is, it’s not possible to determine the problem. Could you upload your .flair project files for both steps?
In theory it would be possible to create a .bnn file from measured data, but I’m not aware if such a tool exists. Maybe it would be easier to use a source routine to sample from data.
Of course, here are the two .flair projects. They are a simple case of an electron beam passing through radiochromic films. RFC.flair is the one I use to generate the USRBIN file and RFC_OPEN.flair is the one with the OPEN card that results in error.
The error message (which is located in the .err file) in your case is:
Abort called from SOUBIN reason Not enough memory to load USRBIN Run stopped!
Which means, you need to reduce the total number of bins in the USRBIN scoring you are using as a source.
Alternatively you can increase the allocated memory using a GLOBAL card with the Memory option set to ~1.5e8.