Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Get the solution for the attached problem in matlab code. Hand-in exercise 2 Implement the model for calculating the sun altitude angle and sun azimuth

image text in transcribed

Get the solution for the attached problem in matlab code.

Hand-in exercise 2 Implement the model for calculating the sun altitude angle and sun azimuth angle as a function of day number, latitude and hours before solar noon (chapter 4.3 in Jenkins and Ekanayake, and also found in the List of equations). (a) Plot the sun altitude angle vs the azimuth angle during one day this week in your home town. The result should look approximately like the plot below. (The hour indications - red rings in the plot below - need not be plotted.) Sun path diagram, 21 November, Casablanca Sun altitude 451 40 35 30 25 20 15 10 5 0 -80 -60 -40 -20 0 20 60 80 Sun azimuth angle (b) Now create the corresponding plot for Halmstad on 21 June. Note that the arcsin seems to select the wrong azimuth angle for low altitude angles (also noted in the book, page 129). Handle this by adding the following algorithm to your code (works for each location on the northern hemisphere): 1. Start by calculating x= tan & tan Z where & is the declination angle, and L is the latitude. 2. If x>1, modify the azimuth angle Z according to: Z = 180 + Zold where Z is the azimuth angle calculated using the original formula. Renewable Energy Systems, ER8024 3. If x 1 modify the azimuth angle Z according to: if Harccos x, Z= 180-Zold -180-Zold if

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers

Authors: Roy D. Yates, David J. Goodman

3rd edition

1118324560, 978-1118324561

More Books

Students explore these related Mathematics questions