5 - Assign attributes in OpenStudio

Learn OpenStudio Now in one of these online courses:

arting immediately!

Script Preview

Hi everyone. This is Harshul Singhal here. Welcome back. We are going to work on the same example, what we have created so far. Let me just go back to my SketchUp interface. There are couple of things that I should clarify here, from my previous video. Do you remember when we tried to run this surface matching script? OpenStudio people have reported the bug in this. They asked you to run this, intersect space geometry, script. Well, you can actually run this script from extensions, OpenStudio userscript, alter or add model elements, and then look for this intersect space geometry. This is the more, this is more precise here. Rather than using this surface matching script, use this intercept space geometry script, very important here. Go to extensions, OpenStudio userscript, alter or add model elements, and then intersect space geometry.

 

Let's do that. And, it is more precise, it says the building finished with 180 base surfaces, and no surface intersections were found, because I already ran it, before I started this recording. Let me just check it with my section view. Put this section plane on top of my surface. Just change the rendering condition to, render per boundary condition, and just move this section plane. You can saw, you can see now, everything inside is green in color, which tells me that it has, all those green surfaces, have a boundary condition for internal, prop internal, surfaces. Makes sense now.

 

Well, if you remember, I created the windows for some of the spaces, before I ran this surface matching script. What happened when I ran this window wall ratio script for my project, it actually creates the walls for all the outdoor walls, right. But, since I did not run the surface matching script, it also created those windows of my internal walls. For example, if I click on this surface, or this space, you can see the internal walls also have windows, which is wrong. Again, I made this mistake on purpose, so that you can give it, you can give it thought. You are supposed to run this surface matching script before you create the windows, very important. Please note it down, you always learn surface matching script before you create the windows.

 

If you already have done this mistake, well, don't worry we already have provided the surface matching properties here. You can, again, select these spaces, like this. Use your Shift + Mouse, shift from keyboard and your mouse. And then, go to extensions, run this script again. Set window to wall ratio one, which lives in extensions, OpenStudio userscript, alter or add model elements, and that, set window to wall ratio. Change the window ratio to, let's say, 0.75 this time. Off-set one meter. And let's say, if this surface, I'm sorry, this window wall ratio script works this time for internal walls, hit OK. Well did you see, it did not work for me. That's a bummer, right. You definitely want to make sure that you don't make those kind of errors. Now, I need to fix it. What I can do, I can just double-click on them the way I did it earlier. Double click, don't, not single click, and just delete them, okay.

 

Let's do it for this space, as well. Double click on these internal windows. I mean you can have internal windows, but, like, you know, I'm just assuming that my project doesn't have them. Just to it for this space, it’s already been done. Let's see which other space has windows, all right. I mean, this one has some windows it seems. Double click in these internal windows to lead them, all right. Looks like we have fixed them. There is no internal window, it seems. I can bring my section again. Change the properties, the rendering properties, and move this section, okay. It looks like this is fine for now. If you want a more precise change, this rendering by construction, so that you know, if you have any white surfaces inside, it means you need to fix it, all right. All right, looks fine to me for now. We can move further. Let's just delete this section clean, change this rendering to, render by surface type, okay, all right.

 

Now, the next step is to bring properties for your spaces, right. We have created these spaces are using the OpenStudio script through SketchUp tools, right. But, they don't have any properties, they don't have any space types, they don't have any internal gains, they just have some surfaces. Where those surfaces definitely have some kind of angular properties, because we already have provided the construction set on the topmost attribute of that hierarchy, which is building. If you click on building, here. I know, let me just, sometimes it behaves funny. But yeah, if you can, if you click on this building, you can see that the construction set is already been provided. Because of that waterfall method, all those spaces, and all these surfaces, and sub-surfaces have the properties, the installation property is already assigned, okay.

 

Before you provide any space type properties, make sure that you run another script, which is, add new thermal zones for spaces with no thermal zones. As I mentioned to you earlier in my previous video, you need to provide thermal zones to your spaces to run the HVAC system properties, or need to assign the HVAC systems or thermostat settings. As I may, as I also mentioned to you earlier, you can actually combine a couple of spaces to create lesser thermal zones. But for now, let's just create thermal zone on 1 to 1 ratio. If you have, let's say, 19 spaces, this script will create 19 thermal zones for you. 1 thermal zone for 1 space. Let's just do that for now, okay. This script, again, lives in, alter or add model elements.

 

