Dec 03, 2024 | 645 words | 6 min read
14.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 Figure 2.
The geometric parameters of a blind are:
\(W\) = slat width (mm)
\(S\) = slat spacing (mm)
\(M\) = width of slat that is illuminated (mm)
\(\sigma\) = vertical shadow angle (given in degrees)
\(\Psi\) = slat angle with horizontal (given in degrees)
Additionally, the blind surface material has an absorptivity constant, \(a\) (alpha). This is a dimensionless value between 0-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 14.6. You will write and use user-defined functions to calculate the transmission and absorption values for three settings of the blind Table 14.7.
Blind Parameters |
|
---|---|
Slat Spacing (\(S\)) |
50 mm |
Slat Width (\(W)\) |
60 mm |
Absorptivity Constant (\(a\)) |
0.76 |
Shadow Angle (\(\sigma\)) |
45 degrees |
Parameter |
Slat Angle with the Horizontal (\(\Psi\)) |
---|---|
Setting 1 |
30 degrees |
Setting 2 |
45 degrees |
Setting 3 |
60 degrees |
Part A#
Draft a flowchart for this task and save it in the already created pdf, ma3_team_teamnumber.pdf.
Open the MATLAB Template
ENGR133_MATLAB_Template.m
and fill out the header information. Write a script named ma3_team_3_partA_teamnumber.m that:Initializes the given values of the blind parameters from Table 14.6 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
OUTPUTS
for all three blind settings.
Hint
Use a
for
loop.
Publish this file as ma3_team_3_partA_teamnumber.pdf
Sample Output#
Sample Output
>> ma3_team_3_a_teamnumber The transmission value for Blind 1 at angle 30.0 is -0.57. The absorption value for Blind 1 at angle 30.0 is 1.39.
The transmission value for Blind 1 at angle 45.0 is -0.65. The absorption value for Blind 1 at angle 45.0 is 1.42.
The transmission value for Blind 1 at angle 60.0 is -0.61. The absorption value for Blind 1 at angle 60.0 is 1.34.
Part B#
Draft a flowchart for this task and save it in the already created pdf, ma3_team_teamnumber.pdf.
Open the MATLAB Template
ENGR133_MATLAB_Template.m
and fill out the header information. Write a script named ma3_team_3_partB_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
MA3_Blind_Settings_Data.csv
underINTIALIZATION
. The slat angle with the horizontal will be a vector of the entire last row.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
OUTPUTS
section. 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 ma3_team_3_partB_teamnumber.pdf
Below is a sample output of the two plots for this task.