Abstract

This paper presents new approximation formulas for the determination of the equation of time and declination angle. The proposed approach is based on the cubic spline interpolation techniques defined for sixteen or twenty chosen knots over the whole year. The results obtained by the proposed formulas for both equation of time and declination angle show marked improvements in terms of speed and sum of squared errors and maximum absolute error over the whole year in comparison with other five existing methods for analytical evaluation of equation of time and two existing methods for analytical evaluation of declination angle.

1. Introduction

The quantity of solar radiation reaching any particular part of the earth’s surface is determined by the position of the point, time of year, atmospheric diffusion, cloud cover, shape of the surface, and reflectivity of the surface [1]. At any given time, the position of the sun relative to the plane of celestial equator describes the declination angle (DA) [2].

Different time systems are in use. Legal clock time differs from solar time. Solar time is determined from the movements of the sun. This time system is usually called local apparent time (LAT). Local mean time (LMT), often called clock time or civil time, differs from the LAT. The conversion of time systems requires knowledge both of the longitude of the site and the reference longitude of the time system being used. The conversion also requires the application of the equation of time (EOT), which accounts for certain perturbations in the rotation of the earth about its polar axis [3].

In the present work two new interpolating formulas are suggested for the determination of the EOT and the DA which are based on cubic spline functions. This form of interpolating technique has been successfully implemented for variety of engineering applications where fast and reliable evaluations of some mathematical functions are the main objectives [4–6].

2. Existing Formulas

2.1. Equation of Time (EOT)

The first expression for the EOT in minutes reported in [7] is given in terms of sine function defined over three different sections of the year as follows:ξ‚€EOT(𝑛)=βˆ’9.00sinπ‘›βˆ’128.648βˆ’5,1<𝑛<100=5.00sinπ‘›βˆ’10022.632βˆ’1,100≀𝑛≀242=18.6sinπ‘›βˆ’24239.248βˆ’2,243≀𝑛≀366.(1)

𝑛 is the day number of the year (e.g., 𝑛=1 on January 1 and 𝑛=33 on February 2).

The second expression for the EOT in minutes reported in [8] is based on five terms of the Fourier expansion and is given by[],EOT(𝑛)=229.180.000075+0.001868cos(𝑀)βˆ’0.032077sin(𝑀)βˆ’0.014615cos(2𝑀)βˆ’0.04089sin(2𝑀)(2) where 𝑀 is the day angle in radian (𝑀=2πœ‹(π‘›βˆ’1)/365) and 𝑛 is the day number.

The third expression for the EOT reported in [9] is given byEOT(𝑛)=9.87sin(2𝛽)βˆ’7.67sin(𝛽+78.7∘),(3) where 𝛽=360(π‘›βˆ’81)/365 degrees, and 𝑛 is the day number.

The fourth expression for the EOT reported in [10] is given byEOT(𝑛)=229.18βˆ’0.0334sin2πœ‹βˆ—π‘›ξ‚ξ‚€365.24+0.04184sin4πœ‹βˆ—π‘›,365.24+3.5884(4) where 𝑛 is the day number of the year (e.g., 𝑛=1 on January 1 and 𝑛=33 on February 2).

The fifth and final expression for the EOT reported in [11] is given byEOT(𝑛)=9.87sin(2𝛽)βˆ’7.53cos(𝛽)βˆ’1.5sin(𝛽),(5) where 𝛽=360(π‘›βˆ’81)/364 degrees and 𝑛 is the day number.

2.2. Declination Angle (DA)

The first expression for the DA in degrees reported in [2] is given in terms of the following sine function approximation formula:ξ‚΅DA(𝑛)=23.45sin360(𝑛+284)ξ‚Ά365,(6) where 𝑛 is the day number of the year (e.g., 𝑛=1 on January 1 and 𝑛=33 on February 2).

