Dec 04, 2025 | 679 words | 7 min read
16.2.3. Task 3#
Learning Objectives#
Create user defined functions in MATLAB. Create plots in MATLAB.
Introduction#
Energy conversion is a concern for many engineering disciplines. For example, heating, ventilation, and air conditioning (HVAC) requires an engineer to understand how heat flows in and out of a building. One way that heat interacts with a building is through windows. Solar radiation enters the building through windows. Horizontal blinds on a window can control how much solar radiation passes through.
Horizontal blinds transmit, absorb, and reflect solar radiation, and these radiation values can be calculated. The calculations require knowledge of the operational geometry of a horizontal blind, as shown in Fig. 16.2.
Fig. 16.2 Operational geometry of a horizontal blind.#
The geometric parameters of a blind are:
\(S\) = slat spacing (\(\milli\meter\))
\(W\) = slat width (\(\milli\meter\))
\(M\) = width of slat that is illuminated (\(\milli\meter\))
\(\Psi\) = slat angle with horizontal (given in degrees)
\(\sigma\) = vertical shadow angle (given in degrees)
Additionally, the blind surface material has an absorptivity constant, \(\alpha\) (alpha). This is a dimensionless value between \(0\) and \(1\).
When the slats of the blind are fully illuminated (i.e., when \(M\) = \(W\)) by incoming light, there are three fractions that are used in the transmission and absorption equations:
\(F_1\): Fraction of total radiation reflected by the lower slat that passed into the room when the whole width of a slat is illuminated.
\(F_2\): Fraction of total radiation reflected by the lower slat that is intercepted by the upper slat when the whole width is illuminated.
\(F_3\): Fraction of radiation reflected by the upper slat that passes into the room.
With the fraction results, you can use the following equations to determine the total fraction of radiation transmitted, absorbed, and reflected by the blinds when the blind slats are fully illuminated.
The total fraction of radiation transmitted by the blind is
The total fraction of radiation absorbed is
Task Instructions#
You are given the parameters for a specific set of blinds Table 16.7. You will write and use user-defined functions to calculate the transmission and absorption values for three settings of the blind Table 16.8.
Blind Parameters |
Values |
|---|---|
Slat Spacing (\(S\)) |
\(\qty{50}{\milli\meter}\) |
Slat Width (\(W)\) |
\(\qty{60}{\milli\meter}\) |
Absorptivity Constant (\(\alpha\)) |
\(0.67\) |
Shadow Angle (\(\sigma\)) |
\(\qty{25}{\degree}\) |
Blind Parameter |
Settings |
|---|---|
Slat Angle with the Horizontal (\(\Psi\)) |
\(\qty{10}{\degree}\), \(\qty{20}{\degree}\), \(\qty{30}{\degree}\) |
Part A#
Draft a flowchart for this task and save it save it as ma2_team_3_teamnumber.pdf.
Open the MATLAB Template
ENGR133_MATLAB_Template.mand fill out the header information. Write a script named ma2_team_3_a_teamnumber.m that:Initializes the given values of the blind parameters from Table 16.7 under
INTIALIZATION.Calls the user-defined functions created in Task 2 under
CALCULATIONS.Prints the results from the transmission and absorption UDFs to the command window under
OUTPUTSfor all three blind settings.
Hint
Use a
forloop.Publish this file as ma2_team_3_a_pub_teamnumber.pdf
Do the results for the transmission and absorption value seem reasonalble? Why or why not? Discuss this with your team and write a short explanation in the PDF file ma2_team_3_teamnumber.pdf.
Sample Output#
Sample Output
>> ma2_team_3_a_teamnumber The transmission value for the blind at angle 10.0 is 0.31. The absorption value for the blind at angle 10.0 is 0.60.
The transmission value for the blind at angle 20.0 is 0.13. The absorption value for the blind at angle 20.0 is 0.74.
The transmission value for the blind at angle 30.0 is -0.02. The absorption value for the blind at angle 30.0 is 0.85.
Part B#
Draft a flowchart for this task and save it in the already created pdf, ma2_team_3_teamnumber.pdf.
Open the MATLAB Template
ENGR133_MATLAB_Template.mand fill out the header information. Write a script named ma2_team_3_b_teamnumber.m that: (This will be similar to Part A, so it will benefit your team to do Part A, together first.)Initializes the given values of the blind parameters from the
MA2_Blind_Settings_Data.csvunderINTIALIZATION. The slat angle with the horizontal will be a vector of the entire last column.Loops through all the values for the slat angle with the horizontal and calculates the total fraction of radiation transmitted by the blind and the total fraction of radiation absorbed by the blind using the user-defined functions created in Task 2 under
CALCULATIONS. Make sure to save the calculated values for Transmission and Absorption to a vector.Uses the plotting function made in the Pre-Class Task 0 to plot the Absorption Value vs. Slat Angle with the Horizontal and the Transmission Value vs. Slat Angle with the Horizontal under the
OUTPUTSsection. You may want to add more arguments to your plotting function so that the function can take in strings for the title, x-axis label, y-axis label, and color. The plotting function can be copy and pasted into the bottom of your MATLAB file.
Publish this file as ma2_team_3_b_pub_teamnumber.pdf
Sample Output#
Fig. 16.3 Case__Absorption_Value_vs_Slat_Angle_(degrees).png#
Fig. 16.4 Case__Transmission_Value_vs_Slat_Angle_(degrees).png#
Deliverables |
Description |
|---|---|
ma2_team_3_a_teamnumber.m |
Your completed MATLAB code. |
ma2_team_3_b_teamnumber.m |
Your completed MATLAB code. |
ma2_team_3_a_pub_teamnumber.pdf |
PDF with published MATLAB code |
ma2_team_3_b_pub_teamnumber.pdf |
PDF with published MATLAB code |
ma2_team_3_teamnumber.pdf |
Flowchart(s) for each part of this task. |