First time here? Check out the Help page!
1 | initial version |
I suggest running the API in Library Mode, that way you have a script that calls a function that runs the simulation, and after that function call you can call whatever other function to dispose resources. You could call delete_state, which frees the memory, after your simulation completes, but I think this may happen automatically (?) at the end of a simulation.
import EnergyPlusAPI as eplus_api
eplus_api.runtime.run_energyplus(state)
clear_resources()