How to insert zenith angle info on a source.f from txt file

Dear Georgios,

please take a look the source routine posted here:

  1. You can replicate the same reading and sampling parts for the zenith angle, then modify the direction cosine variables as needed.
    The SFECFE subroutine will return a random direction in 2D.

    CALL SFECFE(SINT, COST)
    
  2. Unfortunately the volumetric beam parameters are not inherited, only the point defined on the BEAMPOS card via the XBEAM, YBEAM and ZBEAM variables. If you want a rectangle as a source plane, you will have to sample it by yourself.

    You can use the FLRNMD(XDUMMY) function to get a random number between [0,1) sampled uniformly.

Cheers,
David