5 - Assign attributes in OpenStudio

Learn OpenStudio Now in one of these online courses:

Script Preview

Hi everyone. This is Harshul Singhal here. Welcome back. We aregoing to work on the same example, whatwe have created so far. Let me just goback to my SketchUp interface. Thereare couple of things that I shouldclarify here, from my previous video. Doyou remember when we tried to run thissurface matching script?OpenStudio people have reported the bug in this. They asked you to run this, intersect spacegeometry, script. Well, you can actuallyrun this script from extensions,OpenStudio userscript, alter or add modelelements, and then look for thisintersect space geometry. This is themore,this is more precise here. Ratherthan using this surface matching script, usethis intercept space geometry script, very important here. Go to extensions,OpenStudiouserscript, alter or add model elements, andthen intersect space geometry.

Let's dothat. And, it is more precise,it says the building finished with 180base surfaces, and no surfaceintersections were found, because Ialready ran it, before I started thisrecording. Let me just check it withmy section view. Put this section planeon top of my surface. Just change the rendering condition to, render perboundary condition, and just move thissection plane. You can saw, you can seenow, everything inside is green in color,which tells me that it has, all thosegreen surfaces, have a boundary condition for internal, prop internal, surfaces. Makessense now.

Well, if you remember, I createdthe windows for some of the spaces, before I ran this surface matchingscript. What happened when I ranthis window wall ratio script for myproject, it actually creates the wallsfor all the outdoor walls, right. But,since I did not run the surface matchingscript, it also created those windows ofmy internal walls. For example, if Iclick on this surface, or this space, youcan see the internal walls also havewindows, which is wrong. Again, I madethis mistake on purpose, so that youcan give it, you can give it thought. Youare supposed to run this surfacematchingscript before you create the windows,very important. Please note it down, youalways learn surface matchingscript before you create the windows.

Ifyou already have done this mistake,well,don't worry we already haveprovided the surface matching propertieshere. You can, again, select these spaces, like this. Use yourShift + Mouse, shift from keyboard andyour mouse. And then, go to extensions, run thisscript again. Set window to wall ratioone, which lives in extensions,OpenStudio userscript,alter or add model elements, and that, set window to wall ratio. Change thewindow ratio to,let's say, 0.75 this time.Off-set one meter. And let's say, if thissurface, I'm sorry, this window wall ratioscript works this time for internal walls,hit OK. Well did you see, it did notwork for me.That'sa bummer, right. You definitelywant to make sure that you don't makethose kind of errors. Now, I need to fixit. What I can do, I can just double-clickon them the way I did it earlier. Double click,don't, not single click,and just delete them, okay.

Let's do itfor this space, as well. Double click onthese internal windows. I mean you canhave internal windows, but, like, you know,I'm just assuming that my projectdoesn't have them. Just to it for thisspace, it'salready been done. Let's see which otherspace has windows, all right. I mean, thisone 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. Ican bring my section again. Change theproperties, the rendering properties, andmove this section, okay. It looks likethis is fine for now. If you want a moreprecise change, this rendering byconstruction, so that you know, ifyou have any white surfaces inside, itmeans you need to fix it, all right. Allright, looks fine to me for now. We canmove further. Let's just delete thissection clean, change this rendering to,render by surface type, okay, all right.

Now, the next step is to bring propertiesfor your spaces, right. We have createdthese spaces are using the OpenStudioscript through SketchUp tools, right. But,they don't have any properties, theydon't have any space types, they don'thave any internal gains, they just havesome surfaces. Where those surfacesdefinitely have some kind of angularproperties, because we already haveprovided the construction set on thetopmostattribute of that hierarchy, which isbuilding. If you click on building, here. Iknow,let me just,sometimes it behavesfunny. But yeah, if you can, if you clickon this building, you can see that theconstruction set is already beenprovided. Because of that waterfallmethod, all those spaces, and all thesesurfaces, and sub-surfaces have theproperties, the installation propertyisalready assigned, okay.

Before you provideany space type properties, makesure that you run another script, whichis, add new thermal zones for spaces withno thermal zones. As I mentioned to youearlier in my previous video, you need toprovide thermal zones to your spaces torun the HVAC system properties, or needto assign the HVAC systems or thermostatsettings. As I may, as I also mentioned toyou earlier, you can actually combine acouple of spaces to create lesserthermal zones. But for now, let's justcreate thermal zone on 1 to 1ratio. If you have,let's say, 19 spaces,this script will create 19 thermal zonesfor you. 1 thermal zone for 1 space. Let's just do that for now,okay. This script, again, lives in, alter oradd model elements.

