get_all_room_results not working for comfort related variables.

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
DimitrisMantas
VE Newbie
VE Newbie
Posts: 4
Joined: Sat May 01, 2021 5:15 pm

get_all_room_results not working for comfort related variables.

Post by DimitrisMantas »

Hi,

I building a program which needs to grab the total electricity consumption of the model (EC) and the mean PPD from a simulation file.

For testing purposes, I have created a simple testbed model, which is nothing the "Primary School" reference model, from New Project > Create from Starter Geometry. I decided to not mess with model at all, and just proceeded to perform an one-day dynamic simulation using ApacheSim using the otherwise default settings throughout the whole process.

While I can get EC, just fine, the recommended way to get room-level variables does not appear to work. More precicely,

Code: Select all

room_IDs = GetRoomIDs(simulation_file)

__PPD__ = FindVariable(simulation_file, "People dissatisfied", "z")

PPD = []
for room_ID in room_IDs:
	variable_data = simulation_file.get_all_room_results(room_ID, __PPD__['aps_varname'], __PPD__['model_level'])
	PPD.append(variable_data)
print(PPD)
returns a list of empty dictionaries. Note that the same is also true for all other models I tried. To demonstrate that my script is probably fine, the above code works fine for the mean radiant temperature or any other non-comfort related variable.

Using the get_room_results method returns a list of None values, but it is my understanding that using get_all_room_results is the best practice for variables with composite .APS names. Actually, the problem persists not just with PMV, the comfort index, and CLO.

Kind regards.
Dimitris
DimitrisMantas
VE Newbie
VE Newbie
Posts: 4
Joined: Sat May 01, 2021 5:15 pm

Re: get_all_room_results not working for comfort related variables.

Post by DimitrisMantas »

I know IES is made up of like 50 people, but considering the fact that Tech Support sent me here, I thought I would have received an answer to this question. However, looking at other posts in this dead forum, I noticed a particular trend, which made me believe that this is probably not going to happen.

As a final note, I would advise all IESVE users with a similar problem to mine to look into a certain thermal comfort module, which gives very similar results to ApacheSim, and stop wasting productive time.
katarzyna_m
VE Newbie
VE Newbie
Posts: 6
Joined: Wed Jun 14, 2023 11:33 am

Re: get_all_room_results not working for comfort related variables.

Post by katarzyna_m »

Hi,
Has anyone found a solution to this issue since 2021? The problem still persists, and I could really use this functionality.
Post Reply