nsim function

Extract or set the value of the Nsim slot.