Add missing actuator from manually through measure [closed]

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 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?

HoussemYounes's avatar
271
HoussemYounes
asked 2023-03-23 19:21:58 -0500, updated 2023-03-23 19:23:39 -0500
edit flag offensive 0 remove flag reopen merge delete

Closed for the following reason "duplicate question" by shorowit 2023-03-24 20:31:35 -0500

Comments

shorowit's avatar shorowit (2023-03-24 20:31:28 -0500) edit
add a comment see more comments