Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solar vector discrepancy #177

Open
ParametricMonkey opened this issue Oct 10, 2019 · 5 comments
Open

Solar vector discrepancy #177

ParametricMonkey opened this issue Oct 10, 2019 · 5 comments

Comments

@ParametricMonkey
Copy link

Further to this issue and the forum post, there appears to be a discrepancy between how Ladybug, Revit and NOAA calculate sun vectors.

In Revit you cannot specify a location by defining lat/long - you need to drag and drop a pin. So I am using the existing location in Revit to create a Ladybug location rather than trying to match an epw file.

1

Then I create views from the sun and enable the sun settings. As you can see, the altitude and azimuth of the sun vector is different.

2

3

I appreciate that this might be a rounding error, but it is enough to ‘see’ shadows when creating views from the sun.

4

Can this be fixed or are we dealing with rounding issues?

Attached files are Revit 2019 and Dynamo 2.0.3 with the latest Ladybug version (0.2.1?)

Ladybug issue.zip

@chriswmackey
Copy link
Member

@ParametricMonkey ,
One suggestion I have is to use 2016 for the year in Revit instead of 2019. This is what ladybug is using under the hood:
https://github.com/ladybug-tools/ladybug/blob/master/ladybug/dt.py#L37
If you still see shadows at that point, I have a feeling that it might well be a rounding error.

@ParametricMonkey
Copy link
Author

@chriswmackey
I updated the sun settings in Revit to use the year 2016. Didn't make a difference so I guess it is a rounding error.
You don't happen to know which algorithm Revit is using under the hood to get its sun vectors?

@chriswmackey
Copy link
Member

I can't say that I know anything about the Revit sun position algorithm. Maybe it's worth a post to one of the Autodesk forums?

@mostaphaRoudsari
Copy link
Member

I think our approach should be to ensure ladybug calculation matches NREL's output.

@ParametricMonkey, back to Revit why don't you just Revit generated vectors as input for your study?

@chriswmackey
Copy link
Member

I can verify with some recent tests that I did that the ladybug Sunpath is perfectly in line with the NOAA solar calculator when you ensure that the years are matching. It looks like Revit is still off from the NOAA calculator by a hundredth of a degree so I don't know if it's still going to give you visible shadows but it might be worth re-testing this after we merge in this PR:
#214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants