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)
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
