ThomasSchuetz / SolarAnglesNet

C# implementation of common solar radiation models
MIT License
0 stars 0 forks source link

Request for info #13

Open heckl opened 7 months ago

heckl commented 7 months ago

Hi Thomas! I have some questions regarding SolarAnglesNet.

Is there a manual or just the readme.md and the test? SolarAngles.TiltedSurface has two parameters beta and gamma. What are those? (I want to calculate the angle for a horizntal surface.) The GetIncidenceAngle returns radian, isn't it? I got some result when I set a time for the night, e.g. 3 am, why is that? I also need the direction of the sun (east - west), may be it is called azimuth. Can I get it with your package? What is the GetHourAngle?

Whishes, István

ThomasSchuetz commented 7 months ago

Hello István,

Thanks for your interest in this project!

At the moment, there are just the readme, docstrings and the tests as documentation - no dedicated website or similar.

Beta and gamma describe the tilted surface. Documentation can be found here: https://github.com/ThomasSchuetz/SolarAnglesNet/blob/master/SolarAnglesNet/SolarAngles/TiltedSurface.cs

Yes, the functions should all return radian, so that they can be used easier in subsequent calculations. I chose degree as inputs for beta and gamma as this is more aligned with human intuition.

GetHourAngle should return the hour angle. Please check sources like the book "Solar engineering of thermal processes" by Duffie and Beckman for more information.

Best wishes, Thomas

heckl commented 7 months ago

Hello Thomas,

Thank you for the book. The docstrings also helps a lot. I have just two questions.

If the beta 0 then the sum of the IncidenceAngle and to altitude angle should be 90?

I try to calculate the position of the sun for a given time at a given location. If the previous assumption is correct then it is easy to calculate the altitude angle. But what about the azimuth angle of the sun? Can it be calculated by your nuget? If not do you have an idea how to extend this package.

Whishes, István