Grasshopper

algorithmic modeling for Rhino

Hi,

I am getting strange results from the v.58 cumulativeSkyMtx component when I run the Reinhart skypatch model. See attached files and images. The Reinhart model reports an error saying it cannot read the weather data, yet it creates a skydome that is almost reasonable. Strangely, the Reinhart sky has lower values over the hourly sunpath lines.  I ran this all using the attached cumulativeSkyMtx module, which should have been updated to resolve an issue with the latest radiance release based on your another post.

 

The Tregenza sky model calculates fine, but might not be pixelated enough to show the issue that appears in the Reinhart model. Do you know what is going on?

 

As always, I'm a big fan of your work! Thanks for your help with this.

 

Views: 4010

Attachments:

Replies are closed for this discussion.

Replies to This Discussion

Hi Mostapha,

 

Thanks for looking into this. I think we have stumbled onto a bug in the code. See attached images and files.

 

With the Sr conversion values all at 1, I get the correct values you have shown. When I then convert those kWh/(m2Sr) output values into kWh by multiplying by the Sr values, I get the correct smooth distribution we expect. Notice how the values gradually get smaller then jump when the patch size changes dramatically. All values are proportional to patch area and Sr values as expected. The values shown below should be the same kWh patch values as those output by the original cumulativeSky module, only I did the Sr conversion in GH rather than in your python script.

 

Your standard module produces different results. As shown below, the raw kWh output values create strange bands that do not correlate with the patch steradian values. Instead of banding where the patch size changes dramatically, the results vary greatly between similar patch sizes. See below. The output values do not correlate with patch area or steradian values as expected.

This appears incorrect. I'm not an expert at python (which is why I love the work you have done) but I think the Sr values are being applied to the wrong patches somehow. If all Sr values were 1, this error would not show up, which may explain why your trouble-shooting failed to catch it.

 

To test this idea I changed the fifth value of your list from 1.0 to 0.5. As you can see in the image below, this changed the 4th patch row (now very blue), not the 5th. I think this is the issue. Do you agree?

I have attached both scripts for you to review. I used a Detroit epw file.

Attachments:

Hi Leland, Looks like something strange is going on with rows. I will take a closer look. Can't thank you enough for your comments.

Hi Leland,

Thank you for your checks. It was definitely helpful. So there was two issues that I needed to address. Both of them were causing minor differences in a way that was so hard to realize by just looking to the results but your trick for putting .5 was really helpful to trace them down.

The main issue was that dayskymtx generates an extra patch for the ground (which is the first one in the results), I was taking care of this is selectSkyComponent but as a result I was multiplying the last patch of each row with the wrong str. angle. If you rotate the sky once you set one of the numbers to .5 you could see that.

The second issue was that the order of angles was reversed which was an easy fix.

Image below shows the sky before conversion on the left, the one with conversion from the angles in the middle and the one with ladybug internal conversation in the right. As you can see the values are very similar. The angles that comes from the geometry is slightly different from the ones from Radiance which is negligible.

I was thinking maybe even for the sake of visualization I should show the values before the conversion in sky dome but I assume that makes it hard for some users to use the values for their own studies as they have to find the angles from geometries so I just left it as it is for now. Let me know your thoughts on this. I hope this fix finally closes this discussion. :)

Attachments:

and I think that blue ring on the top is strange but it makes sense when you look at the conversion numbers.

Mostapha,

Thanks for following up on this, I'm happy we fixed it. Please let me know when the updated .ghuser object is up on the gitHub and I will replace my files.

 

-Leland

Thanks Leland. The version on github is already updates! I also fixed update components so you can use them as an alternative to update the userobjects.

Mostapha,

I am having a few issues with the new userobject file from the GitHub. See images below.

old version of gencumskyMtx

 

 

new version of GencumskyMtx

There are two issues:

1: The cumulative sky dome viewer returns the error "sky type not found". It just recently changed to give me a runtime error, index out of range 144.

2: The selectSkyMtx object now returns all text, where before it returned text and number values. I can get around this issue using your ladybug split text/numbers module, but I thought it may lead to where the issue is.

Any idea what is causing this?

Attachments:

Leland: You need to update some of the components in your file. Get the most updated from the github. After that it should work. It does  on my system.

-A.

Abraham is right. Attached is the updated file. I also added the version check so it gives you a warning in case you are using it with the wrong version.

Here is the file!

Attachments:

I'm all set. Thanks for the help!

Very interesting Thank you!

One question, about a simpler topic: I see on the first attached image by mr Leland Curtis that the sunpath is overlapped to the sky dome. How can i do it?

Thank you.

M

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service