Dear Experts,
I am trying to define a source that will (1) Use an external spectrum and (2) Have beam that is rectangular in X and Y (45 mm in along the X axis and 1 mm along the Y axis). Using the new source file template (Modified on 17 November 2020 by David Horvath), I can use the external spectrum. The new ‘source.f’ does read an external spectrum file that I pass to it and takes inputs from the BEAM card as mentioned on the comments of the new ‘source.f’ file. However, it only works when I select “isotropic” beam on the BEAM card. If I define a rectangular beam from the “BEAM” card, the result is a narrow pencil beam, not a rectangular beam. Most probably I am missing something.
Only some of the parameters set on the BEAM card passed to the source routine, the X-Y beam shape is not one of them. You will have to manually set / sample the actual starting position of a primary in section 5.1. of the routine.
No luck so far. Also tried defining some parameters on the BEAMPOS card as per the instruction suggest ("!Coordinates set on the BEAMPOS card if present, (0.0D0, 0.0D0, 0.0D0) otherwise"), but no luck. FLAIR returns errors.