One piece of code for running SN analogue calculations