program_2 - CE 335 Programming Assignment 2 Optimization...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CE 335 Programming Assignment 2 Optimization: Orienting solar collectors The orientation of photovoltaic panels and solar water heaters relative to the sun determines how much sunlight they absorb, which we generally want to maximize. The sun's direction changes over the course of the day and through the seasons, forcing trade-offs if we have a fixed collector that will not be moved to track the sun; in some cases the collector can turn to follow the sun, like leaves do. The sun's location in the sky at different times of day and year is given by the following equations: Eq. 1: γ = 2 * π fractional_year Eq. 2: h = 2 * π (fractional_day - 0.5) Eq. 3: D = 0.006918 - 0.399912cos( ) + 0.070257sin( ) - 0.006758cos(2 ) + 0.000907sin(2 ) - γ γ γ γ 0.002697cos(3 ) + 0.00148sin(3 ) γ γ Eq. 4: cos( ) = sin( φ lat )sin(D) + cos( lat )cos(D)cos( h ) Eq. 5: tan( - ) = sin( θ π h ) / (sin( lat )cos( h ) - cos( lat )tan(D)) where the various symbols are: fractional_year the time of year, going from 0 at the beginning of the calendar year to 1 at the end of the year γ the time of year expressed as an angle fractional_day the time of day,
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern