I am really looking forward to your help. My idea is to do a parametric study of changing building parameters. Therefore applying code may quickly change all the parameters in the same time. I have four questions according to constructions, thermal template and VEBody:
1. How to overwrite roof, wall and floor constructions in API.
I checked both manual and script examples and it seems that the methods defined there were only about window constructions.
2. How to set properties in each layer in the window when out pane and inner pane are different materials.
The script example assumes that the outpane and inner pane have the same properties so they loop each material and set the same material properties.
When I print(layers), It shows this:
[<iesve.VECdbLayer object at 0x0F3873F0>, <iesve.VECdbLayer object at 0x0F3871B0>, <iesve.VECdbLayer object at 0x0F3875F0>]
I was wondering is it possible to store them into list and then extract each of them so it is able to set different properties to outer pane and inner pane.
3. How to alter internal gains and air exchange for each specific existing template.
I have looked viewtopic.php?f=271&t=66455&sid=cd21900 ... f7e29bef63. Refer to the answer by the staff, it may have properties of add or remove internal gains and air exchange in API. I would like to know specific examples if it is possible.
I also doubted that if the way below is a good way to select the specific template to change.
Code: Select all
for template in templates_iter:
if template.name=="Template1":
room_settings = {'sat_perc_lower': 0.0,
'heating_setpoint': 19.0,
'cooling_setpoint': 21.0,
'dhw_units': 'l/h',
'cooling_setpoint_profile': '0',
'dhw_profile': '-', I was trying the way below to assign and when I printed surfaces, it seems it did not work.
Code: Select all
for body in bodies:
if body.id==['SP000000']:
surfaces=body.get_surfaces()
print(surfaces)I assume another way is to assign the construction in the user interface first and then modify existing window construction each time. Nevertheless, I found it is difficult to define these properties that the g-value and u-value was calculated instead of inputting, so we need to change emissivity, conductivity etc.
Therefore, my idea changed to that I build different constructions in the database and in each study I select one of them and assign to the rooms I want. I do not know which way is more making sense, or there is another way around this.
Thanks so much for your time and help, really appreciate it!

