Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Failed to overwrite actuator value by Energyplus API

Hey guys, I am trying to replace supply air temperature and flow rate by Energyplus API. The model I used is DOE Residential prototype building: heat pump-single family model. After a lot effort, now I finally get the handle successfully:

api.exchange.get_actuator_handle(state, "System Node Setpoint", "Temperature Setpoint", "ZONE INLET NODE_UNIT1")

570

api.exchange.get_actuator_handle(state, "System Node Setpoint", "Mass Flow Rate Setpoint", "ZONE INLET NODE_UNIT1")

576

Then I use:

api.runtime.callback_after_predictor_after_hvac_managers(state, my_function_)

api.exchange.set_actuator_value(state, Supflow_handle, 0.68)

api.exchange.set_actuator_value(state, Suptemp_handle, 15)

to overwrite my setpoint, which didn't work.

Is there anyone can give me some hints or direction?

(I guess although EP API has high priority to help us overwrite, but EP itself also needs to do air balance or adjust the load to meet thermostat setpoint. So they have some conflicts maybe?)

And I also want to make sure I am on the right way: My purpose is to replace the supply temp and flow, so firstly I try to find which point should I use. There are some bugs in the prototype idf, so I can't get the SVG which means I have no information about the HVAC connection. So I have to use text editor and read the nodes line by line, I make a plot in "https://drive.google.com/file/d/1mY9yV9sPLgIeFyWA4iBCQahWUFEPyOjG/view?usp=sharing", It seems there are a lot of points relative with supply temp and flow. like "Zone Inlet Node_unit1 ATInlet""Zone Equipment Inlet Node_unit1""Air Loop Outlet Node_unit1 " But what I want is the air supplied into the space. So I use "Zone Inlet Node_unit1", which is the last node before entering to the space. is that correct? I also find the OA didn't mixed with return air, which is pretty wired. So does that mean when I overwrite the supply flow and temp, I also need to consider the OA node. I need do some calculation here to get the real supply I want.

Thanks for your kind help!!

Failed to overwrite actuator value by Energyplus API

Hey guys, I am trying to replace supply air temperature and flow rate by Energyplus API. The model I used is DOE Residential prototype building: heat pump-single family model. After a lot effort, now I finally get the handle successfully:

api.exchange.get_actuator_handle(state, "System Node Setpoint", "Temperature Setpoint", "ZONE INLET NODE_UNIT1")

570

NODE_UNIT1") 570 api.exchange.get_actuator_handle(state, "System Node Setpoint", "Mass Flow Rate Setpoint", "ZONE INLET NODE_UNIT1")

576

NODE_UNIT1") 576

Then I use:

api.runtime.callback_after_predictor_after_hvac_managers(state, my_function_)

my_function_) api.exchange.set_actuator_value(state, Supflow_handle, 0.68)

0.68) api.exchange.set_actuator_value(state, Suptemp_handle, 15)

15)

to overwrite my setpoint, which didn't work.

Is there anyone can give me some hints or direction?

(I guess although EP API has high priority to help us overwrite, but EP itself also needs to do air balance or adjust the load to meet thermostat setpoint. So they have some conflicts maybe?)

And I also want to make sure I am on the right way: My purpose is to replace the supply temp and flow, so firstly I try to find which point should I use. There are some bugs in the prototype idf, so I can't get the SVG which means I have no information about the HVAC connection. So I have to use text editor and read the nodes line by line, I make a plot in "https://drive.google.com/file/d/1mY9yV9sPLgIeFyWA4iBCQahWUFEPyOjG/view?usp=sharing", It seems there are a lot of points relative with supply temp and flow. like "Zone Inlet Node_unit1 ATInlet""Zone Equipment Inlet Node_unit1""Air Loop Outlet Node_unit1 " But what I want is the air supplied into the space. So I use "Zone Inlet Node_unit1", which is the last node before entering to the space. is that correct? I also find the OA didn't mixed with return air, which is pretty wired. So does that mean when I overwrite the supply flow and temp, I also need to consider the OA node. I need do some calculation here to get the real supply I want.

Thanks for your kind help!! help!!

Failed to overwrite actuator value by Energyplus API

Hey guys, I am trying to replace supply air temperature and flow rate by Energyplus API. The model I used is DOE Residential prototype building: heat pump-single family model. After a lot effort, now I finally get the handle successfully:

api.exchange.get_actuator_handle(state, "System Node Setpoint", "Temperature Setpoint", "ZONE INLET NODE_UNIT1")

570

api.exchange.get_actuator_handle(state, "System Node Setpoint", "Mass Flow Rate Setpoint", "ZONE INLET NODE_UNIT1")

576

Then I use:

api.runtime.callback_after_predictor_after_hvac_managers(state, my_function_)

api.exchange.set_actuator_value(state, Supflow_handle, 0.68)

api.exchange.set_actuator_value(state, Suptemp_handle, 15)

to overwrite my setpoint, which didn't work.

Is there anyone can give me some hints or direction?

(I guess although EP API has high priority to help us overwrite, but EP itself also needs to do air balance or adjust the load to meet thermostat setpoint. So they have some conflicts maybe?)

And I also want to make sure I am on the right way: My purpose is to replace the supply temp and flow, so firstly I try to find which point should I use. There are some bugs in the prototype idf, so I can't get the SVG which means I have no information about the HVAC connection. So I have to use text editor and read the nodes line by line, I make a plot in "https://drive.google.com/file/d/1mY9yV9sPLgIeFyWA4iBCQahWUFEPyOjG/view?usp=sharing", It seems there are a lot of points relative with supply temp and flow. like "Zone Inlet Node_unit1 ATInlet""Zone Equipment Inlet Node_unit1""Air Loop Outlet Node_unit1 " But what I want is the air supplied into the space. So I use "Zone Inlet Node_unit1", which is the last node before entering to the space. is that correct? I also find the OA didn't mixed with return air, which is pretty wired. So does that mean when I overwrite the supply flow and temp, I also need to consider the OA node. I need do some calculation here to get the real supply I want.

Thanks for your kind help!!