I'm making a program with matlab software to calculating solar radiation in selected location
this is calculating the solar energy in hour and day and month and year and trace the curve of the energy in deferent surface slope angle and gama angle in collector
please see solar energy engineering kalogirou ebook
there are three forms of equation for Ho, which one is for houly calculation and which one for daily or monthly or yearly calculations?
Also two form of equations are available for "Gon", in one, denominator 365 is multiplied by 25; whereas in other two equations there is on 365 in the denominator; which one is used for hourly or daily or montly or yearly?
Refer the text book named as "Solar Energy - Principles of Thermal Collection and Storage" by S.P.Sukhatme for better understanding and to find the method of calculation.
For these three equations it's important to know the units of measure of all participating variables. This could explain why sometime the intermediate results are estimated for seconds, or for minutes or for hour...
P.S. My favorite paper about this and other similar topics (very good for beginners) is this:
First equation for Ho, which starts with 24*3600/Pi, if you check the original paper, you will see there Ho has to be received in joules per sq.meter. The units of Gsc are Watts per sq.m. The equation looks this way because of the conversion from watts to joules: http://www.rapidtables.com/convert/electric/Watt_to_Joule.htm
Actually in the paper you sent me by email, there is a nomenclature section on page 2, where all variables are explained and you can see their units:
Ho - ..... [MJ/m^2]
but I suppose, this [MJ/m^2] is a mistake, because the result from eq.(21) should be in J/m^2, not in MJ/m^2 (guess why!). In such case better check the source of this formula - [25] in references list.
Please, check again the link, sent by Kamran Ramezani some posts ago. Here is it again:
It's very important to notice and think about the units of the participating variables. This is a very good way to understand the meaning of the equations
http://en.wikipedia.org/wiki/Units_of_measurement
or even to create new formulas:
http://en.wikipedia.org/wiki/Dimensional_analysis
...
One example of the importance of agreed units is the failure of the NASA Mars Climate Orbiter, which was accidentally destroyed on a mission to Mars in September 1999 instead of entering orbit due to miscommunications about the value of forces: different computer programs used different units of measurement (newton versus pound force). Considerable amounts of effort, time, and money were wasted.
On April 15, 1999 Korean Air cargo flight 6316 from Shanghai to Seoul was lost due to the crew confusing tower instructions (in metres) and altimeter readings (in feet). Three crew and five people on the ground were killed. Thirty seven were injured.
In 1983, a Boeing 767 (which came to be known as the Gimli Glider) ran out of fuel in mid-flight because of two mistakes in figuring the fuel supply of Air Canada's first aircraft to use metric measurements. This accident is apparently the result of confusion both due to the simultaneous use of metric & Imperial measures as well as mass & volume measures.
You can see text books on solar energy by S.P.Sukhatme, Tata McGraw Hill, or by Kreith Mc Graw Hill Publications. The procedure is available in most of the books on solar energy. There are various terms in the equation relating to sun and earth .