ghting zones. Is there a specific procedure to follow to have all the Lighting groups calculated at the same time? If I Graft the lightingControlGroups_ input in the Honeybee_Read Annual Result I component then the Daysim report don't even show the second and third line for control groups, but just the first.Thank you!
Francesco
(Screenshot of the definition excert)
(creeshot of the Daysim report excerpt)
…
Integer = 0 To 9
val *= 2
lst.Add(val)
Next
Since val is a ValueType, when we assign it to the list we actually put a copy of val into the list. Thus, the list contains the following memory layout:
[0] = 2
[1] = 4
[2] = 8
[3] = 16
[4] = 32
[5] = 64
[6] = 128
[7] = 256
[8] = 512
[9] = 1024
Now let's assume we do the same, but with OnLines:
Dim ln As New OnLine(A, B)
Dim lst As New List(Of OnLine)
For i As Integer = 0 To 9
ln.Transform(xform)
lst.Add(ln)
Next
When we declare ln on line 1, it is assigned an address in memory, say "24 Bell Ave." Then we modify that one line over and over, and keep on adding the same address to lst. Thus, the memory layout of lst is now:
[0] = "24 Bell Ave."
[1] = "24 Bell Ave."
[2] = "24 Bell Ave."
[3] = "24 Bell Ave."
[4] = "24 Bell Ave."
[5] = "24 Bell Ave."
[6] = "24 Bell Ave."
[7] = "24 Bell Ave."
[8] = "24 Bell Ave."
[9] = "24 Bell Ave."
To do this properly, we need to create a unique line for every element in lst:
Dim lst As New List(Of OnLine)
For i As Integer = 0 To 9
Dim ln As New OnLine(A, B)
ln.Transform(xform)
lst.Add(ln)
Next
Now, ln is constructed not just once, but whenever the loop runs. And every time it is constructed, a new piece of memory is reserved for it and a new address is created. So now the list memory layout is:
[0] = "24 Bell Ave."
[1] = "12 Pike St."
[2] = "377 The Pines"
[3] = "3670 Woodland Park Ave."
[4] = "99 Zoo Ln."
[5] = "13a District Rd."
[6] = "2 Penny Lane"
[7] = "10 Broadway"
[8] = "225 Franklin Ave."
[9] = "420 Paper St."
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
Added by David Rutten at 6:26am on September 9, 2010
of area...that is quite a lot depending on the application.
I was able to do a little parser to format the data correctly for Elk. It is not so elegant, but I include it as an example. I was able to retrieve more that 50,000 nodes. Of course, it takes time to download, so this blocks GH for a few seconds depending on how much you are retrieving.
One thing to note, the method I am using (XDocument.Load(url)) does not seem to include a 'timeout' property. Meaning that large queries might timeout...this happened to me. An alternative would be to just do a WebRequest which does have a timeout property or use an XMLResolver which I suppose could also have this property.
Here is the script. It has the following inputs:
urlPre (string):the url prefix for the mapquest xapi api. Should be:
"http://open.mapquestapi.com/xapi/api/0.6/*[bbox="
path (string):this is where you want to save the incoming data. I suppose this could be done without a local file, all in memory, but since elk wants a file name, it is here. I save data to a folder in my c drive, so a possible value could be:
"C:\Data\map.osm"
left (string):min longitude in decimal degrees
bottom (string):min latitude in decimal degrees
right (string):max longitude in decimal degrees
top (string):max latitude in decimal degrees
The output is just the filename you put into the Path input. You can then feed this to Elk.
Here is the script:
private void RunScript(string urlPre, string path, string left, string bottom, string right, string top, ref object A){string url = urlPre + left + "," + bottom + "," + right + "," + top + "]"; System.Xml.Linq.XDocument xDoc = System.Xml.Linq.XDocument.Load(url.ToString()); //Mapquest does not seem to return a proper bounds line, and it seems this throws something off, this next line adds the appropriate line System.Xml.Linq.XElement xElem = System.Xml.Linq.XElement.Parse(""<bounds minlat=\"" + bottom + "\" minlon=\"" + left + "\" maxlat=\"" + top + "\" maxlon=\"" + right + "\" />""); xDoc.Root.Add(xElem); xDoc.Save(path);A = path;}
This is 76995 nodes from what I can tell. Took about 129 seconds to compute everything according to GH.
…
t intensity and quality of view from a specific window. In healthcare literature there are strong experimental evidence supporting their significance. In equal time intervals we collected the daylight intensity data and then checked to see how often and where an agent will be pushed out of his/her comfort zone. The following image shows an example of this type of evaluation.
•Light: Over 10 seconds in light intensities over 800 lux or less that 300 lux
•Decision: More than 25% chance of making decisions
•Walking Distance: Continuously walked over 2500 ft
As you would expect we were involved in quite a lot of programming. Grasshopper does not provide an environment for extensive programming. You need to write everything in one page. You can use SDK connections to develop your own battery; however, every time you want to test the code, you need to compile it, add the battery to GH and test it. Also, GH does not provide a line by line debugging mode, which is a real barrier. I am sorry to say all of that when surrounded by great fans of GH … lool .. but I hope they take care of that soon :). So around a year ago, I faced real obstacles and switched to Autodesk Revit, and C# programming in Visual Studio IDE. Apart from the changes in platforms, the basic ideas are still unchanged.…
m SpaceGass, a structural analysis software.
Attached is a simple case I calculated, with a geometry of 10ft by 10 ft square, fixed on four end points. The mesh load applied is vertical to the surface and set as 0.07 kft. The cross section used is W5X16.
The following plot is the moment diagram from both Karamba and SpaceGass. The maximum moment from SpaceGass is about 1.9kft at the corner and the Karamba's result is 1.46kft, about 25% smaller.
I also tried line load for such structure and the line load condition matches well. The only disagreement is within the surface mesh load. I looked into the Karamba manual and went through the related posts in the forum, but did not find much useful information.
The karamba scripts are also attached for reference. Can someone provide any ideas? Anything would be appreciated.
…
Added by Lin to Karamba3D at 9:21am on December 12, 2018
s increasingly difficult to keep my data in order. My goal is a tree structure, where all the points on the vertical lines are in their own branches.
It starts like that, I have two sets of lines, with vertical "clipped" lines still neatly in their own braches, but then the curve-curve intersection kind of messes everything up. I did my best to organize the data back to understandable form using Path Mapper, but this method divides the clipped lines into their individual branches.
So my question is:
How could I get this point data organized in a way, that there would be 17 branches, holdind either 58 or 33 points, depending on the line?
In other words:
Can the consecutive 'N=23' and 'N=10' branches be combined somehow?
Thank you.…
is changed, by implementing timers, which is working quite good.
What I don't manage to do is to take multiple screenshots giving a continuous change. For example: if I am drawing a line, I would like GH to take 10 screenshots when x value of the first point is changed from 4 to 5, one screenshot every 0.1mm.
I have implemented a While Loop outputing x value with a step of 0.1mm whenever the objective is changed, but it looks like the system doesn't have time to take a screenshot for each value. How can I slow down this loop to get enough time for the rest of the GH code to execute?
I have tried to use System.Threading.Thread.Sleep, but it doesn't change anything. I guess it freezes as well the rest of the GH Code.
Thanks for your help,
PS: Grasshopper is an awesome tool, a big thanks to the developpers!
…
tres. Does this goes well with the IFC files or can i just make the structure in GH with sliders and use milimetres?
Since i changed it to "meters", so the integers are only ranged from 0 to 10 most of the time, the model works faster and its compatible with karamba. I just need to know if it also works to make an IFC since IFC files have mm as the standard.…
is that if you look at the example image I posted as well as the definition as I had it before, the angles of rotation get smaller as the midpoint of the lines get further away from the attractor point.
I've been grappling with this with little success. I'm not too used to thinking about angles in radians, which is part of the problem.
You can see that I attempted to set a distance range. The idea was that this would determine how far from the attractor point a line would have to be before it was no longer being effected by the attractor point (in this case, the max distance at which lines are effected is 20'). This works, however I'm not sure why I thought that would give me the diminishing angle sort of gradient effect I'm looking for.
I'll try to explain what I think I need to do, however I'm not sure I can do this.
It seems like I need to set up a ratio. For Example:
Distance: 0 to 20
Radian Angle: (result of current definition) to pi/2
So for example, if there was a line who's center point was 10' (half of total distance) away from my attractor point, it's radian angle of rotation would be halfway between it's current result and pi/2.
There may be a much simpler way to do this, I'm not sure, but any input you have would be more than welcome.
Again, thanks for your help thus far, whether or not you can help any further.
…