ApacheHVAC for custom networks

The VE Python API allows users create simple programs using the Python Programming Language, to interact with a VE Model and/or Vista Results File
Post Reply
claudia_407
VE Newbie
VE Newbie
Posts: 1
Joined: Thu Mar 02, 2023 10:40 am

ApacheHVAC for custom networks

Post by claudia_407 »

Hi,

I’m working on an operational energy model using ApacheHVAC and I’m trying to use VEscripts to extract results. I’ve started from this script found online: https://www.iesve.com/support/guides/py ... h-hvac.pdf

My network comprises 5 AHUs , I started from simplified systems and customised controls.

I am having an issue with the script: all the air side components are not being picked up because the dictionary/list is empty:
Systems ... []

Components for airside systems {}

Hot water loop ids []

Hot water loop waterside components {}

Chilled water loop ids ['WL000000']
I’ve done some debugging using vars and I believe the issue is here, i.e. “network” is empty:
def hvac_system_ids(results_file_reader):
"""
Creates a list of airside system ids

Parameters
----------
results_file_reader : results_reader object

Returns
-------
output : List of System ids

"""

output = []
hvac = iesve.HVACNetwork
network = hvac.load_network(results_file_reader.hvac_file)
for system in network.systems:
output.append(system.id)

return output
There definitely is data in the airside component, if I export results manually in vista pro I do get to see an output and extract results.

Could you please help?

Thanks,
Post Reply