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

Revision history [back]

Direct ON-OFF Access to Heating/Cooling System via Python API

Hello,

I've got the attached IDF file and I'd like to gain direct access to the heating/cooling systems via the API.

Specifically I'm trying to avoid the use of setpoints or any internal logic built into energy plus and use it solely as a solver rather than have it try and control things. My goal is to fiddle with a control system of my own devising and trying to determine what I have control of versus what energyplus is trying to do is more trouble than it is worth.

Long and short if I tell the system to turn on, I would like it to run (ideally at a specific power rating), if I want it off, I want it off. Regardless of if this hits whatever performance goals is set by Energy Plus.

ShortVersion:

If I have an HVACTEMPLATE:SYSTEM:UNITARYHEATPUMP:AIRTOAIR

How do I force

Heat Pump Heating Coil Gross Rated Capacity {W}

Supplemental Heating Coil Capacity {W}

Cooling Coil Gross Rated Total Capacity {W}

to be applied at my say so...presumably through the use of an actuator. However the below code seems to only allow the actuator to run, rather than forcing it to run.

coolingSch_hndl = api.exchange.get_actuator_handle(state, "Schedule:Constant", "Schedule Value", "CoolingSch") api.exchange.set_actuator_value(state, coolingSch_hndl, 1)

Direct ON-OFF Access to Heating/Cooling System via Python API

Hello,

I've got the attached IDF file and I'd like to gain direct access to the heating/cooling systems via the API.

Specifically I'm trying to avoid the use of setpoints or any internal logic built into energy plus and use it solely as a solver rather than have it try and control things. My goal is to fiddle with a control system of my own devising and trying to determine what I have control of versus what energyplus is trying to do is more trouble than it is worth.

Long and short if I tell the system to turn on, I would like it to run (ideally at a specific power rating), if I want it off, I want it off. Regardless of if this hits whatever performance goals is set by Energy Plus.

ShortVersion:

If I have an HVACTEMPLATE:SYSTEM:UNITARYHEATPUMP:AIRTOAIR

How do I force

Heat Pump Heating Coil Gross Rated Capacity {W}

Supplemental Heating Coil Capacity {W}

Cooling Coil Gross Rated Total Capacity {W}

to be applied at my say so...presumably through the use of an actuator. However the below code seems to only allow the actuator to run, rather than forcing it to run.

coolingSch_hndl = api.exchange.get_actuator_handle(state, "Schedule:Constant", "Schedule Value", "CoolingSch") api.exchange.set_actuator_value(state, coolingSch_hndl, 1)

Direct ON-OFF Access to Heating/Cooling System via Python API

Hello,

I've got the attached IDF file and I'd like to gain direct access to the heating/cooling systems via the API.

Specifically I'm trying to avoid the use of setpoints or any internal logic built into energy plus and use it solely as a solver rather than have it try and control things. My goal is to fiddle with a control system of my own devising and trying to determine what I have control of versus what energyplus is trying to do is more trouble than it is worth.

Long and short if I tell the system to turn on, I would like it to run (ideally at a specific power rating), if I want it off, I want it off. Regardless of if this hits whatever performance goals is set by Energy Plus.

ShortVersion:

If I have an HVACTEMPLATE:SYSTEM:UNITARYHEATPUMP:AIRTOAIR

How do I force

Heat Pump Heating Coil Gross Rated Capacity {W}

Supplemental Heating Coil Capacity {W}

Cooling Coil Gross Rated Total Capacity {W}

to be applied at my say so...presumably through the use of an actuator. However the below code seems to only allow the actuator to run, rather than forcing it to run.

coolingSch_hndl = api.exchange.get_actuator_handle(state, "Schedule:Constant", "Schedule Value", "CoolingSch")
api.exchange.set_actuator_value(state, coolingSch_hndl, 1)1)

Thanks

Direct ON-OFF Access to Heating/Cooling System via Python API

Hello,

I've got the attached IDF file and I'd like to gain direct access to the heating/cooling systems via the API.

Specifically I'm trying to avoid the use of setpoints or any internal logic built into energy plus and use it solely as a solver rather than have it try and control things. My goal is to fiddle with a control system of my own devising and trying to determine what I have control of versus what energyplus is trying to do is more trouble than it is worth.

Long and short if I tell the system to turn on, I would like it to run (ideally at a specific power rating), if I want it off, I want it off. Regardless of if this hits whatever performance goals is set by Energy Plus.

ShortVersion:

If I have an HVACTEMPLATE:SYSTEM:UNITARYHEATPUMP:AIRTOAIR

How do I force

  • Heat Pump Heating Coil Gross Rated Capacity {W}

  • Supplemental Heating Coil Capacity {W}

  • Cooling Coil Gross Rated Total Capacity {W}

to be applied at my say so...presumably through the use of an actuator. However the below code seems to only allow the actuator to run, rather than forcing it to run.

coolingSch_hndl = api.exchange.get_actuator_handle(state, "Schedule:Constant", "Schedule Value", "CoolingSch")
api.exchange.set_actuator_value(state, coolingSch_hndl, 1)

Thanks