What you see on your computer screen. Let's just run it. I'm sorry, I clicked on some wrong script it seems. Let me just do it again. Add new thermal zone for script, for spaces with no thermal zones. Click on it, and go to the inspector tool. And now, you can see you have 19 thermal zones. Again, with very default names. Now, I'd like to run one more script here. Go to extensions, OpenStudio userscript, alter or add model elements, and look for this script, which says rename thermal zones based on its base names. Again, extensions, OpenStudio userscript, alter or add model elements, and then, rename thermal zones based on space names.

 

Rename all those thermal zones. Now, you can see those thermal zones are named based on the space names. And, that's why I asked you to rename those spaces. Now you know which thermal zone is connected to which space, all right, it's easy. Now if you go to spaces, let's say, these are my 19 spaces. They are connected to those thermal zones here, you can see the name is saved, okay. Now, we have thermal zones assigned to these spaces. You don't see those thermal zones physically, but they are connected with these spaces. They are like, virtual spaces. Actually, I should say zones, they are not visible on your screen, but they will contain a lot of properties to run the simulation, all right.

 

What I can do, I can now provide the space type properties to my spaces. As I mentioned to you earlier, these are just boxes. They have insulation properties, but they don't have any properties like schedules, or internal gains, right. When you provide space types to these spaces, that's when you will have those properties assigned to these spaces, or these boxes. Those space types, as I mentioned to you earlier, contain a lot of properties. Something like, internal gain properties, schedules, okay. Those are OpenStudio resources, what I already explained to you earlier. If you are, like, skip those videos, please go back to my video number, let's say, let me just go back. My video number 2, which is a hierarchy inheritance, hierarchy concept video. Look into that, it will explain to you more on this, this thing, the OpenStudio resource thing, all right.

 

How can I do it? Either, I can just do it from the inspector tool. Go to inspector tool, go to spaces, and assign the space-time name here, right. There’s one way. Or, I can use this wizard, this, set attributes for selected spaces. What I can do, I can actually select multiple spaces, and then assign the properties. Let's just do that, okay. First I want to assign these stories to my project. Let's say this first floor was constructed in 1980. I want to assign a new story for this. I have selected these spaces very precisely, using the cursor, see. A lot of times people, like, you know, like, select something like this, if they are not very precise, let’s see. I did not just select the ground floor, I selected others spaces, as well. You need to be very precise. You just need to understand how your mouse works, and all. It comes with practice. Please keep practicing. I know initially it will be very difficult, okay.

 

I selected this ground floor. You can see all these spaces from ground floors, are selected. I clicked on this, set attributes for selected spaces. And, just assign the building story. Again, just building story for now, okay. Let's say, building story one, cool, hit OK. And then, I select all the rest of the spaces, like this. See, all the spaces are selected. They were constructed in, let's say, 2010. Go to, set attributes for selected spaces, again. And, assign to building story 2. Or, you can just create a new story, whatever. I already have three stories in my project. That's what I'm going to use, hit OK, okay. I will assign these stories to my project. Now, what I can do, I can actually assign these space types to my spaces. It takes some time to get familiar with the SketchUp tools.

 

Let me just explain to you everything in a detail, the way I like to use it. For example, if I need to assign these spaces for my ground floor, it's very difficult to assign it, right now. Either I just, like, go into ground floor, like from the bottom, and then assign it. What I can do, I can actually select my, like, top two spaces, or floors, like this, and just hide them. Right click on them and hide it. Now, you can see those intersect surfaces, because of surface matching script. Now, what I can do, I can assign the properties. For example, I know this is like, a corridor here, the center is a ten foot wide corridor. Just click on it, and go to, set attributes for selected spaces. Select the space type as corridor. When you select this space type as corridor, it assigns all those internal gain properties, and schedules, based on DOE reference buildings and ASHRAE 90.1 2010 compliance, okay.

 

