First time here? Check out the Help page!

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 2 years ago

HoussemYounes's avatar

updated 2 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 2 years ago

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")
Preview: (hide)
link

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: 2 years ago

Seen: 84 times

Last updated: Mar 23 '23