Monte-Carlo simulations for instrumentation at pulsed and continuous sources