How to actuate Fan Airflow through Python

asked 2024-06-06 04:34:39 -0500

haseeb.ahmed's avatar

updated 2024-06-06 08:44:09 -0500

Hi,

I am a beginner to energy modelling and I am working on modulating Fan Speed through a logic. I have tried every method, I have added Variable Fan and its mass flow rate in the list of EMS Actuator as well. I am adding the details in the code but I am not getting what details is being missed here !!

!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:SENSOR ===========

EnergyManagementSystem:Sensor,
  Energy_Management_System_Sensor_1,  !- Name
  Fan Variable Volume 1,   !- Output:Variable or Output:Meter Index Key Name
  Fan Air Mass Flow Rate;  !- Output:Variable or Output:Meter Name


!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:ACTUATOR ===========

EnergyManagementSystem:Actuator,
  Energy_Management_System_Actuator_2,  !- Name
  Thermal Zone 1,          !- Actuated Component Unique Name
  Zone Temperature Control,!- Actuated Component Type
  Cooling Setpoint;        !- Actuated Component Control Type

EnergyManagementSystem:Actuator,
  Energy_Management_System_Actuator_3,  !- Name
  Thermal Zone 1,          !- Actuated Component Unique Name
  Zone Temperature Control,!- Actuated Component Type
  Heating Setpoint;        !- Actuated Component Control Type

EnergyManagementSystem:Actuator,
  Energy_Management_System_Actuator_4,  !- Name
  Fan Variable Volume 1,   !- Actuated Component Unique Name
  Fan,                     !- Actuated Component Type
  Fan Air Mass Flow Rate;  !- Actuated Component Control Type

Thanks.

edit retag flag offensive close merge delete

Comments

Where is the EMS:Program and EMS:ProgramCallingManager?

Julien Marrec's avatar Julien Marrec  ( 2024-06-07 02:35:04 -0500 )edit

!- =========== ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:SENSOR ===========

EnergyManagementSystem:Sensor, OutdoorTempSensor, !- Name Environment, !- Output:Variable or Output:Meter Index Key Name Site Outdoor Air Drybulb Temperature; !- Output:Variable or Output:Meter Name

!- =========== ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:ACTUATOR ===========

EnergyManagementSystem:Actuator, Energy_Management_System_Actuator_2, !- Name Thermal Zone 1, !- Actuated Component Unique Name Zone Temperature Control,!- Actuated Component Typ

haseeb.ahmed's avatar haseeb.ahmed  ( 2024-06-07 03:03:31 -0500 )edit

I am trying to work in throgh Python. Do I still need EMS: Program and EMS: ProgramCallingManager ?

haseeb.ahmed's avatar haseeb.ahmed  ( 2024-06-07 03:05:41 -0500 )edit

These are still not the EnergyManagementSystem:Program and EnergyManagementSystem:ProgramCallingManager, both objects are needed. I suggest you read the EMS Application Guide in more details, including example.

If you're trying to do it with python, then you don't need any EMS object. You need a PythonPlugin:Instance

Julien Marrec's avatar Julien Marrec  ( 2024-06-13 02:03:13 -0500 )edit