simulation functions implemented for fixed and variable time.  normalisation function implemented for arrays