Accessing Max. Adaptive Temp

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
ZengaNyi
VE Newbie
VE Newbie
Posts: 4
Joined: Wed Jul 31, 2019 9:54 am

Accessing Max. Adaptive Temp

Post by ZengaNyi »

I have two queries, and would be very grateful for your help on either of them.

1) Is there a way to access the 'Max. Adaptive Temperature' from using the VE Python API?

      - When this data within  VE Vista, it is contained in the weather file section. Is there a way to access the 'Max. Adaptive Temperature' in the same way that you would access another selection of data from the weather file (for example, Dry Bulb Temperature)?

For example to access Dry Bulb Temperature I would run the following code:

import iesve
from ies_file_picker import IesFilePicker

aps_file_name = IesFilePicker.pick_aps_file()
results_reader_file = iesve.ResultsReader.open(aps_file_name)
weather_file_name = results_reader_file.weather_file
wea_file = iesve.WeatherFileReader()
result = wea_file.open_weather_file(weather_file_name)
np_dry_bulb_temps = wea_file.get_results(3,1,365)
dry_bulb_temps = np_dry_bulb_temps.tolist() 

Is there an equivalent to get Maximum Adaptive Temperature?
2) How does IES calculate the Max. Adaptive Temperature for the first day of the weather file?

 It is clear from 
https://help.iesve.com/ve2019/comfort_i ... 3D&mw=MjQw# and CIBSE TM52  how the Max Adaptive Temperature has been calculated for all other days using the data from the previous days for both daily running mean and daily mean***. It is not clear, however, how the value for the daily running mean for the first day is calculated. Please could you provide some information to clarify this?
*** As these documents state, Tmax for each day (other than the first day) is calculated from these equations (where a=0.8, Tdm-1 = mean temperature for previous day, Trm-1 = running mean temperature for previous day, Trm = running mean temperature for current day and Tmax = maximum adaptive temperature for current day):
Trm = (1-a)*Tdm-1 + a*Trm-1
and
Tmax = Trm*0.33+21.8


Many thanks in advance for your help!
Swinners
VE Newbie
VE Newbie
Posts: 8
Joined: Thu Jul 25, 2019 2:21 pm

Re: Accessing Max. Adaptive Temp

Post by Swinners »

I'd also like to know this!
User avatar
Rhind
IES Staff
IES Staff
Posts: 87
Joined: Fri Mar 22, 2013 5:06 pm

Re: Accessing Max. Adaptive Temp

Post by Rhind »

I can help with your first query. If you change wea_file.get_results(3,1,365) to wea_file.get_results(16,1,365) it should give you max adaptive temperature.

FYI 15 is running-mean temperature.

Hope that helps.
ZengaNyi
VE Newbie
VE Newbie
Posts: 4
Joined: Wed Jul 31, 2019 9:54 am

Re: Accessing Max. Adaptive Temp

Post by ZengaNyi »

Thank you for your help.

I have tried to use both 15 and 16 in order to get running-mean temperature and max adaptive temperature.

Those variables are just returning the dry-bulb temperature - could you let me know why?

Code is as follows:

Code: Select all

aps_file_name = IesFilePicker.pick_aps_file()
results_reader_file = iesve.ResultsReader.open(aps_file_name)
weather_file_name = results_reader_file.weather_file
wea_file = iesve.WeatherFileReader()
result = wea_file.open_weather_file(weather_file_name)
np_ies_max_adaptive_temp = wea_file.get_results(16,1,365)
ies_max_adaptive_temps = np_ies_max_adaptive_temp.tolist()
(Using IES VE Version 2019.0.0.0)

Thank you.
User avatar
Rhind
IES Staff
IES Staff
Posts: 87
Joined: Fri Mar 22, 2013 5:06 pm

Re: Accessing Max. Adaptive Temp

Post by Rhind »

If you use the WeatherFileReader you will get the raw unprocessed values from the weather file (which in the case of these two values will be equal to the dry-bulb temperature). If you want the derived value (what you see in Vista), I recommend using 'get_weather_results()' in the ResultsReader API.
ZengaNyi
VE Newbie
VE Newbie
Posts: 4
Joined: Wed Jul 31, 2019 9:54 am

Re: Accessing Max. Adaptive Temp

Post by ZengaNyi »

Hi Rhind,

Can I access the max. adaptive temperature from the function get_weather_results()? I am currently unable to identify the 'aps_var' and the 'vista_var' for max. adaptive temperature. I have used the get_variables() function to identify the 'aps_var' and 'vista_var' for all of the variables in ResultsReader. Max. adaptive temperature does not appear in these variables. Are you able to tell me the 'aps_var' and 'vista_var' arguments to access max. adaptive temperature through get_weather_results?

The notation I am trying to use is as follows:
get_weather_results ( aps_var, vista_var, start_day = -1, end_day = -1 )

Thank You,
Zenga
User avatar
Rhind
IES Staff
IES Staff
Posts: 87
Joined: Fri Mar 22, 2013 5:06 pm

Re: Accessing Max. Adaptive Temp

Post by Rhind »

Should be 'Temperature' for the aps_var and 'Max. adaptive temp.' for the vista_var.
Post Reply