for energy sim and plot