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

Add missing actuator manually through measure

asked 2023-03-23 19:21:48 -0500

HoussemYounes's avatar

updated 2023-03-23 19:34:48 -0500

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-03-23 21:01:08 -0500

HoussemYounes's avatar

I found another way using:

q_sensible_heat_loss_act = OpenStudio::Model::EnergyManagementSystemActuator.new(pcud, "Component Zone Internal Gain", "Sensible Heat Gain Rate")
q_sensible_heat_loss_act.setName("#{pcud.name}_heatloss")
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2023-03-23 19:21:48 -0500

Seen: 62 times

Last updated: Mar 23 '23