Grasshopper

algorithmic modeling for Rhino

How to simplify multiple components of: List Item, Expression, and Split Tree

I want do two things:

1. I want to extract lists from tree with branches. The lists needed to be extracted from certain indexes, so currently I use 10 (indexes) of "List Item" Components. Is there any other way?

Also, from these, I want to make another list with simple expression of Ifs. There are at least ten of them so I feel there is another way more fficient than copying 10 expressions, is there?

2. For other uses, I want to sort results from Annual Daylight simulation (the data is annual illuminance). The result ives me 1 branch of illuminance values for certain hours at certain points, whereas I want is in a branch there are annual values of illuminance of 1 point only (say there is 10 points, from branch of "tens", I want to make branch of "8670"-s).

Currently I use 10 "Split Tree" component and Entwine to combine them. But, (again) is there any other way?

Thank you so much. (I attached the file btw)

Views: 1137

Attachments:

Replies to This Discussion

Hi.

I don't understand what are you going to do, anyway, you can make your definition a little simpler.

If I knew exactly what you were going to do, I might be able to make it even more simpler.

See "Red Group".

Attachments:

Thank you so much Hyungsoo Kim! Your modification is what I need (didn't know 'Flip Matrix' can do it all)

I'm sorry if I'm not clear enough, here's more detailed and clear one:

***

1. The whole objective: I want to calculate annual lighting energy consumption and annual illuminance value because of electric lighting and daylight.

2. To do this, I make my own lighting schedule based on simple supposed-to-be 'lux sensor'. The scheduling will be stored in "S_T_(something)" number component (picture A).

Based on daylighting of certain points, if the illuminance at the point don't reach 300 lux then the luminaire will be 'On' (1 because I use only manual switch). Some luminaire will be turned on if one of the two points doesn't meet 300 lux (thus the need of 'OR' gate).

The rest is just usual addition and multiplication to obtain the annual energy consumption (picture B).

3. For the annual illuminance, based on scheduling, the illuminance value of daylighting and electric lighting ("T_[something]" number component) will be added (picture C). Then we get the annual illuminance value.

Some say the clustered one makes it more heavier to compute. Is there another way I don't ned to use Cluster? (Picture C)

*By the way, all the calculation need to be matched with Occupancy value (it will be computed only when Occupancy is "1").

***

Where do you think it can be simplified even more? I think the expressions makes the calculation a bit heavy, but I don't how to simplify it even more. I suspect making the whole canvas as script will be more efficient, but I don't have any clue in programming language.

I will be waiting for your great replies!

Attachments:

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service