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

Add missing actuator from manually through measure

Hi, I have a model measure that adds a PlantComponent:UserDefined object to an openstudio model. One of the actuators for this object in EnergyPlus is the 'Component Zone Internal Gain' actuator, used to model skin losses and assign them to an ambient zone as an internal heat gain rate. This actuators seems to be missing in the API documentation for the PlantComponent:UserDefined object. In IDF the defintion of this actuator would be :

EnergyManagementSystem:Actuator,
Q_sens_HL,               !- Name
PCUD1,          !- Actuated Component Unique Name
Component Zone Internal Gain,  !- Actuated Component Type
Sensible Heat Gain Rate; !- Actuated Component Control Type

I know that in an Energyplus measure, adding the actuator would look like :

string_objects = [] 
string_objects << "
EnergyManagementSystem:Actuator,
    Q_sens_HL,
    PCUD1,
    Component Zone Internal Gain,
    Sensible Heat Gain Rate;
"
string_objects.each do |o|
idfObject = OpenStudio::IdfObject::load(o)
object = idfObject.get
wsObject = workspace.addObject(object)
end

However, I have a model measure, I tried replacing 'workspace' by 'model' didn't work. Is there a way to inject this object automatically from within the model measure?

Add missing actuator from manually through measure

Hi, I have a model measure that adds a PlantComponent:UserDefined object to an openstudio model. One of the actuators for this object in EnergyPlus is the 'Component Zone Internal Gain' actuator, used to model skin losses and assign them to an ambient zone as an internal heat gain rate. This actuators actuator seems to be missing in the API documentation for the PlantComponent:UserDefined object. In IDF the defintion of this actuator would be :

EnergyManagementSystem:Actuator,
Q_sens_HL,               !- Name
PCUD1,          !- Actuated Component Unique Name
Component Zone Internal Gain,  !- Actuated Component Type
Sensible Heat Gain Rate; !- Actuated Component Control Type

I know that in an Energyplus measure, adding the actuator would look like :

string_objects = [] 
string_objects << "
EnergyManagementSystem:Actuator,
    Q_sens_HL,
    PCUD1,
    Component Zone Internal Gain,
    Sensible Heat Gain Rate;
"
string_objects.each do |o|
idfObject = OpenStudio::IdfObject::load(o)
object = idfObject.get
wsObject = workspace.addObject(object)
end

However, I have a model measure, I tried replacing 'workspace' by 'model' didn't work. Is there a way to inject this object automatically from within the model measure? measure?