use Simulation functions instead of global powder.cpp ones inside Simulation.cpp