The schedules that you bring in this interface is as for DOE reference buildings, okay. Again, it's a good start to bring those schedules in your project. And, later you can update them, as for your need, in OpenStudio interface. They will update those schedules and the rest of other things in the next video after new weeks from now, cool. We have assigned a space type. I don't want to assign the construction set, for now. Let's say, my, I'm, I can either just create a new construction set. Let's say, like, you know, if you click on this, you need to provide a lot of information. Or, for now let's just keep things simple. Like, you can just assign the same construction set. But, you know what, it already has being assigned at building level. You are not to assign it here. I know vehicles like like creating two stories, but here, we have only one construction set, so it can make things difficult here. I mean, I can click on, new construction set, but I want I don't want to do it for now. I'm going to assign a new construction set later, in OpenStudio interface. Let's for now, just keep it no change. When you keep it as no change, it means, it will also have the construction set, what you have assigned at building level, which is, as well, ASHRAE 90.1 2010.

 

Do you want to assign thermal zones? Well, we already have assigned these thermal zones to spaces on 1 to 1 ratio. We need not to do it again. Next thing is, do you want to assign the ideal air load status, to your thermal zones. If you don't have any thermal zone and you make some changes here, it won't make an impact on your project. And, that's why we assign thermal zones before this, set attribute for selected space, script. What is an ideal air load, by the way? Again, this is a very important concept here. Please pay some attention. An ideal air load status, means that your thermal zones have an HVAC system attached to it, or attached to them. These systems, they have an infinite capacity, they are always available, and they are 100% efficient, okay. Again, they are always available, they have infinite capacity, and they are 100% efficient.

 

Why you might want to assign this non-realistic system? Well, you want to assign this kind of system to your spaces, just to do some kind of load calculations. When you assign this, ideal air load status, to your spaces, and run this simulation, you will get the load calculation. You will get the heating and cooling load for your project. For example, a lot of times, you want to just let your architects, or your clients know the impact of different kind of lightings on your project. The heating and load impact, heating and cooling load impact, because of lighting. What you do you, assign those different kind of lightings. If you don't have any specs for HVAC system, just assign this ideal load, air load, then this simulation, and just let your team know what is happening in terms of heating and cooling load, all right.

 

A lot of people, they use different kind of tools to calculate these are heating and cooling loads. But, you can also do it here, by using this ideal air load method, okay. I always like to start with ideal load as yes, set pattern thermostat, yes, let's just assign some thermostat. You can always edit this thermostat later, in OpenStudio interface. For now, I'm just going to assign a default generic value based on my library. What I have downloaded, as per building type, and building type, yes. Let's just assign, corridor thermostat, and hit OK. Now, you can do it for the rest of the spaces, as well. Like, for example, these three spaces are office spaces. Let us assign them as, let's say, open office for now. Thermal zone, there is no need, ideal air loads, yes, thermostat for open office, yes. Let's do that, and hit OK. Let's say this is a restroom, assign restroom here. Ideal air load, yes. What else, thermostat might be for restroom, yes, hit OK. Let's say, these two are conference rooms. Same thing, assigned space type for conference room, ideal air load and thermostat can be for conference room, and hit OK.

 

Now, all these spaces on this floor have some kind of space type assigned, okay. And now, I want to assign it for other floors. Go to edit, unhide all, edit, unhide all. You can see those spaces now. Now, what I'm going to do, I'm going to hide my first floor. Again, select my first floor, precisely, hide it, and now I can hide the, this floor, as well. And, you can see, I can make some changes here. This geometry looks a bit weird. It's fine for now, we have made so many changes, so it’s okay. It should run this simulation later. If it doesn't work, that will be actually good for us, because then we can troubleshoot a lot more things, all right. I'm just going to assign something real quick. Let's say this is corridor. This is corridor space, so I'm going to assign corridor properties to this. Space type can be corridor, ideal air load, yes, thermostat can be for corridor, hit OK, all right. I can select everything here. Go to this, set attribute for selected spaces, again. And, assign ideal air load as yes, so that I need not have to assign this property again and again, all right.

 

Now, what I need to do, I just need to select spaces. Let's say these spaces are, let's say, let's just select two of these spaces, or maybe, yeah, two should be okay. And, assign properties of closed office this time. And, thermostat may be of closed office. We already have assigned ideal air load in the previous step, hit OK. We have already done it for this, let’s just with one more time, so, you know, I don't have any confusion in my mind. This can be conference room. Let's say this is a rest room. If you are working on your computer, please make sure that you assign all these space types, for all these spaces. I meant, assign these space types for all these spaces. You need not to use each and every space type here. It is a library, again, if you don't have any IT room or mechanical room, you need not to use this space type. A lot of times, people get confused so don't get confused with this, okay.

 

