Documentation for the flux stage of PISA