First time here? Check out the Help page!
| 1 | initial version |
Fernanda Schuch of DesignBuilder support provided a solution through EMS scripting. The EMS included (3) sensors: meter Electricity:Facility, meter ResidentialMeter (previously created using meter:custom object), and meter ElectricityProduced:Facility (which I changed to output variable, *,Inverter AC Output Electricity Energy, for capturing post inverter energy at the net meter. Then a simple program was written to set the CommercialElectric (global variable) = Electricity:Facility - ResidentialMeter - Inverter AC Output Electricity Energy.
here is a copy of the code for reference: EnergyManagementSystem:Sensor, FacilityElectric, , Electricity:Facility;
EnergyManagementSystem:Sensor, ResidentialElectric, , 130Bank_ResidentialElecMeter;
EnergyManagementSystem:Sensor, SolarGenerated, EXAMPLE INVERTER - SIMPLE, Inverter AC Output Electricity Energy;
EnergyManagementSystem:GlobalVariable, CommercialElectric;
EnergyManagementSystem:Program, CalculateCommercialNet, Set CommercialElectric = FacilityElectric - ResidentialElectric - SolarGenerated;
EnergyManagementSystem:ProgramCallingManager, RunCalcCommercial, EndOfZoneTimestepBeforeZoneReporting, CalculateCommercialNet;
EnergyManagementSystem:OutputVariable, CommercialElectric, CommercialElectric, Summed, ZoneTimeStep, , Joules;
Output:Variable,,CommercialElectric,Hourly; Output:Variable,,CommercialElectric,Daily; Output:Variable,,CommercialElectric,Monthly; Output:Variable,,CommercialElectric,RunPeriod;
Meter:Custom, CommercialElecMeter, Electricity, , CommercialElectric;
| 2 | No.2 Revision |
Fernanda Schuch of DesignBuilder support provided a solution through EMS scripting.
The EMS included (3) sensors: sensors:
Then a simple program was written to set the
CommercialElectric (global variable) = Electricity:Facility - ResidentialMeter - Inverter AC Output Electricity Energy.
here
Here is a copy of the code for reference:
reference:
EnergyManagementSystem:Sensor,
FacilityElectric,
,
Electricity:Facility; ,
Electricity:Facility;
EnergyManagementSystem:Sensor,
ResidentialElectric,
,
130Bank_ResidentialElecMeter; ,
130Bank_ResidentialElecMeter;
EnergyManagementSystem:Sensor,
SolarGenerated,
EXAMPLE INVERTER - SIMPLE,
Inverter AC Output Electricity Energy; Energy;
EnergyManagementSystem:GlobalVariable,
CommercialElectric; CommercialElectric;
EnergyManagementSystem:Program,
CalculateCommercialNet,
Set CommercialElectric = FacilityElectric - ResidentialElectric - SolarGenerated; SolarGenerated;
EnergyManagementSystem:ProgramCallingManager,
RunCalcCommercial,
EndOfZoneTimestepBeforeZoneReporting,
CalculateCommercialNet; CalculateCommercialNet;
EnergyManagementSystem:OutputVariable,
CommercialElectric,
CommercialElectric,
Summed,
ZoneTimeStep,
,
Joules; Output:Variable,,CommercialElectric,Hourly;
Output:Variable,,CommercialElectric,Daily;
Output:Variable,,CommercialElectric,Monthly;
Output:Variable,,CommercialElectric,RunPeriod;
,
Joules;
Output:Variable,*,CommercialElectric,Hourly;
Output:Variable,*,CommercialElectric,Daily;
Output:Variable,*,CommercialElectric,Monthly;
Output:Variable,*,CommercialElectric,RunPeriod;
Meter:Custom,
CommercialElecMeter,
Electricity,
,
CommercialElectric; ,
CommercialElectric;
Thanks