preprocessSettings function

Preprocess the simulation settings.