Failed to overwrite actuator value by Energyplus API

asked 2022-07-03 16:23:11 -0500

zertion's avatar

updated 2022-07-04 11:06:37 -0500

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/1mY9y...", 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!!

edit retag flag offensive close merge delete

Comments

I almost figured it out(I reset the setpoint). I think thermostat has the highest control level, which failed me to overwrite the supply temp and flow. No matter how I replace the actuator, nothing will happen. Outside variables are easy to replace, just the variable inside. Still looking for some more efficient way.

zertion's avatar zertion  ( 2022-07-07 15:29:53 -0500 )edit