The second expression considered for the DA in degrees reported in [8] is based on the following seven-term-Fourier expansion:[],DA(𝑛)=57.2960.006918βˆ’0.399912cos(𝑀)+0.070257sin(𝑀)βˆ’0.006758cos(2𝑀)+0.000907sin(2𝑀)βˆ’0.002697cos(3𝑀)+0.001480sin(3𝑀)(7) where 𝑀 is the day angle in radian, (𝑀=2πœ‹(π‘›βˆ’1)/365) and 𝑛 is the day number.

3. New Approach

Polynomial approximation is most often recommended for function evaluation as any continuous function can be approximated in this way, and the implementation only consists of additions, multiplications, and powers [12]. This paper introduces a new approach for the fast and reliable determination of the EOT and DA based on cubic spline polynomial interpolation functions. Instead of approximating a given function 𝑓(π‘₯) over an interval [π‘Ž,𝑏] by a single polynomial, one may divide [π‘Ž,𝑏] into 𝑛 subintervals [π‘Ž,π‘₯1],[π‘₯1,π‘₯2],…,[π‘₯π‘›βˆ’1,𝑏] and approximate 𝑓(π‘₯) by different polynomials on each subinterval. For example, we may recall that the repeated midpoint, trapezoidal, and parabolic rules for approximate integration result from the process of replacing the integrand by piecewise polynomial approximations of degrees 0, 1, and 2, respectively, with subintervals of uniform length. In the first case the approximation (a step function) generally is discontinuous at each division point π‘₯π‘˜; in the other two cases this statement applies instead to the derivative.

For some purposes, particularly for numerical differentiation, it is highly desirable that the joins of the separate arcs be as smooth as possible. Specifically, if it is required that in each subinterval the approximation 𝑠(π‘₯) be a polynomial of maximum degree 3; that is, 𝑠(π‘₯) agrees with 𝑓(π‘₯) at each of the 𝑛+1 points (π‘₯0=π‘Ž, π‘₯1,π‘₯2,…,π‘₯π‘›βˆ’1, π‘₯𝑛=𝑏) and that the first and second derivatives π‘ ξ…ž(π‘₯) and π‘ ξ…žξ…ž(π‘₯) be continuous on [π‘Ž,𝑏]; then, 𝑠(π‘₯) is called a cubic spline [13–15]. Assume that the values of the EOT and DA at 𝑛 days (π‘₯1,π‘₯2,…,π‘₯𝑛), where π‘₯1 is 1 and π‘₯𝑛 is 366, are given to be (𝑦1,𝑦2,…,𝑦𝑛), respectively. Then the cubic spline functions are defined as set of third-degree polynomials that goes through each of the 𝑛 data points (knots) and has continuous first- and second-order derivatives. Consider the subinterval (π‘₯𝑖toπ‘₯𝑖+1), and letβ„Žπ‘–=π‘₯𝑖+1βˆ’π‘₯𝑖,π‘Ÿ=π‘₯βˆ’π‘₯π‘–ξ€Έβ„Žπ‘–,𝑑=1βˆ’π‘Ÿ,(𝑖=2,3,…,π‘›βˆ’1).(8)

Then the cubic spline function 𝑓(π‘₯) on this interval may be given by𝑓(π‘₯)=π‘Ÿβ‹…π‘¦π‘–+1+𝑑⋅𝑦𝑖+β„Ž2π‘–β‹…π‘Ÿξ€Ίξ€·3ξ€Έβˆ’π‘Ÿβ‹…π‘ π‘–+1+𝑑3ξ€Έβˆ’π‘‘β‹…π‘ π‘–ξ€»,(9) where 𝑠𝑖=π‘“ξ…žξ…ž(π‘₯𝑖)/6 (𝑖=2,3,…,π‘›βˆ’1),𝑠1=ξ€·β„Ž1+β„Ž2⋅𝑠2βˆ’β„Ž1⋅𝑠3β„Ž2,𝑠𝑛=ξ€·β„Žπ‘›βˆ’1+β„Žπ‘›βˆ’2ξ€Έβ‹…π‘ π‘›βˆ’1βˆ’β„Žπ‘›βˆ’1β‹…π‘ π‘›βˆ’2β„Žπ‘›βˆ’2.(10)

