First time here? Check out the Help page!
1 | initial version |
Following the advice from MatthewSteen, the following snippet in a simple EnergyPlus measure at least makes the model run to completion now. I have not had a chance to check the plausibility of the results. That's an entirely different effort.
pv_chargers = workspace.getObjectsByType('ElectricLoadCenter:Storage:Converter'.to_IddObjectType)
runner.registerFinalCondition("The model started with #{pv_chargers.size} PV Chargers.")
pv_charger = pv_chargers.first
runner.registerInfo("Initial PV Charger #{pv_charger}")
simple_fixed_efficiency = 1.0
design_maximum_continuous_input_power = pv_charger.getDouble(3)
pv_charger.setDouble(3, simple_fixed_efficiency)
pv_charger.setDouble(4, design_maximum_continuous_input_power.to_f)
runner.registerInfo("Final PV Charger #{pv_charger}")
pv_chargers = workspace.getObjectsByType('ElectricLoadCenter:Storage:Converter'.to_IddObjectType)
runner.registerFinalCondition("The model finished with #{pv_chargers.size} PV Chargers.")
Note, EnergyPlus does not like zero efficiencies.