What you see on yourcomputer screen. Let's just run it.I'msorry, I clicked on some wrong script itseems. Let me just do it again. Add newthermal zone for script, for spaces with no thermal zones. Click on it, and goto the inspector tool. And now, you can seeyou have 19 thermal zones. Again, with very default names. Now,I'dlike to run one more script here. Go to extensions,OpenStudio userscript, alteror add model elements, and look for thisscript, which says rename thermal zonesbased on its base names. Again, extensions, OpenStudio userscript, alter or addmodel elements, and then, rename thermalzones based on space names.

Renameall those thermal zones. Now, you can seethose thermal zones are named based onthe space names. And, that's why I askedyou to rename those spaces. Now you knowwhich thermal zone is connected to whichspace, all right, it's easy. Now if you go tospaces,let's say, these are my 19 spaces. They are connected to those thermalzones here, you can see the name is saved,okay. Now, we have thermal zones assignedto these spaces. You don't see thosethermal zones physically, but they areconnected with these spaces. They arelike, virtual spaces.Actually, I should say zones, they are notvisible on your screen, but they willcontain a lot of properties to run thesimulation, all right.

What I can do, Ican now provide the space typeproperties to my spaces. As I mentionedto you earlier, these are just boxes. Theyhave insulation properties, but theydon't have any properties like schedules,or internal gains, right. When you providespace types to these spaces,that's whenyou will have those properties assignedto these spaces, or these boxes. Thosespace types, as I mentioned to you earlier,contain a lot of properties. Something like,internal gain properties, schedules, okay. Those are OpenStudioresources, what Ialready explained to you earlier. If you are,like, skip those videos, please go back tomy video number,let's say, let me just goback. My video number 2, which is ahierarchy inheritance, hierarchy conceptvideo. Look into that, it will explain to youmore on this, this thing, the OpenStudioresource thing, all right.

How can I doit? Either, I can just do it from theinspector tool. Go to inspector tool, go tospaces, and assign the space-time name here, right. There's one way.Or, I can use this wizard, this, setattributes for selected spaces. What Ican do, I can actually select multiplespaces, and then assign the properties. Let's just do that, okay. First I want toassign these stories to my project. Let'ssay this first floor was constructed in1980. I want to assign a newstory 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 theyare not very precise, let's see. I did notjust select the ground floor,I selected others spaces, as well. Youneed to be very precise. You just need tounderstand howyour 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 groundfloors,are selected. I clicked on this, setattributes for selected spaces. And, justassign the building story. Again, justbuilding story for now, okay. Let's say,building story one, cool, hit OK. Andthen, I select all the rest of the spaces,like this. See, all the spaces areselected. They were constructed in,let's say, 2010. Go to, setattributes for selected spaces,again. And, assign to building story 2. Or, you can just create a new story,whatever. I already have three stories inmy project. That's what I'm going touse, hit OK, okay.I will assign these stories to my project. Now, what I can do, I can actually assignthese space types to my spaces. It takessome time to get familiar with theSketchUp tools.

Let me just explain to you everything ina detail, the way I like to use it. Forexample, if I need to assign these spacesfor my ground floor,it's very difficultto assign it, right now. Either I just,like, go into ground floor, like fromthe bottom, and then assign it. What I can do,I can actually select my, like, top twospaces, or floors, like this, and just hidethem. 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 theproperties. For example, I know this islike,a corridor here, the center is a tenfoot wide corridor. Just click on it, andgo to, set attributes for selectedspaces. Select the space type as corridor. When you select this space typeas corridor, it assigns all those internalgain properties, and schedules, based on DOE reference buildings and ASHRAE 90.12010 compliance, okay.