In this form 𝑠1 is taken as linear extrapolation from 𝑠2 and 𝑠3 and 𝑠𝑛 as linear extrapolation from π‘ π‘›βˆ’1 and π‘ π‘›βˆ’2, respectively [14].

These 𝑛 spline coefficients (𝑠𝑖, 𝑖=1,2,…,𝑛) are then determined numerically by implementing a MATLAB program based on Gaussian elimination without scaling or pivoting [15].

4. Results and Discussion

The spline coefficients of (9) for the EOT and DA were determined by implementing a MATLAB program. Tables 1 and 2 show the 16 and 20 knots taken in calculating the spline coefficients, respectively. These knots were selected from the full tabular values of EOT and DA given in [16, 17].

A comparative study was performed for the five expressions for EOT considered in (1) to (5) with the proposed spline formula of (9), respectively. A similar comparative study was also performed for DA for the two expressions of DA considered in equation (6), equation (7) with the proposed spline formula of (9), respectively.

MATLAB programs were implemented to evaluate the Sum of Squared Errors (SSE), Maximum Absolute Error (MAE) and Average Absolute Error (AAE) calculated over the whole year for all the cases considered above with respect to the data given in [16, 17] which represents the reference values of the equation of time and declination angle. Further details for these expressions are given in the appendix. The results are shown in Tables 3 and 4 for the EOT and DA, respectively. A graphical representation of the errors over the whole year with reference to the tabulated data of [16, 17] for the six expressions of the EOT, and the three expressions of the DA are displayed in Figures 1 and 2, respectively.

It can be seen from the results in Tables 3 and 4 and also from the graphs of Figures 1 and 2 that the use of the cubic spline functions reported in this paper offers the best results in terms of sum of the squared errors and maximum errors. Hence, it can be concluded that the use of cubic spline functions promises to be very useful mathematical tools in applications where speed and accuracy are of the prime objectives.

Many new high-performance field programmable gate array (FPGA) technologies provide built-in multifunction modules that have general applicability to a wide range of applications [18]. The fast and reliable determination of the EOT and the DA plays an important role in various fields of solar energy. It follows that the approach proposed in this paper may play an important role in the FPGA based applications used for the fast and accurate calculations of the position of the sun over the year [19].

5. Conclusion

The use of cubic spline approximation method has been developed for solar tracking applications as well as those concerned with classical navigation. The main benefits of using the cubic spline functions are the following (i) it is a relatively smooth curve, (ii) it never overshoots intermediate values, and (iii) interpolated values can be calculated directly without solving a system of equations. Cubic spline interpolation is a powerful data analysis tool. Splines correlate data efficiently and effectively no matter how random the data may seem.

For systems requiring little data-processing capability such as microcontrollers and low-range microprocessors the spline approach can be the best choice. If the computation needs are greater, more powerful microprocessors, or even digital signal processors (DSPs), should be considered. This type of solution (microprocessors and DSPs) is very flexible as the development work mainly consists in generating programs. Which number of knots are to be chosen in the determination of the equation of time and declination angle remains to be a tradeoff between the computation speed and the acceptable error level.

For getting higher performances, it may be necessary to develop specific algorithm. A first option is to use a programmable device, for example, a FPGA.

Appendix

The SSE over the 365 days of the year is defined asSSE=365𝑖=1ξ€·π‘Œπ‘Žπ‘–βˆ’π‘Œπ‘ π‘–ξ€Έ2=365𝑖=1𝑒2𝑖,(A.1) whereπ‘Œπ‘Žπ‘– is the value of EOT or DA obtained at true noon at the 𝑖th day of the year and π‘Œπ‘ π‘– is the value of EOT or DA obtained from the proposed spline function at the 𝑖th day of the year.

The MAE over 365 day is defined as the largest absolute error over the whole year:||𝑒MAE=MAX𝑖||1≀𝑖≀365.(A.2) The AAE given byβˆ‘AAE=365𝑖=1||𝑒𝑖||365.(A.3)

Acknowledgment

The first author, F. Al-Naima, wishes to acknowledge the financial support of the IIE’s Iraq Scholar Rescue Project.