Get the solution for the attached problem in matlab code. Hand-in exercise 2 Implement the model for
Fantastic news! We've Found the answer you've been seeking!
Question:
Get the solution for the attached problem in matlab code.
Transcribed Image Text:
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 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
Expert Answer:
Posted Date:
Students also viewed these mathematics questions
-
Matching Financial Statement Items to Financial Statement Categories According to its annual report, P&Gs more than 250 brands include Pampers, Tide, Ariel, Always, Whisper, Pantene, Bounty,...
-
At the beginning of its current fiscal year, Willie Corp.'s balance sheet showed assets of $12,400 and liabilities of $7,000. During the year, liabilities decreased by $1,200. Net income for the year...
-
Air enters a pipe at 65C and 200 kPa and leaves at 60C and 175 kPa. It is estimated that heat is lost from the pipe in the amount of 3.3 kJ per kg of air flowing in the pipe. The diameter ratio for...
-
The Petaluma Daily Times Corporation (CDT) publishes a daily newspaper. A 52 -week subscription sells for \(\$ 260\). Assume that CDT sells 100 subscriptions on January 1. None of the subscriptions...
-
Suzy contributed business-related assets valued at $360,000 (basis of $200,000) in exchange for her 40% interest in the Suz-Anna Partnership. Anna contributed land and a building valued at $640,000...
-
The Vinny Cartier Company issued bonds at $ 1 , 0 0 0 per bond. The bonds had a 3 0 - year life when issued, with semiannual payments at the then annual rate of 1 4 percent. This return was in line...
-
Points] Find the slope of the tangent to the graph of the given function at the indicated point. HINT: [Recall that the slope of the tangent to the graph of fat x = a is f'(a).] g(x) = 2x4; (-2, 32)...
-
The cost of flood damage from significant storms varies as a function of the severity of the storm. Estimate the expected flood damage due to the next significant storm. Flood Flow, Million Acre-Ft...
-
Some companies refrain from using financial derivatives to manage their foreign exchange exposures. They consider derivatives such as forwards, futures, and options as speculative. They also believe...
-
Cash flows from two investment opportunities are given below. Year CFA CFB 0 -$1,000 -$1,000 1 +$100+$800 2 +$200+$300 3 +$400+$300 4 +$700+$200 5 +$800+$200 If the cost of capital is 10%, what is...
-
Statement of Financial Position Cash$4,000 Credit Cards$25,000 Traditional IRA$25,000 Student Loans Outstanding$20,000 Investments$40,000 Personal Residence Mortgage Outstanding$200,000 Personal...
-
Jones Company, a reputable business entity, encounters a common accounting scenario involving accounts receivable and the allowance for bad debts. In this scenario, Jones initially wrote off $500 of...
-
What mass of ammonium chloride should be added to 2.55 L of a 0.145 M NH3 to obtain a buffer with a pH of 9.65? (Kh for NH3 is 1.8 x 10-5) Express your answer using two significant figures. ? m = g...
-
In your audit of Garza Company, you find that a physical inventory on December 31, 2012, showed merchandise with a cost of $441,000 was on hand at that date. You also discover the following items...
-
Is flowcharting useful in analyzing the resources required to implement a system?
-
What important feature is common to analytic, document, and forms distribution charts?
-
Symbol A could represent (a) computation of gross pay. (b) input of payroll data. (c) preparation of paychecks. (d) verification of pay rates.
Study smarter with the SolutionInn App