Question: Please do on matlab accurately and simply: E = A * H * r * PR E = Energy ( kWh ) A = Total
Please do on matlab accurately and simply: E A H r PR E Energy kWh
A Total solar panel Area m
H Solar radiation hitting the panels kWhm
r solar panel yield or efficiency
PR Performance ratio efficiency of the system of controller, inverter, and connecting cables The problem is we know many of these values will change radically with time. Solar radiation H will obviously change throughout
the day, and by season as well. Additionally, the solar panel yield r will vary with air temperature. It usually hovers around but
will decrease if the panels get too hot.
Because of this, it would be incredibly helpful to have some time series data to make calculations, maybe even a few years worth, to
be able to capture the effect of the seasons. Fortunately, we have that data for you! Calculations & Coding
Based off all of these assumptions and research we would like you to make the following calculations using a Matlab Script.
Step : Load in the raw data
Simply load in the data from the given excel file and separate the columns into relevant vectors.
Step : Calculate r at each time
This will require a simple algorithm to be applied. Most r values will be equal to rbaseline Table However, if the air
temperature is above oC you need to apply the following equation:
r rbaselineatmp
Equation : Finding temperature adjusted r values
Step : Calculate & plot the Energy output E of the system at each time
After youve calculated r for each timestep, this can be calculated using equation Be aware, this may require some unit
conversion.
Step : Calculate & plot the amount of energy in the systems battery in each time step
This will require you to create your own algorithm to determine what will happen to battery storage at each time step. Will
it increase because you have surplus energy being produced? Will it be depleted because you arent producing enough
energy for your home? I would recommend charting this out using a logic diagram before coding. Any such diagram would
be a HIGHLY encouraged addition to your report.
Step : Calculate & plot how much energy you will need to get from the energy company to keep your
house running at each time step.
Its very possible at some times you wont have enough energy from your battery and solar panels combined to run your
home. In this case, youll need to buy some from the power company. Calculate at each time step if you need to buy
electricity and if so how much. Hint: this will likely require another simple algorithm.
Step : Calculate how much money you would save over the hypothetical year period by having the
solar panels.
For this piece we will assume that total energy costs are just the sum of all energy purchases in kWh multiplied by the
assumed centskWh value given in table Do this for your solar pan el scenario youve just built as well as a scenario in
which you just bought all of your electricity from the grid.
Data Collection Already done by instructors:
We the instructional team have aggregated years worth of hourly data on parameters for you, that will be needed to solve this
problem. Youre welcome
The solar energysolar flux hitting our home H This is actual data provided by MSUs enviroweather station in East
Lansing. Our thanks to Steve Marquie and the team at Enviroweather.
Air temperature also via Enviroweather.
Standard home energy use data in the Lansing area.
Data courtesy of the National Renewable Energy Laboratory via Open EI
These datasets have been aggregated into a single excel file for you to load into Matlab. The variable names and units are listed
below.
Table : Names and Units of Variables Included in the project csv file
Value Name Unit
Home Energy Use HomeUse kWh
Air Temperature atmp Deg C
Solar Flux srad kJm Watch those units!
Assumptions Already done by instructors:
To move the project forward, we will make a few assumptions about constant values. These are listed below:
Table : List of predetermined project assumptions with units
VariableConstant Value Note
Array Area A m Approximately rooftop pannels
PR Accounts for invertor and line losses
rbaseline Baseline efficiency, well need to adjust for temp to find the true r at each time
Battery Capacity kWh Based on Tesla home battery
Price of Electricity $kWh Current average residential price in Michigan
Total System Cost $ Rough estimate. Includes all components and installation fees
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