The schedules that you bringin this interface is as for DOE reference buildings, okay. Again,it's a good start to bringthose schedules in your project. And,later you can update them, as for yourneed, in OpenStudio interface. They willupdate those schedules and the rest of otherthings in the next video after new weeksfrom now, cool. We have assigned a spacetype. I don't want to assign theconstruction set, for now. Let's say, my, I'm, I can either just create a newconstructionset. Let's say, like, youknow, if you click on this, you need toprovide a lot of information. Or, for nowlet's just keep things simple. Like,you can just assign the same construction set. But, you know what,italready has being assigned at buildinglevel. You are not to assign it here. Iknow vehicles like like creating twostories, but here, we have only oneconstruction set, so it can make thingsdifficult here. I mean, I can click on, new construction set, but I want Idon't want to do it for now.I'm going toassign a new construction set later, inOpenStudiointerface. Let's for now, justkeep it no change. When you keep it as nochange, it means, it will also have theconstruction set, what you have assigned atbuilding level, which is, as well,ASHRAE 90.12010.

Do you want to assign thermal zones?Well, we already have assigned thesethermal zones to spaces on 1 to 1ratio. We need not to do it again. Nextthing is, do you want to assign the ideal air load status, to your thermal zones. Ifyou don't have any thermal zoneand youmake some changes here, it won'tmake an impact on your project. And,that's why we assign thermal zonesbefore this, set attribute for selectedspace, script. What is an ideal air load, bythe way? Again, this is a very importantconcept here. Please pay someattention. An ideal air load status, meansthat your thermal zones have an HVACsystem attached to it, or attached tothem. These systems, they have an infinite capacity, they arealways available, and they are 100%efficient, okay. Again, they are alwaysavailable, they have infinite capacity,and they are 100% efficient.

Why youmight want to assign this non-realisticsystem? Well, you want to assign thiskind of system to your spaces, just to dosome kind of load calculations. When youassign this, ideal air load status, to yourspaces, and run this simulation, you willget the load calculation. You will getthe heating and cooling load for yourproject. For example,a lot of times,you want to just let your architects, oryour clients know the impact ofdifferent kind of lightings on yourproject. The heating and load impact,heating and cooling load impact, becauseof lighting. What you do you, assignthose different kind of lightings. Ifyou don't have any specs for HVAC system,just assign this ideal load, air load, thenthis simulation, and just let your teamknow what is happening in terms ofheating and cooling load, all right.

A lotof people, they use different kind oftools to calculate these are heating andcooling loads. But, you can also do ithere, by using this ideal air load method,okay. I always like to start withideal load as yes, set pattern thermostat,yes,let's just assign some thermostat. You can always edit this thermostatlater, in OpenStudiointerface. For now,I'm just going to assign a defaultgeneric value based on my library. What I have downloaded,as per building type, and building type, yes. Let's just assign, corridor thermostat, andhit OK. Now, you can do it for the rest of thespaces, as well. Like, for example, thesethree spaces are office spaces. Let usassign them as,let's say, open office fornow. Thermal zone, there is no need, ideal airloads, yes, thermostat for openoffice, yes. Let's do that, and hit OK. Let'ssay this is a restroom, assign restroomhere. Ideal air load, yes. What else, thermostatmight be for restroom, yes, hit OK. Let's say, these two areconference rooms. Same thing, assignedspace type for conference room, ideal airload and thermostat can be for conferenceroom, and hit OK.

Now, all these spaces onthis floor have some kind of space type assigned, okay. And now, I want to assign itfor other floors. Go to edit, unhideall, edit, unhide all. You can see thosespaces now. Now, what I'm going to do, I'mgoing to hide my first floor. Again, selectmy first floor, precisely, hide it, and nowI can hide the, this floor, as well. And,you can see, I can make some changes here. This geometry looks a bit weird. It'sfine for now, we have made so manychanges, so it's okay. It should run thissimulation later. If it doesn't work, thatwill be actually good for us, becausethen we can troubleshoot a lot more things,all right. I'm just going to assignsomething real quick. Let's say this iscorridor. This is corridor space, so I'm going toassign corridor properties to this.Space type can be corridor, ideal airload,yes, thermostat can be for corridor,hit OK, all right. I can selecteverything here. Go to this, set attributefor selected spaces, again. And, assignideal air load as yes, so that I need not haveto assign this property again and again,all right.

Now, what I need to do, I justneed to select spaces. Let's say thesespaces are, let's say, let's just selecttwo of these spaces, or maybe, yeah, two shouldbe okay. And, assign properties of closedoffice this time. And, thermostat maybe ofclosed 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 confusionin my mind. This can be conference room.Let's say this is a rest room. If you areworking on your computer, please makesure that you assign all these spacetypes, for all these spaces. I meant,assign these space types for all thesespaces. You need not to use each andevery space type here. It is a library, again, if you don't have any IT room ormechanical room, you need not to use thisspace type. A lot of times, people getconfused so don't get confused with this,okay.

