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

add new actuators by changing the source code of EnergyPlus

asked 2019-06-10 14:10:27 -0600

building_performance's avatar

updated 2019-06-13 07:23:41 -0600

I am working on an ASHRAE project for demand control ventilation. I need to add three actuators by changing the source code of EnergyPlus:

• Minimum Primary Air Flow Fraction in module AirTerminal:SingleDuct:SeriesPIU:Reheat

• Minimum Primary Air Flow Fraction in module AirTerminal:SingleDuct:ParallelPIU

• Zone Minimum Air Flow Fraction in module AirTerminal:DualDuct:VAV

Please advise what modules and what procedure to follow to add the 3 actuators? I already have the software environment ready to build EnergyPlus.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
7

answered 2019-06-13 17:19:05 -0600

updated 2019-06-14 11:00:16 -0600

To learn how to add a new actuator, search the code for the name of an existing actuator. For example, search for "AirTerminal:SingleDuct:Uncontrolled" and find SetupEMSActuator in the search results:

SetupEMSActuator("AirTerminal:SingleDuct:Uncontrolled",
DirectAir(Loop).EquipID,
"Mass Flow Rate",
"[kg/s]",
DirectAir(Loop).EMSOverrideAirFlow,
DirectAir(Loop).EMSMassFlowRateValue);

This is in DirectAirManager.cc. Search that source file for the last two variables above EMSOverrideAirFlow and EMSMassFlowRateValue to see how the actuator is applied in the terminal unit model.

If you search the code for "AirTerminal:SingleDuct:SeriesPIU:Reheat" you should find the source file that models that unit. Likewise for the others.

edit flag offensive delete link more

Comments

Thank you! this is a smart approach!

building_performance's avatar building_performance  ( 2019-06-13 17:58:25 -0600 )edit

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

3 followers

Stats

Asked: 2019-06-10 14:10:27 -0600

Seen: 320 times

Last updated: Jun 14 '19