I have assigned some properties to this space. Let me assign more properties. Please keep working the way that I am doing here. I'm going to assign more properties. Let's say, this is a closed room, again. And thermostat, and maybe these spaces can be something else, this time. Let's say, these are IT rooms, all right, let's do that. You need not to assign ideal air load, again. Thermostat can be for IT room, hit OK. What else is left. This is done, I think this is done, all right. I think we are good for this. Unhide everything, again, and assign properties here. Let's say, this space is, let's say, this space is something different this time, lobby, all right. Let's just assume that you have some bridge that is connecting with this lobby on the second or third floors. Like, a funky building, okay. Same thing, and this can be storage this time, this top most tiny floor, storage, yes, and storage thermostat.

 

If, let's say, if you are, if your storage doesn't have any thermostat, it's unconditioned, you can change it later, okay, hit OK. Now, I have assigned space types to all my spaces. I can use it, either by just clicking on this option, which is render by space type. You can see each and every space has its own rendering. It means the properties have been assigned. Let's click on other rendering options. Let's render by thermal zones, okay. And, render by floors, we have two stories. Go to the inspector tool, as well, one more time. Go to spaces, and just go through each and every space, whether they have some space types assigned. I like to QC everything.

 

For example, you can see this floor one conference, somehow it doesn't have any space type, which is kind of weird. What if, if I have assigned the space type to this floor one office, 1 to 1. It will override the space type that has been provided at building level, here. Either you just remove it, or what happens if you have this space type, office, assigned a building level. It will pass on to this space, fl1_conf104_W. Here I mean, if you don't assign property here, it won't be able to override the property's assigned at building level. If you want to override the properties, just assign something as a conference space type. Let's just check everything, again. Let's say, if conference 104 has other properties assigned, I want to check its thermal zone, as well. Let's see if it has ideal air load. No, it's not been assigned, because somehow we totally missed it. The thermostat can be for conference room. Let's go back to spaces, again. Go through each and every space, one by one, all right.

 

Looks like all these spaces have some kind of space types assigned. It means, all these geometries that you see on your computer, they have some kind of internal gain properties. Some kind of installation properties. Some kind of schedules, ideal air load, and thermostat settings, all right. Now, we can save it. Technically, we are ready to run this simulation, but we still want to make some changes, okay. You want to provide some day-lighting controls here, we will see if we need to provide some shading devices, we will make some more tweaks here, and then we move to the main OpenStudio interface to make more changes, all right. Let's go to extensions, again. Go to OpenStudio userscript, alter or add model elements and look around, what else do we have here in this list. There are so many different things. We have used most of them. We have used something like, window wall ratio, rename thermal zones.

 

If you have some additional thermal zones, you can remove them from here. Remove unused thermal zones. For example, what if, if I want to create just one thermal zone for this space and this space, as they have, let's say, they are same space type, and they are same orientation. I can do it just, just select them by using shift and your mouse, click on this, space attribute for selected spaces, again. Go to thermal zone, and click on this option, which is new thermal zone, okay, hit ok. And now, if you go to the inspector tool, you can see you have 19 spaces, but you have 20 thermal zones, something is wrong. You can't have more thermal zones than spaces, it will, the model will cash on you. Go to extensions, OpenStudio userscript, alter or add model elements, remove unused thermal zones, click on it. This will remove thermal zones without spaces or equipment, click yes. And now, it says it removed two thermal zones for you. Those two thermal zones were unused, when you actually provided a single thermal zone for these spaces.

 

Now, if you go back to the inspector tool, you have 19 spaces and 18 thermal zones, makes sense. Go to extensions, again, OpenStudio userscript, alter or add model elements. What else do you have here. Well, you have a lot of other things. You can actually remove, orphan sub-surfaces. You can remove, hard assigned constructions. You can add, photovoltaics. You can add, overhangs, which we will do next time. There are lot of things, most of the things won't be used ever. Like, I haven't used something, couple of things, something like, set interior partition height above floor. I haven't used it. I know how to use it, but in this exercise I won't be able to explain each and every script. They are not that important. I already have explained to you all the important ones.