I have assigned some propertiesto this space. Let me assign moreproperties. Please keep working the waythat I am doing here.I'm going to assignmore properties. Let's say, this is a closedroom, again. And thermostat, and maybethese spaces can be something else, thistime. Let's say, these are IT rooms,all right, let's do that. You need not toassign ideal air load, again.Thermostat can be for IT room, hit OK. What else is left. This is done, I think thisis done, all right. I think we are goodfor this. Unhide everything, again, andassign properties here. Let's say, thisspace is, let's say, this space issomething different this time, lobby,all right. Let's just assume that you havesome bridge that is connecting with thislobby on the second or third floors. Like, afunky building, okay. Same thing, and thiscan be storage this time, this top mosttiny floor, storage, yes, and storagethermostat.

If,let's say, if you are, if your storage doesn't have anythermostat, it's unconditioned, you canchange it later,okay, hit OK. Now, I have assignedspace types to all my spaces. I can useit, either by just clicking on thisoption, which is render by spacetype. You can see each and every spacehas its own rendering. It means theproperties have been assigned. Let's clickon other rendering options. Let'srender by thermal zones, okay. And, render by floors, we have two stories. Go tothe inspector tool, as well, one more time. Goto spaces, and just go through each andevery space, whether they have some spacetypes assigned. I like to QC everything.

For example, you can see this floor oneconference, somehow it doesn't have anyspace type, which is kind of weird. What if, if I have assigned the space typeto this floor one office, 1 to 1. It willoverride the space type that has beenprovided at building level, here. Eitheryou just remove it, or what happens ifyou have this space type, office, assigneda building level. It will pass on to thisspace, fl1_conf104_W. HereI mean, if you don't assign property here,it won't be able to override theproperty's assigned at building level. If you want to override the properties,just assign something as a conferencespace type. Let's just check everything,again. Let's say, if conference 104 hasother properties assigned, I want tocheck its thermal zone, as well. Let's seeif it has ideal air load. No,it's not beenassigned, because somehow we totallymissed it. The thermostat can be for conference room. Let's go back to spaces,again. Go through each and everyspace, one by one,all right.

Looks like all these spaceshave some kind of space types assigned. It means, all these geometries that yousee on your computer, they have some kindof internal gain properties. Some kind ofinstallation properties. Somekind of schedules, ideal air load, andthermostat settings, all right. Now, wecan save it. Technically, we are ready torun this simulation, but we still want tomake some changes, okay. You want toprovide some day-lighting controls here, wewill see if we need to provide someshading devices, we will make some moretweaks here, and then we move to the mainOpenStudiointerface to make morechanges, all right. Let's go toextensions, again. Go to OpenStudio userscript, alter or add model elementsand look around, what else do we have here in this list. There are so many differentthings. We have used most of them. We haveused something like, window wall ratio, rename thermal zones.

If you have someadditional thermal zones, you can removethem from here. Remove unused thermalzones. For example, what if,if I want tocreate just one thermal zone for thisspace and this space, as they have,let'ssay, they are same space type, and they are sameorientation. I can do it just,just selectthem by using shift and your mouse, click on this, space attribute for selectedspaces, again. Go to thermal zone, andclick on this option, which is newthermal zone, okay,hit ok. And now, if you goto the inspector tool, you can see you have 19 spaces, but you have 20 thermal zones, something is wrong. You can't have morethermal zones than spaces, it will, themodel will cash on you. Go toextensions,OpenStudio userscript, alteror add model elements, remove unusedthermal zones, click on it. This willremove thermal zones without spaces orequipment, click yes. And now, it says itremoved two thermal zones for you. Those two thermal zones were unused, whenyou actually provided a single thermalzone for these spaces.

Now, if you go backto the inspector tool, you have 19 spaces and 18thermal zones, makes sense. Go toextensions, again,OpenStudio userscript,alter or add model elements. What else do you have here. Well, you havea lot ofother 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 thingswon't be used ever. Like, I haven't usedsomething, couple of things, somethinglike, set interior partition height abovefloor. I haven't used it. I know how touse it, but in this exercise I won't beable to explain each and every script. They are not that important. I alreadyhave explained to you all the importantones.