SlideShare a Scribd company logo
1 of 48
Exploiting Weather Conditions for Minimizing Transportation Energy1
By Michael Servatius2
University of Notre Dame, Department of Mechanical Engineering
Fall 2014
1 In part supported by NSF Grant 1239224
2 Advised by Peter Bauer
Servatius 2
Table of Contents
I. Abstract—Page 3
II. Introduction—Pages 3-5
a. Motivation and Process—Pages 3-4
b. Prior Research and Resources—Page 4
c. Nomenclature and Notation—Pages 4-5
III. Results—Pages 5-17
a. Constant Drive Speed—Pages 5-16
i. Theoretical Straight Line Distance Energy Evaluation—Pages 5-6
ii. Comparing Energies of Different Routes Across the U.S.A—Pages 6-9
iii. Comparing Energies of the Same Route on Different Days—Pages 9-12
iv. Theoretical Map Showing Winds Necessary to Save Energy—Pages 12-16
b. Changing Driving Speed—Pages 16-17
IV. Conclusion—Pages 17-21
a. What We Learned—Pages 17-18
b. Future Work—Pages 19-21
i. Continued Research—Pages 18-19
ii. Implementation—Page 20-21
c. Significance—Pages 21-22
V. References—Page 23
VI. Appendix—Page 23-47
Servatius 3
I. Abstract
The main objective of the work done this semester was to determine the effects (and their
magnitude) of weather on transportation energy. While this work can be applied to anything
from snow on the ground to humidity in the air, we focused on the effects that wind conditions
have on energy consumption. This work can be useful for any drivers, but the simulations were
all done with a truck in mind. Universities and research companies should highly consider
looking further into the influence of weather on energy intake, as our findings show that it can
have a major impact on saving energy, and thus money, if the weather conditions are considered
appropriately.
II. Introduction
a. Motivation and Process
The motivation behind this work was to explore something that could be very important
to energy and cost savings in the transportation industry, yet has very little research done already
on it. The first thing that we studied was the energy difference between different routes from one
point to another. We found that in some cases, it may be worthwhile to travel a slightly longer
distance in order to save some energy. This is done by taking advantage of wind conditions. In
other words, avoiding headwinds and trying to drive with tailwinds can make a big difference in
energy use.
Next, experiments were done to compare energy consumption on different days. Real
time wind conditions were tested on a relatively calm day, and then on a very windy day. The
energy uses were very different. This work brings the question of whether delaying or pushing
up transportation could be beneficial. For instance, a company may be able to save a good deal
of energy, and therefore money, if they chose to travel on a day with tailwinds rather than a calm
Servatius 4
day or a day with headwinds. Of course, this type of decision can only be applied in very unique
circumstances, but sometimes the little things can make a big difference.
The studies involving the testing of different routes and changing travel day were both
done at constant speed, so our next experiment dealt with altering the speed based on the wind
conditions. Overall, we found that changing speeds based on winds and keeping the relative wind
speed the same throughout a drive can have significant impacts on energy. We only touched the
surface of this idea, however, and there is much more that can, and should, be explored in terms
of changing speeds based on weather.
b. Prior Researchand Resources
There has been very little research done involving weather and its impact on
transportation energy. Hopefully, people see the possibilities that can come with maximizing
energy use based on weather and the topic is explored further in the future. In terms of our work,
the starting point was [1]. The equations and theory in this text was the backbone of the research,
as the energy equations were used along with wind conditions to prove that weather can have a
major impact on energy. Furthermore, we looked a little bit into systems that update routes based
on traffic conditions to explore if this could eventually become a reality with wind and other
weather conditions.
c. Nomenclature and Notation
As suggested earlier, the energy equation from Ehsani et al was the main driving point
behind the work done. The energy equation a can be manipulated slightly to include wind
conditions, and coding this equation based on different routes was much of the work done. The
equation is as follows:
𝐸 = ∆𝑥(𝑚𝑔𝑓𝑟 + 0.5𝐶 𝑑 𝐴𝜌𝑣2
)
Servatius 5
where E is the energy, ∆𝑥 is the change in distance, m is the mass of the vehicle, g is the
gravitational constant, 𝑓𝑟 is the rolling resistance coefficient, 𝐶 𝑑 is the air drag coefficient, A is
the frontal area of the vehicle, 𝜌 is the density of air, and v is the velocity of the vehicle. In the
majority of our tests, the velocity was held constant at about 55 mph (~24.58 m/s). In all the
tests, the rolling resistance was held at 0.01, the air drag at 0.8, the mass at 10000 kg, the frontal
area at 10 m2, and the density of air at 1.2 kg/m3. The change in distance must be in meters for
the units to remain consistent and then all energies were converted to kWhr. The wind conditions
were taken into account by altering the velocity term. To do this, we also had to segment the
distance based on where the winds were, often creating multiple energy calculations and then
summing them to get the total energy across the entire distance being studied.
III. Results
a. Constant Driving Speed
i. Theoretical Straight Line Distance Energy Evaluation [a]
The first step in our research was to transfer the energy equation into MATLAB and
ensure that the code was running properly. We did this on a small scale and used a theoretical
drive. This meant that we did not use real roads and just considered a straight-line path. After
confirming that the code was working by showing that with zero wind the energy consumption
was equal to that solved for by hand, we were able to take the winds into account. Because the
simulation was theoretical, we could control the winds. We chose to create 4 cases: no wind, all
tail winds, all head winds, and alternating tail and head winds.
To truly show that the wind could in fact make a difference in energy use for a truck, we
chose to use large winds for this first simulation. The distance traveled was chosen to be 96.2
miles (154818.9 m), the distance between South Bend and Chicago with wind speeds of 20 mph
Servatius 6
(8.94 m/s). The result showed that tailwinds could make a big difference in energy use when
compared to both a no-wind case and a test with only headwinds. The energy with no wind was
166.86 kWh, with tailwinds was 92.64 kWh, with headwinds was 274.08 kWh, and finally with
alternating winds was 183.36 kWh. The fact that the alternating case used more energy than the
no wind case (by about 9.9%) also shows that the negative effect of headwinds is greater than the
positive effect on energy of tailwinds. Thus, if choosing a driving route, the most important thing
in terms of energy use is to avoid headwinds.
ii. Comparing Energies of Different Routes Across the U.S.A [b]
The next simulation involved testing how wind changes energy use in a real scenario. To
do this, we chose three different routes from Phoenix to Chicago. One route was the direct route
suggested by [2], while the other two routes were chosen based on the wind conditions on
September 30th. The three routes are shown in Figures 1-3, and the wind conditions in Figure 4.
The wind maps found online at [3] allowed for easy calculation of wind magnitude and direction
across the country and this data was integrated into our code.
Servatius 7
Figure 1. Phoenix to OKC to Omaha to Chicago
Figure 2. Phoenix to Salt Lake City to Chicago
Servatius 8
Figure 3. Phoenix to Chicago Direct
Figure 4. Wind Conditions on September 30, 2014
In this particular case, the most direct route (Figure 3) is the smartest route in terms of time,
Servatius 9
distance and energy consumption. This route from Phoenix to Chicago spanned a distance of
1802 miles (2900038 m) and used 3013.6 kWh of energy. The route from Phoenix to OKC to
Omaha to Chicago of 1931 miles (3107643 m) used 3100 kWh while the route from Phoenix to
Salt Lake City to Chicago of 2051 miles (3300765 m) used 3436.7 kWh.
Although the most direct route also is the most energy efficient, going from Phoenix to
OKC to Omaha to Chicago utilizes the winds more than any other route. This shows that the
wind does make a significant impact, as the distance traveled is 7.16% more than the direct
route, but only 2.87% more energy is used. The main takeaway from this simulation is that the
wind does have a substantial impact on energy, but it may only apply in particular cases. In this
case, it makes the most sense to take the most direct route. If the winds were a bit stronger,
however, it is very feasible that the longer route shown in Figure 1 could save some energy over
the direct route.
The effects of the winds are further demonstrated by comparing the energy consumptions
of all the routes with and without wind. Without wind, the direct route shown in Figure 3 used
3125.6 kWh of energy, or 3.7% more energy than with the wind included. Next, the route from
Phoenix to Salt Lake City to Chicago used 3557.5 kWh, or 3.5% more energy than with the wind
included. Finally, the route from Phoenix to OKC to Omaha to Chicago used 3349.3 kWh of
energy, or a whopping 8% more than with the wind included. Overall, including the wind in
energy calculations gives a more realistic picture of the energy being consumed by the truck, and
if used correctly, this can save a lot of energy.
iii. Comparing Energies of the Same Route on Different Days [c]
Given our previous experiment, it is easy to see that going a slightly further distance
could potentially be beneficial is winds are accounted for properly. So going a different route to
Servatius 10
save energy was a possibility, and the next step was to ask if going a different time or even day
could save money. Thus, we used the same wind conditions from September 30th found in Figure
4 and compared them to the winds on October 6th. We chose a path from New Orleans to
Columbus (as shown in Figure 6), as the winds were very large in this direction on October 6th as
shown in Figure 5. The September 30th winds were relatively calm in this direction, so the aim of
this test was to show that delaying or pushing up travel has the potential to save a good amount
of energy, again only if the winds are used properly.
Figure 5. Wind Conditions on October 6, 2014
Servatius 11
Figure 6. New Orleans to Columbus
The results of this experiment demonstrated the importance of winds in energy
calculations for two main reasons. The first, as hinted at earlier, deals with comparing winds on
separate occasions. With no wind, the trip from New Orleans to Columbus used 1575.5 kWh of
energy. With the calm winds on September 30th, 1569.3 kWh of energy were used. Finally, with
strong tailwinds on October 6th, 1180.5 kWh of energy were used. This is a 25.1% decrease in
energy consumption from no wind to the conditions on October 6th and a 24.8% decrease from
September 30th. These savings in energy could save a lot of money. In this case, the winds are a
week apart, so a company may not be able to delay a trip for that long. It is certainly worth
looking into the wind conditions on several days when planning a trip, however, as it could save
a lot of energy to travel when there are advantageous winds.
Servatius 12
The second demonstration of the large impact the winds have on energy is comparing the
trip from New Orleans to Columbus and vice versa on both September 30th and October 6th. On
the first date, the energy used from New Orleans to Columbus was 1569.3 kWh while it was
1582.2 in the opposite direction. On October 6th, the energy consumed was 1180.5 kWh going
north to Columbus and 2053.2 kWh going from Columbus to New Orleans. The calm winds on
the final day of September had relatively little affect on energy, while the large winds (ranging
from 3.5-5.5 m/s) on October 6th had a huge influence depending on whether the truck travels
with or against the wind. Just to further illustrate this point, with calm winds on September 30th,
the energy changed less than 1% depending on the direction of travel. On the other hand, the
energy changed 42.5% depending on the direction of travel with strong winds on October 6th.
iv. Theoretical Map Showing Winds Necessary to Save Energy [d1]-[d3]
While these studies done on the U.S. roadways are extremely useful in showing the impact of
weather on energy use, it can be a bit difficult to visualize the winds along with the roadways.
Therefore, we decided to return to a theoretical case. The main idea was to create a wind map
and vary the conditions how we pleased, and then have an animated line show a path moving
through the wind map. There is no way to show the animation in this report, so the maps are
shown after the truck’s route has been finished. The first theoretical test is found in Figure 7,
with winds varying between 0-18 mph (0-8 m/s). Three routes were tested and all begin in the
bottom left of the figure and end in the top right. The first was a test case, taking the most direct
route (diagonally) with no headwinds or tailwinds. The second route (to the right and then up)
went around the outside with only winds that would save energy. Finally, the third route (up and
the to the right) went around the outside with only winds that would lose energy. Much like we
Servatius 13
did earlier, the main goal was to determine whether going a further distance could actually save
energy due to strong tailwinds.
Figure 7. Theoretical 10 x 10 Map (Varying Wind Conditions) [d1]
Much like before, the effects of the wind were very noticeable, but it was the best choice
to follow the most direct route. The direct route spanned almost 88 miles (141,421 m) and used
152.4 kWh. The route designed to best utilize the winds spanned 124 miles (200,000 m) and
used 170.7 kWh. Lastly, the course that went against the winds also covered 124 miles (200,000
m) but used 263.1 kWh of energy. While covering the same distance, the two routes that
traversed the outside of the theoretical map had a 54% difference in energy use. This percentage
Servatius 14
can be solely attributed to the wind conditions. Furthermore, the long route that utilized positive
winds traveled 41% further than the direct route, but only used 12% more energy.
Given the results from our first theoretical test, we decided to increase the wind
conditions in the same size theoretical map. This test is depicted in Figure 8, and the winds
varied between 0-40 mph (0-18 m/s)3. Again, there are 3 routes—a direct diagonal route, an
efficient route around the outside, and an inefficient route around the outside.
Figure 8. Theoretical 10 x 10 Map (Varying High Wind Conditions) [d2]
In this case, the weather made a huge difference, which was expected given the large
magnitude of the winds. The efficient route along the edge of the map ended up being the
3 Consult the appendix to see the wind conditions in detail
Servatius 15
smartest route to take, proving that the winds can make it advantageous to take a longer route in
order to save energy. This path, which covered 124 miles, used only 101.5 kWh of energy. The
direct route used 152.4 kWh of energy across 88 miles, and finally the inefficient route used a
massive 397.9 kWh.
These numbers need to be considered carefully given the large winds tested. Rarely are
there 40 mph winds, so we decided to run one more simulation on our theoretical map in order to
determine what winds would make the long and direct paths have equal energy consumption.
This data would allow us to know exactly which wind conditions need to be present in order to
save energy going the long way. In order to simplify the map, we removed all winds that were
not along the route and kept the winds the same along the route. As shown in Figure 9, the direct
route has no wind. After calculating the average winds required on the long route to utilize the
same amount of energy as the direct one, we found that the average wind conditions must be
equal to 12.1 mph (5.412 m/s). With these winds, the energy used over the 124-mile road was
152.4 kWh. The 88-mile direct course also used 152.4 kWh.
Like stated before, the difference between the routes in terms of distance was about 41 %,
but the energy difference was less than .0008 %. The reason that this model is so important is
that 12 mph winds are very realistic, and we traveled more than 40% further with the same
energy considerations. This can make a huge difference if considered over all drives, as there are
likely many cases that a relatively direct route (only go slightly out of the way), but also save
some energy. If studied and implemented correctly, this could save a lot of energy for truck
companies in the long run.
Servatius 16
Figure 9. Theoretical 10 x 10 Map (Constant Wind Conditions) [d3]
b. Changing Driving Speed [e]
After determining that the wind can provide energy returns while traveling at a constant
speed, the next step in our work was to investigate whether altering the speed of the truck based
on the wind conditions would change the energy considerations. The main idea in this simulation
was to slow down the truck when headwinds were present and speed up when tailwinds were
present. Our thinking in this was that we would take advantage of winds that help lower energy
consumption (tailwinds) and minimize the negative energy effects of the headwinds.
We decided to run two tests across the same path, one with constant truck speed and one
that would alter the speed based on the winds as described above. We took a 20-hour drive and
Servatius 17
broke it down into 10 different wind segments. We altered the speed of the truck so that the
relative air speed would remain constant. In other words, if a 5 m/s tailwind were present, the
truck would speed up 5 m/s. If a 5 m/s headwind existed, the truck would slow down 5 m/s.
Overall, over our 20 hours, the wind speeds averaged out to zero so that we could compare the
results to a test case with a constant drive speed and still have the 20-hour time period for both
cases. The winds varied between 0-33.5 mph (0-15 m/s), however, 9 of the 10 wind conditions
were 22 mph (10 m/s) or less.
It was found that keeping relative air speed constant by changing truck speeds saved
energy compared to the test case of driving at a constant speed. Both tests were done over 20
hours, and the truck with changing speed resulted in 1367.6 kWh of energy. If we did not alter
the speed of the truck and remained at a constant 56 mph (25 m/s), the energy use was 1814
kWh. This is a 32.6% difference in energy use, a huge savings when considering the time
traveled is identical. While the winds considered were relatively high, they were large for both
headwinds and tailwinds, so it was not a highly favorable path for the constant case. This
demonstrates that if we were to apply some of our previous work with rerouting based on winds
along with altering the speed of the truck, we could save a great deal of energy.
IV. Conclusion
a. What We Learned
The goal of our work was to determine if weather has an impact on energy consumption
in transportation. More specifically, we wanted to explore the effects of wind on a truck. After
doing a myriad of simulations, it is clear that wind does in fact have a noticeable impact on
energy. Asking and exploring three main questions helped determined this.
Servatius 18
The first was to determine whether taking alternative routes could help save energy. We
looked at going from one place to another via different path both across the country and
theoretically and showed that, if exploited properly, the wind can help save a substantial amount
of energy. The extent of energy savings depends on the strength and direction of the winds, of
course. It is up to the user, most likely a truck company, to determine if the savings along one
route are worthwhile as opposed to another route.
Second, we looked at wind conditions along the same route on multiple occasions to
decide if changing travel time could provide energy savings significant enough to change travel
plans. Based on our comparison of winds on September 30th to October 6th along the path from
New Orleans to Columbus, we showed that considering wind conditions when planning travel
has the potential to save a notable amount of energy. In this case, the difference between the two
days was about 25%. Now this difference was a week apart, but these conditions could be
present days apart or even hours apart under the right circumstances. Because of this, universities
and research companies should seriously consider researching more into planning travel based on
the winds, as it can go a long way in saving money.
Finally, the last question involved changing the speed of the truck, something we had not
explored in any previous simulation. We decided to keep the relative wind speed the same and
this led to noticeable results, saving 32.6% energy over a 20-hour drive with reasonably high
wind speeds. It would have been interesting to continue to explore changing speeds, whether
keeping the relative wind speed constant or not, but unfortunately we ran out of time before the
semester’s end.
Servatius 19
b. Future Work
i. Continued Research
Because there has been very little work done on this subject to date, there are many
directions to take this research in. First, there are numerous more studies that can be done
involving the wind. More specifically, we did not do a great deal of work changing speeds so
there is a lot more that can be done in this domain. Furthermore, if the areas we studied were
combined, this would likely lead to some astounding results. For instance, if a truck company
were to consider taking a different route to avoid headwinds and take advantage of tailwinds
while also keeping relative wind speed constant by changing the truck’s speed, this would likely
lead to major energy savings.
In addition to the effects of wind, there are many other weather conditions that would
certainly change the energy considerations. For example, having wet road conditions due to rain,
slush, snow, or ice would alter the rolling contact coefficient and thus modify the energy
calculations. Furthermore, there are weather conditions such as humidity that may or may not
have any influence on energy, but must be studied further in order to know for sure. And aside
from weather, we also did not include any acceleration effects or traffic patterns. In a realistic
situation, the truck would not be driving at a constant rate the entire time of travel, so that must
be taken into account when considering our results. If traffic and weather were integrated
together in a simulation, this would help give a more realistic answer as to how energy can be
saved.
Additionally, this study was done with the mass, frontal area, and air drag coefficient of a
medium-sized truck, so further research can be done to determine if the wind has the same effect
on a sedan, crossover, motorcycle, or any form of transportation. It is very viable that the wind
Servatius 20
has an effect on all forms of outdoor transportation and we simply need to determine how great
an impact that is in order to decide whether it is worth taking advantage of.
Finally, some of the research not previously mentioned was to calculate the percentage of
the energy consumption that can be attributed to rolling resistance, and that attributed to air drag.
It was found that the rolling resistance accounted for 25.26% of the energy, and the air drag
74.74%. This data suggests that the wind conditions are even more important than we believed
before, as the air drag component of energy makes up almost three-fourths of the total energy. It
would be interesting to see how much these percentages change based on altering the coefficients
of air drag and rolling resistance, and it would not be tough a study to pursue further.
ii. Implementation
This research is interesting, but it is useless unless it is implemented correctly. As we
have shown, the wind has a visible effect on energy use. Therefore, it would be beneficial for
universities and companies to at least look into further research and determine whether rerouting,
preplanning travel, or other considerations based on wind are a realistic possibility to apply to
truck businesses or even an average driver.
The most logical thing to determine rerouting would be to set up a system similar to those
that are already in place to give the most efficient traffic routes. If a GPS system were improved
to show not only roads and traffic, but also energy based on weather conditions this would allow
a customer to make decisions about which route to take based on the value they place on time
and energy. Because heavy traffic wastes a lot of energy, it is likely that in many cases the
shortest travel route in terms of time would also be the most efficient in terms of energy.
Furthermore, there are a few different ways to employ our new knowledge that keeping
the relative wind speed constant can help save energy. First, is by simply making people more
Servatius 21
aware to check the winds and drive accordingly. This is a nuisance, however, and the vast
majority of people would be unlikely to change their habits. Instead, having digital speed limit
signs that adapt based on the wind conditions would help change people’s habits. For example, if
strong tailwinds were present, the speed limit would be increased. If strong headwinds existed,
the speed limit would be dropped. This would help save energy and money for all drivers
whether they know of the effects of the wind or not. Another solution might be to have cars that
drive themselves and adjust speed based on the wind. This is not that far fetched considering cars
have and continue to be developed that drive unmanned, and sensors measuring the wind are
very prevalent.
b. Significance
As mentioned before, the goal of this work was to determine if manipulating
transportation based on winds could save energy. While energy saving is extremely important
and a growing concern, at the end of the day, the significance of this work revolves around
money. Some of the ideas discussed in the previous section have the potential to be very
lucrative business ideas. If a GPS system could update traffic and weather, it would provide
insights that truck companies and regular drivers alike could utilize to make quick decisions
about saving both time and energy (and thus money).
Next, average people owning cars and trucks that drive themselves is extremely likely to
occur in the future, so being able to program them to adjust their speed based on the wind would
help save a huge amount of energy and money. As we showed, keeping the relative wind speed
constant by changing truck speed can save a significant amount of energy for one truck, but
imagine the possibilities if this were programmed into cars and trucks on a larger scale.
Servatius 22
Very few businesses will get involved in a project that they do not eventually see
becoming profitable, so for research to be truly significant, there must be business opportunities.
That is what makes this work so meaningful, as it has the possibility of helping to save a great
deal of energy if studied and implemented further, while also allowing businesses to profit by
developing the software and bringing it to market. We have only uncovered the very tip of the
iceberg, and we need to continue to research this field as there is great opportunity to not only do
good for the world by saving energy, but also develop something extremely useful and
profitable.
Servatius 23
V. References
[1] Ehsani, Mehrdad. Modern Electric, Hybrid Electric, and Fuel Cell Vehicles: Fundamentals,
Theory, and Design. Boca Raton: CRC, 2005. Print.
[2] "MapQuest Maps - Driving Directions - Map." MapQuest Maps - Driving Directions - Map.
N.p., n.d. Web. 03 Dec. 2014. <http://www.mapquest.com/>.
[3] "Wind Map." Wind Map. N.p., n.d. Web. 04 Dec. 2014. <http://hint.fm/wind/>.
VI. Appendix
[a]
%% Michael Servatius
% 9/26/14
clear all
clc
%% Parameters
Cd=0.8; % air drag coefficient
m=10000; % mass= 10,000kg
ar=10; % area= 10 m^2
fr=0.01; % rolling resistance coefficient
rho=1.2; % density of air
g=9.8; % 9.8m/s
v=24.58; % 24.58 m/s = 55 mph
deltax=154818.9;%96.2 miles (Chi to South Bend)
deltax10=deltax/10;
%% Wind at 20 mph (32 km/h) in alternating directions
c1=cosd(0); % angle of wind speed
c2=cosd(180);
c3=cosd(0);
c4=cosd(180);
c5=cosd(0);
c6=cosd(180);
c7=cosd(0);
c8=cosd(180);
c9=cosd(0);
c10=cosd(180);
vwind1=8.94; % wind speed (ignoring direction)
vwind2=8.94; % angle takes care of direction
vwind3=8.94;
vwind4=8.94;
vwind5=8.94;
vwind6=8.94;
Servatius 24
vwind7=8.94;
vwind8=8.94;
vwind9=8.94;
vwind10=8.94;
v1=vwind1*c1;
v2=vwind2*c2;
v3=vwind3*c3;
v4=vwind4*c4;
v5=vwind5*c5;
v6=vwind6*c6;
v7=vwind7*c7;
v8=vwind8*c8;
v9=vwind9*c9;
v10=vwind10*c10;
Ewheel101 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v1)^2));
Ewheel102 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v2)^2));
Ewheel103 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v3)^2));
Ewheel104 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v4)^2));
Ewheel105 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v5)^2));
Ewheel106 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v6)^2));
Ewheel107 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v7)^2));
Ewheel108 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v8)^2));
Ewheel109 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v9)^2));
Ewheel1010 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v10)^2));
Ewheel10alternating=Ewheel101+Ewheel102+Ewheel103+Ewheel104+Ewheel105+Ewheel1
06...
+Ewheel107+Ewheel108+Ewheel109+Ewheel1010;
EAlternating=Ewheel10alternating/3600/1000
%% No Wind, Constant Speed
Ewheel = deltax*((m*g*fr)+(.5*Cd*ar*rho*(v)^2));
ENoWind = Ewheel/3600/1000
%% Wind at back
c11=cosd(0); % angle of wind speed
c12=cosd(0);
c13=cosd(0);
c14=cosd(0);
c15=cosd(0);
c16=cosd(0);
c17=cosd(0);
c18=cosd(0);
c19=cosd(0);
c20=cosd(0);
vwind11=8.94; % wind speed (ignoring direction)
vwind12=8.94; % angle takes care of direction
vwind13=8.94;
vwind14=8.94;
Servatius 25
vwind15=8.94; % 20 mph in m/s
vwind16=8.94;
vwind17=8.94;
vwind18=8.94;
vwind19=8.94;
vwind20=8.94;
v11=vwind11*c11;
v12=vwind12*c12;
v13=vwind13*c13;
v14=vwind14*c14;
v15=vwind15*c15;
v16=vwind16*c16;
v17=vwind17*c17;
v18=vwind18*c18;
v19=vwind19*c19;
v20=vwind20*c20;
Ewheel1011 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v11)^2));
Ewheel1012 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v12)^2));
Ewheel1013 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v13)^2));
Ewheel1014 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v14)^2));
Ewheel1015 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v15)^2));
Ewheel1016 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v16)^2));
Ewheel1017 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v17)^2));
Ewheel1018 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v18)^2));
Ewheel1019 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v19)^2));
Ewheel1020 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v20)^2));
Ewheel10back=Ewheel1011+Ewheel1012+Ewheel1013+Ewheel1014+Ewheel1015+Ewheel101
6...
+Ewheel1017+Ewheel1018+Ewheel1019+Ewheel1020;
ETailWind=Ewheel10back/3600/1000
%% Wind in Face
c21=cosd(180); % angle of wind speed
c22=cosd(180);
c23=cosd(180);
c24=cosd(180);
c25=cosd(180);
c26=cosd(180);
c27=cosd(180);
c28=cosd(180);
c29=cosd(180);
c30=cosd(180);
vwind21=8.94; % wind speed (ignoring direction)
vwind22=8.94; % angle takes care of direction
vwind23=8.94;
vwind24=8.94;
vwind25=8.94;
vwind26=8.94; % 20 mph = 8.94 m/s
vwind27=8.94;
vwind28=8.94;
vwind29=8.94;
Servatius 26
vwind30=8.94;
v21=vwind21*c21;
v22=vwind22*c22;
v23=vwind23*c23;
v24=vwind24*c24;
v25=vwind25*c25;
v26=vwind26*c26;
v27=vwind27*c27;
v28=vwind28*c28;
v29=vwind29*c29;
v30=vwind30*c30;
Ewheel1021 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v21)^2));
Ewheel1022 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v22)^2));
Ewheel1023 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v23)^2));
Ewheel1024 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v24)^2));
Ewheel1025 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v25)^2));
Ewheel1026 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v26)^2));
Ewheel1027 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v27)^2));
Ewheel1028 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v28)^2));
Ewheel1029 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v29)^2));
Ewheel1030 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v30)^2));
Ewheel10front=Ewheel1021+Ewheel1022+Ewheel1023+Ewheel1024+Ewheel1025+Ewheel10
26...
+Ewheel1027+Ewheel1028+Ewheel1029+Ewheel1030;
EHeadWind=Ewheel10front/3600/1000
%% Rolling Resistance vs. Air Drag Percentages
roll=deltax*(m*g*fr)/3600/1000;
air=deltax*(.5*Cd*ar*rho*(v)^2)/3600/1000;
total=air+roll;
rollp=roll/total*100
airp=air/total*100
[b]
%% Michael Servatius
% 9/30/14
clear all
clc
%% Parameters
Cd=0.8; % air drag coefficient
m=10000; % mass= 10,000kg
ar=10; % area= 10 m^2
fr=0.01; % rolling resistance coefficient
rho=1.2; % density of air
g=9.8; % 9.8m/s
v=24.58; % 24.58 m/s = 55 mph
deltax=3107643; %1931 miles (PHO to OKC to OM to CHI)
deltax10=deltax/10;
Servatius 27
deltax1=3300765;%2051 miles (PHO to SLC to CHI)
deltax110=deltax1/10;
deltax2=2900038;%1802 miles (PHO to CHI direct)
deltax210=deltax2/10;
%% E without wind
ENoWind = deltax*((m*g*fr)+(.5*Cd*ar*rho*(v)^2));
ENoWind = ENoWind/3600/1000
ENoWind1 = deltax1*((m*g*fr)+(.5*Cd*ar*rho*(v)^2));
ENoWind1 = ENoWind1/3600/1000
ENoWind2 = deltax2*((m*g*fr)+(.5*Cd*ar*rho*(v)^2));
ENoWind2 = ENoWind2/3600/1000
%% With Wind (PHO to OKC to OM to CHI)
% http://hint.fm/wind/
% PHO to CHI Wind
c1=cosd(0); % angle of wind speed
c2=cosd(0);
c3=cosd(0);
c4=cosd(80);
c5=cosd(0);
c6=cosd(0);
c7=cosd(0);
c8=cosd(180);
c9=cosd(180);
c10=cosd(180);
vwind1=2.24; % wind speed (ignoring direction)
vwind2=2.68; % angle takes care of direction
vwind3=3.58;
vwind4=5.81;
vwind5=4.92;
vwind6=5.36;
vwind7=4.47;
vwind8=4.02;
vwind9=2.68;
vwind10=2.68;
v1=vwind1*c1;
v2=vwind2*c2;
v3=vwind3*c3;
v4=vwind4*c4;
v5=vwind5*c5;
v6=vwind6*c6;
v7=vwind7*c7;
v8=vwind8*c8;
Servatius 28
v9=vwind9*c9;
v10=vwind10*c10;
Ewheel1 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v1)^2));
Ewheel2 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v2)^2));
Ewheel3 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v3)^2));
Ewheel4 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v4)^2));
Ewheel5 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v5)^2));
Ewheel6 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v6)^2));
Ewheel7 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v7)^2));
Ewheel8 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v8)^2));
Ewheel9 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v9)^2));
Ewheel10 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v10)^2));
EAtwheel=Ewheel1+Ewheel2+Ewheel3+Ewheel4+Ewheel5+Ewheel6...
+Ewheel7+Ewheel8+Ewheel9+Ewheel10;
Eroute=EAtwheel/3600/1000
%% With Wind (PHO to Salt Lake City to CHI)
% http://hint.fm/wind/
% PHO to CHI Wind
c11=cosd(90); % angle of wind speed
c12=cosd(90);
c13=cosd(90);
c14=cosd(0);
c15=cosd(0);
c16=cosd(0);
c17=cosd(80);
c18=cosd(100);
c19=cosd(160);
c20=cosd(180);
vwind11=2.24; % wind speed (ignoring direction)
vwind12=2.24; % angle takes care of direction
vwind13=2.68;
vwind14=2.68;
vwind15=5.36;
vwind16=7.15;
vwind17=4.92;
vwind18=4.47;
vwind19=4.92;
vwind20=2.68;
v11=vwind11*c11;
v12=vwind12*c12;
v13=vwind13*c13;
v14=vwind14*c14;
v15=vwind15*c15;
v16=vwind16*c16;
v17=vwind17*c17;
v18=vwind18*c18;
v19=vwind19*c19;
v20=vwind20*c20;
Servatius 29
Ewheel11 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v11)^2));
Ewheel12 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v12)^2));
Ewheel13 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v13)^2));
Ewheel14 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v14)^2));
Ewheel15 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v15)^2));
Ewheel16 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v16)^2));
Ewheel17 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v17)^2));
Ewheel18 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v18)^2));
Ewheel19 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v19)^2));
Ewheel20 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v20)^2));
EAtwheel1=Ewheel11+Ewheel12+Ewheel13+Ewheel14+Ewheel15+Ewheel16...
+Ewheel17+Ewheel18+Ewheel19+Ewheel20;
Eroute1=EAtwheel1/3600/1000
%% With Wind (PHO to CHI direct)
% http://hint.fm/wind/
% PHO to CHI Wind
c21=cosd(0); % angle of wind speed
c22=cosd(0);
c23=cosd(0);
c24=cosd(0);
c25=cosd(80);
c26=cosd(90);
c27=cosd(90);
c28=cosd(90);
c29=cosd(180);
c30=cosd(180);
vwind21=2.24; % wind speed (ignoring direction)
vwind22=2.68; % angle takes care of direction
vwind23=1.34;
vwind24=4.02;
vwind25=5.36;
vwind26=5.36;
vwind27=4.47;
vwind28=2.24;
vwind29=2.24;
vwind30=2.24;
v21=vwind21*c21;
v22=vwind22*c22;
v23=vwind23*c23;
v24=vwind24*c24;
v25=vwind25*c25;
v26=vwind26*c26;
v27=vwind27*c27;
v28=vwind28*c28;
v29=vwind29*c29;
v30=vwind30*c30;
Ewheel21 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v21)^2));
Servatius 30
Ewheel22 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v22)^2));
Ewheel23 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v23)^2));
Ewheel24 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v24)^2));
Ewheel25 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v25)^2));
Ewheel26 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v26)^2));
Ewheel27 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v27)^2));
Ewheel28 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v28)^2));
Ewheel29 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v29)^2));
Ewheel30 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v30)^2));
EAtwheel2=Ewheel21+Ewheel22+Ewheel23+Ewheel24+Ewheel25+Ewheel26...
+Ewheel27+Ewheel28+Ewheel29+Ewheel30;
Eroute2=EAtwheel2/3600/1000
%% Rolling Resistance vs. Air Drag Percentage
roll=deltax*(m*g*fr);
air=deltax*(.5*Cd*ar*rho*(v)^2);
total=roll+air;
rollpercentage=roll/total*100
airpercentage=air/total*100
[c]
%% Michael Servatius
% 10/6/14
clear all
clc
%% Parameters
Cd=0.8; % air drag coefficient
m=10000; % mass= 10,000kg
ar=10; % area= 10 m^2
fr=0.01; % rolling resistance coefficient
rho=1.2; % density of air
g=9.8; % 9.8m/s
v=24.58; % 24.58 m/s = 55 mph
deltax=1461767.2; % 908.3 miles in m
deltax10=deltax/10;
%% No wind (NO to Columbus)
ENoWind = deltax*((m*g*fr)+(.5*Cd*ar*rho*(v)^2));
ENoWind = ENoWind/3600/1000
%% Wind on 10/6/14 (NO to Columbus)
% http://hint.fm/wind/
c1=cosd(10); % angle of wind speed
c2=cosd(0);
c3=cosd(0);
c4=cosd(0);
Servatius 31
c5=cosd(0);
c6=cosd(0);
c7=cosd(0);
c8=cosd(0);
c9=cosd(0);
c10=cosd(0);
vwind1=3.57632; % wind speed (ignoring direction)
vwind2=4.02336; % angle takes care of direction
vwind3=5.36448;
vwind4=4.4704;
vwind5=4.91744;
vwind6=4.02336;
vwind7=3.57632;
vwind8=5.36448;
vwind9=5.36448;
vwind10=4.91744;
v1=vwind1*c1;
v2=vwind2*c2;
v3=vwind3*c3;
v4=vwind4*c4;
v5=vwind5*c5;
v6=vwind6*c6;
v7=vwind7*c7;
v8=vwind8*c8;
v9=vwind9*c9;
v10=vwind10*c10;
Ewheel1 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v1)^2));
Ewheel2 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v2)^2));
Ewheel3 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v3)^2));
Ewheel4 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v4)^2));
Ewheel5 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v5)^2));
Ewheel6 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v6)^2));
Ewheel7 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v7)^2));
Ewheel8 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v8)^2));
Ewheel9 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v9)^2));
Ewheel10 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v10)^2));
EAtwheel=Ewheel1+Ewheel2+Ewheel3+Ewheel4+Ewheel5+Ewheel6...
+Ewheel7+Ewheel8+Ewheel9+Ewheel10;
EOCT6NOtoCOL=EAtwheel/3600/1000
%% Wind on 10/6/14 (COL to NO)
c11=cosd(10); % angle of wind speed
c12=cosd(0);
c13=cosd(0);
c14=cosd(0);
c15=cosd(0);
c16=cosd(0);
c17=cosd(0);
c18=cosd(0);
c19=cosd(0);
c20=cosd(0);
Servatius 32
vwind11=-3.57632; % wind speed (ignoring direction)
vwind12=-4.02336; % angle takes care of direction
vwind13=-5.36448;
vwind14=-4.4704;
vwind15=-4.91744;
vwind16=-4.02336;
vwind17=-3.57632;
vwind18=-5.36448;
vwind19=-5.36448;
vwind20=-4.91744;
v11=vwind11*c11;
v12=vwind12*c12;
v13=vwind13*c13;
v14=vwind14*c14;
v15=vwind15*c15;
v16=vwind16*c16;
v17=vwind17*c17;
v18=vwind18*c18;
v19=vwind19*c19;
v20=vwind20*c20;
Ewheel11 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v11)^2));
Ewheel12 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v12)^2));
Ewheel13 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v13)^2));
Ewheel14 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v14)^2));
Ewheel15 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v15)^2));
Ewheel16 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v16)^2));
Ewheel17 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v17)^2));
Ewheel18 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v18)^2));
Ewheel19 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v19)^2));
Ewheel20 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v20)^2));
EAtwheel1=Ewheel11+Ewheel12+Ewheel13+Ewheel14+Ewheel15+Ewheel16...
+Ewheel17+Ewheel18+Ewheel19+Ewheel20;
EOCT6COLtoNO=EAtwheel1/3600/1000
%% Wind on 9/30/14 (NO to COL)
c21=cosd(90); % angle of wind speed
c22=cosd(90);
c23=cosd(90);
c24=cosd(150);
c25=cosd(90);
c26=cosd(0);
c27=cosd(30);
c28=cosd(60);
c29=cosd(90);
c30=cosd(90);
vwind21=1.34112; % wind speed (ignoring direction)
vwind22=0.89408; % angle takes care of direction
vwind23=1.34112;
vwind24=.89408;
Servatius 33
vwind25=.44704;
vwind26=.44708;
vwind27=.89408;
vwind28=.44704;
vwind29=.89408;
vwind30=1.78816;
v21=vwind21*c21;
v22=vwind22*c22;
v23=vwind23*c23;
v24=vwind24*c24;
v25=vwind25*c25;
v26=vwind26*c26;
v27=vwind27*c27;
v28=vwind28*c28;
v29=vwind29*c29;
v30=vwind30*c30;
Ewheel21 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v21)^2));
Ewheel22 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v22)^2));
Ewheel23 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v23)^2));
Ewheel24 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v24)^2));
Ewheel25 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v25)^2));
Ewheel26 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v26)^2));
Ewheel27 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v27)^2));
Ewheel28 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v28)^2));
Ewheel29 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v29)^2));
Ewheel30 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v30)^2));
EAtwheel2=Ewheel21+Ewheel22+Ewheel23+Ewheel24+Ewheel25+Ewheel26...
+Ewheel27+Ewheel28+Ewheel29+Ewheel30;
ESEPT30NOtoCOL=EAtwheel2/3600/1000
%% Wind on 9/30/14 (Col to NO)
c31=cosd(90); % angle of wind speed
c32=cosd(90);
c33=cosd(90);
c34=cosd(150);
c35=cosd(90);
c36=cosd(0);
c37=cosd(30);
c38=cosd(60);
c39=cosd(90);
c40=cosd(90);
vwind31=-1.34112; % wind speed (ignoring direction)
vwind32=-0.89408; % angle takes care of direction
vwind33=-1.34112;
vwind34=-.89408;
vwind35=-.44704;
vwind36=-.44708;
vwind37=-.89408;
vwind38=-.44704;
vwind39=-.89408;
vwind40=-1.78816;
Servatius 34
v31=vwind31*c31;
v32=vwind32*c32;
v33=vwind33*c33;
v34=vwind34*c34;
v35=vwind35*c35;
v36=vwind36*c36;
v37=vwind37*c37;
v38=vwind38*c38;
v39=vwind39*c39;
v40=vwind40*c40;
Ewheel31 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v31)^2));
Ewheel32 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v32)^2));
Ewheel33 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v33)^2));
Ewheel34 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v34)^2));
Ewheel35 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v35)^2));
Ewheel36 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v36)^2));
Ewheel37 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v37)^2));
Ewheel38 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v38)^2));
Ewheel39 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v39)^2));
Ewheel40 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v40)^2));
EAtwheel2=Ewheel31+Ewheel32+Ewheel33+Ewheel34+Ewheel35+Ewheel36...
+Ewheel37+Ewheel38+Ewheel39+Ewheel40;
ESEPT30COLtoNO=EAtwheel2/3600/1000
[d1]-[d3] use functions below
% UpSideStep.m
% Michael Servatius
% Randomly choose a direction and walks radius 1 ,
% adding these values to the previous x and y.
function [newx,newy]=UpSideStep(oldx,oldy)
%% Random Step
angle=randi(90,1);
x=cosd(angle);
y=sind(angle);
newx=oldx+x;
newy=oldy+y;
end
function [newx,newy]=UpStep(oldx,oldy)
%% Up Step
angle=90;
x=cosd(angle);
y=sind(angle);
newx=oldx+x;
newy=oldy+y;
end
Servatius 35
function [newx,newy]=RightStep(oldx,oldy)
%% Right Step
angle=0;
x=cosd(angle);
y=sind(angle);
newx=oldx+x;
newy=oldy+y;
end
% isInsideBox.m
% Michael Servatius
% Tests if a point (x,y) is inside the box bounded by
% xmin,xmax,ymin,and ymax
function isInside=isInsideBox(x,y,xmin,xmax,ymin,ymax)
if (x>xmin)&&(x<xmax)&&(y>ymin)&&(y<ymax)
isInside=true;
else
isInside=false;
end
% Distance.m
% Michael Servatius
% Calculates the distance between two points given the 4 inputs
% of the x and y values.
function d=Distance(x1,y1,x2,y2)
d=sqrt((x1-x2)^2+(y1-y2)^2);
end
[d1]
clear all
clc
[x,y]=meshgrid(0:1:10,0:1:10);
% X wind values
u=[2 5 6 7 8 7 6 5 4 3 0;...
2 5 5 6 7 7 6 5 4 3 1;...
1 4 4 4 5 5 5 5 3 2 0;...
0 3 3 3 3 3 3 3 2 1 0;...
0 2 2 2 2 2 2 2 0 0 0;...
0 1 1 1 1 1 1 1 0 0 0;...
0 0 0 0 0 0 0 0 0 0 0;...
0 -1 -1 -2 -2 -2 -2 -1 -1 0 0;...
0 -2 -2 -3 -3 -3 -3 -2 -2 -1 0;...
-1 -3 -3 -4 -5 -5 -4 -3 -3 -2 0;...
-2 -5 -5 -6 -7 -7 -6 -5 -4 -3 0];
Servatius 36
% Y wind values
w=[0 0 0 0 0 0 0 0 0 0 0;...
-1 -2 0 0 0 0 0 0 2 2 1;...
-2 -3 -2 -1 0 0 0 0 3 3 2;...
-3 -3 -2 -1 0 0 1 2 2 3 3;...
-4 -4 -3 -1 0 0 1 2 3 4 4;...
-6 -3 -2 -1 0 0 0 1 2 3 6;...
-4 -3 -3 -2 -1 0 0 1 2 3 4;...
-2 -2 -2 -1 0 0 0 0 1 1 1;...
-2 -2 -1 -1 0 0 0 0 1 1 2;...
-3 -3 -2 -2 -2 0 0 0 2 2 3;...
-1 -1 0 0 0 0 0 0 0 1 1];
quiver(x,y,u,w);
axis([-1 11 -1 11])
xlabel('East (m)','FontSize',18);
ylabel('North (m)','FontSize',18);
title('Wind Map','FontSize',18);
set(gca,'FontSize',18);
set(gcf,'Color',[1,1,1]);
grid on
hold on
%% Walk thru
%% Diagonal Walk
xin=0;
yin=0;
xnew=0;
ynew=0;
xmin=0;
xmax=10;
ymin=0;
ymax=10;
xstick=10;
ystick=10;
rcircle=1;
Nsteps=1;
while Distance(xstick,ystick,xnew,ynew)>rcircle
[xnew,ynew]=DiagonalStep(xin,yin);
if isInsideBox(xnew,ynew,xmin,xmax,ymin,ymax);
xin=xnew;
yin=ynew;
x(Nsteps)=xnew;
y(Nsteps)=ynew;
plot(xnew,ynew,'ro',...
x(1:Nsteps),y(1:Nsteps),'b')
Nsteps=Nsteps+1;
axis([-1 11 -1 11])
drawnow
else
xin=xin;
yin=yin;
end
Servatius 37
end
%% Up/Right
xin=0;
yin=0;
xnew=0;
ynew=0;
xmin=0;
xmax=10;
ymin=0;
ymax=10;
xstick=10;
ystick=10;
rcircle=1;
Nsteps=1;
while xnew < 9
[xnew,ynew]=RightStep(xin,yin);
xin=xnew;
yin=ynew;
x(Nsteps)=xnew;
y(Nsteps)=ynew;
plot(xnew,ynew,'ro',...
x(1:Nsteps),y(1:Nsteps),'b')
Nsteps=Nsteps+1;
axis([-1 11 -1 11])
drawnow
while ynew < 10
[xnew,ynew]=UpStep(xin,yin);
xin=xnew;
yin=ynew;
x(Nsteps)=xnew;
y(Nsteps)=ynew;
plot(xnew,ynew,'ro',...
x(1:Nsteps),y(1:Nsteps),'b')
Nsteps=Nsteps+1;
axis([-1 11 -1 11])
drawnow
end
end
%% Right/Up
xin=0;
yin=0;
xnew=0;
ynew=0;
xmin=0;
xmax=10;
ymin=0;
ymax=10;
xstick=10;
ystick=10;
rcircle=1;
Servatius 38
Nsteps=1;
while ynew < 9
[xnew,ynew]=UpStep(xin,yin);
xin=xnew;
yin=ynew;
x(Nsteps)=xnew;
y(Nsteps)=ynew;
plot(xnew,ynew,'ro',...
x(1:Nsteps),y(1:Nsteps),'b')
Nsteps=Nsteps+1;
axis([-1 11 -1 11])
drawnow
while xnew < 10
[xnew,ynew]=RightStep(xin,yin);
xin=xnew;
yin=ynew;
x(Nsteps)=xnew;
y(Nsteps)=ynew;
plot(xnew,ynew,'ro',...
x(1:Nsteps),y(1:Nsteps),'b')
Nsteps=Nsteps+1;
axis([-1 11 -1 11])
drawnow
end
end
%% 1) Energy for this code
% 2) Energy for higher winds speeds (10-15 m/s)
%
%% Parameters
%% UP/RIGHT
Cd=0.8; % air drag coefficient
m=10000; % mass= 10,000kg
ar=10; % area= 10 m^2
fr=0.01; % rolling resistance coefficient
rho=1.2; % density of air
g=9.8; % 9.8m/s
v=24.58; % 24.58 m/s = 55 mph
deltax=200000; %200,000 m for the 20 steps
deltax20=deltax/20; %20 steps
Ewheel=0;
v1=[2,0,-2,-3,-3,-4,-3,-3,-2,-2,-3,...
-5,-6,-7,-7,-6,-5,-4,-3,0];
for i = 1:20
Ewheelnew = deltax20*((m*g*fr)+(.5*Cd*ar*rho*(v-v1(1,i))^2));
Ewheel = Ewheel + Ewheelnew;
Servatius 39
end
EwheelUPRIGHT = Ewheel/3600/1000
%% RIGHT/UP
Cd=0.8; % air drag coefficient
m=10000; % mass= 10,000kg
ar=10; % area= 10 m^2
fr=0.01; % rolling resistance coefficient
rho=1.2; % density of air
g=9.8; % 9.8m/s
v=24.58; % 24.58 m/s = 55 mph
deltax=200000; %200,000 m for the 20 steps
deltax20=deltax/20; %20 steps
Ewheel=0;
v2=[0,2,5,5,6,7,7,6,5,4,3,...
3,2,1,4,6,4,3,2,1];
for i = 1:20
Ewheelnew = deltax20*((m*g*fr)+(.5*Cd*ar*rho*(v-v2(1,i))^2));
Ewheel = Ewheel + Ewheelnew;
end
EwheelRIGHTUP = Ewheel/3600/1000
%% Diagonal
Cd=0.8; % air drag coefficient
m=10000; % mass= 10,000kg
ar=10; % area= 10 m^2
fr=0.01; % rolling resistance coefficient
rho=1.2; % density of air
g=9.8; % 9.8m/s
v=24.58; % 24.58 m/s = 55 mph
deltax=141421; %diagonal distance (a^2+b^2=c^2) -> c=14142
deltax14=deltax/14; % 14 diagonal steps
Ewheel=0;
for i = 1:14
Ewheelnew = deltax14*((m*g*fr)+(.5*Cd*ar*rho*(v)^2));
Ewheel = Ewheel + Ewheelnew;
end
EwheelDIAGONAL = Ewheel/3600/1000
[d2]
clear all
clc
Servatius 40
[x,y]=meshgrid(0:1:10,0:1:10);
% X wind values
u=[12 15 16 17 18 17 16 15 14 13 10;...
12 15 15 16 17 17 16 15 14 13 11;...
10 9 9 8 7 6 5 4 3 4 8;...
0 3 3 3 3 3 3 3 2 1 0;...
0 3 3 3 3 3 3 3 0 0 0;...
0 1 1 1 1 1 1 1 0 0 0;...
0 0 0 0 0 0 0 0 0 0 0;...
0 -1 -2 -3 -3 -3 -3 -4 -4 0 0;...
-3 -3 -4 -5 -6 -5 -4 -5 -3 -2 -1;...
-11 -13 -13 -14 -15 -15 -14 -13 -13 -12 10;...
-12 -15 -15 -16 -17 -17 -16 -15 -14 -13 10];
% Y wind values
w=[0 0 0 0 0 0 0 0 0 0 0;...
-1 -2 0 0 0 0 0 0 2 2 6;...
-6 -5 -2 -1 0 0 0 0 3 5 6;...
-13 -13 -12 -3 0 0 1 2 12 13 13;...
-14 -14 -13 -3 0 0 1 2 13 14 14;...
-16 -13 -12 -5 0 0 0 6 12 13 16;...
-14 -13 -13 -4 -1 0 0 4 12 13 14;...
-12 -12 -12 -5 0 0 0 0 5 11 8;...
-2 -8 -1 -1 0 0 0 0 1 6 7;...
-3 -6 -2 -2 -2 0 0 0 2 6 8;...
-1 -3 0 0 0 0 0 0 0 1 1];
quiver(x,y,u,w);
axis([-1 11 -1 11])
xlabel('East (m)','FontSize',18);
ylabel('North (m)','FontSize',18);
title('Wind Map','FontSize',18);
set(gca,'FontSize',18);
set(gcf,'Color',[1,1,1]);
grid on
hold on
%% Walk thru
%% Diagonal Walk
xin=0;
yin=0;
xnew=0;
ynew=0;
xmin=0;
xmax=10;
ymin=0;
ymax=10;
xstick=10;
ystick=10;
rcircle=1;
Nsteps=1;
Servatius 41
while Distance(xstick,ystick,xnew,ynew)>rcircle
[xnew,ynew]=DiagonalStep(xin,yin);
if isInsideBox(xnew,ynew,xmin,xmax,ymin,ymax);
xin=xnew;
yin=ynew;
x(Nsteps)=xnew;
y(Nsteps)=ynew;
plot(xnew,ynew,'ro',...
x(1:Nsteps),y(1:Nsteps),'b')
Nsteps=Nsteps+1;
axis([-1 11 -1 11])
drawnow
else
xin=xin;
yin=yin;
end
end
%% Up/Right
xin=0;
yin=0;
xnew=0;
ynew=0;
xmin=0;
xmax=10;
ymin=0;
ymax=10;
xstick=10;
ystick=10;
rcircle=1;
Nsteps=1;
while xnew < 9
[xnew,ynew]=RightStep(xin,yin);
xin=xnew;
yin=ynew;
x(Nsteps)=xnew;
y(Nsteps)=ynew;
plot(xnew,ynew,'ro',...
x(1:Nsteps),y(1:Nsteps),'b')
Nsteps=Nsteps+1;
axis([-1 11 -1 11])
drawnow
while ynew < 10
[xnew,ynew]=UpStep(xin,yin);
xin=xnew;
yin=ynew;
x(Nsteps)=xnew;
y(Nsteps)=ynew;
plot(xnew,ynew,'ro',...
x(1:Nsteps),y(1:Nsteps),'b')
Nsteps=Nsteps+1;
axis([-1 11 -1 11])
drawnow
Servatius 42
end
end
%% Right/Up
xin=0;
yin=0;
xnew=0;
ynew=0;
xmin=0;
xmax=10;
ymin=0;
ymax=10;
xstick=10;
ystick=10;
rcircle=1;
Nsteps=1;
while ynew < 9
[xnew,ynew]=UpStep(xin,yin);
xin=xnew;
yin=ynew;
x(Nsteps)=xnew;
y(Nsteps)=ynew;
plot(xnew,ynew,'ro',...
x(1:Nsteps),y(1:Nsteps),'b')
Nsteps=Nsteps+1;
axis([-1 11 -1 11])
drawnow
while xnew < 10
[xnew,ynew]=RightStep(xin,yin);
xin=xnew;
yin=ynew;
x(Nsteps)=xnew;
y(Nsteps)=ynew;
plot(xnew,ynew,'ro',...
x(1:Nsteps),y(1:Nsteps),'b')
Nsteps=Nsteps+1;
axis([-1 11 -1 11])
drawnow
end
end
%% 1) Energy for this code
% 2) Energy for higher winds speeds (10-15 m/s)
%
%% Parameters
%% UP/RIGHT
Cd=0.8; % air drag coefficient
Servatius 43
m=10000; % mass= 10,000kg
ar=10; % area= 10 m^2
fr=0.01; % rolling resistance coefficient
rho=1.2; % density of air
g=9.8; % 9.8m/s
v=24.58; % 24.58 m/s = 55 mph
deltax=200000; %200,000 m for the 20 steps
deltax20=deltax/20; %20 steps
Ewheel=0;
v1=[12,0,-2,-5,-13,-14,-13,-13,-12,-8,-6,...
-15,-15,-16,-17,-17,-16,-15,-14,-13];
for i = 1:20
Ewheelnew = deltax20*((m*g*fr)+(.5*Cd*ar*rho*(v-v1(1,i))^2));
Ewheel = Ewheel + Ewheelnew;
end
EwheelUPRIGHTHIGH = Ewheel/3600/1000
%% RIGHT/UP
Cd=0.8; % air drag coefficient
m=10000; % mass= 10,000kg
ar=10; % area= 10 m^2
fr=0.01; % rolling resistance coefficient
rho=1.2; % density of air
g=9.8; % 9.8m/s
v=24.58; % 24.58 m/s = 55 mph
deltax=200000; %200,000 m for the 20 steps
deltax20=deltax/20; %20 steps
Ewheel=0;
v2=[0,12,15,15,16,17,17,16,15,14,13,...
6,6,13,14,16,14,8,7,8];
for i = 1:20
Ewheelnew = deltax20*((m*g*fr)+(.5*Cd*ar*rho*(v-v2(1,i))^2));
Ewheel = Ewheel + Ewheelnew;
end
EwheelRIGHTUPHIGH = Ewheel/3600/1000
%% Diagonal
Cd=0.8; % air drag coefficient
m=10000; % mass= 10,000kg
ar=10; % area= 10 m^2
fr=0.01; % rolling resistance coefficient
rho=1.2; % density of air
g=9.8; % 9.8m/s
v=24.58; % 24.58 m/s = 55 mph
deltax=141421; %diagonal distance (a^2+b^2=c^2) -> c=14142
deltax14=deltax/14; % 14 diagonal steps
Servatius 44
Ewheel=0;
for i = 1:14
Ewheelnew = deltax14*((m*g*fr)+(.5*Cd*ar*rho*(v)^2));
Ewheel = Ewheel + Ewheelnew;
end
EwheelDIAGONAL = Ewheel/3600/1000
[d3]
clear all
clc
[x,y]=meshgrid(0:1:10,0:1:10);
% X wind values
u=[0 0 0 0 0 0 0 0 0 0 0;...
5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412 0;...
0 0 0 0 0 0 0 0 0 0 0;...
0 0 0 0 0 0 0 0 0 0 0;...
0 0 0 0 0 0 0 0 0 0 0;...
0 0 0 0 0 0 0 0 0 0 0;...
0 0 0 0 0 0 0 0 0 0 0;...
0 0 0 0 0 0 0 0 0 0 0;...
0 0 0 0 0 0 0 0 0 0 0;...
0 0 0 0 0 0 0 0 0 0 0;...
0 0 0 0 0 0 0 0 0 0 0];
% Y wind values
w=[0 0 0 0 0 0 0 0 0 0 0;...
0 0 0 0 0 0 0 0 0 0 5.412;...
0 0 0 0 0 0 0 0 0 0 5.412;...
0 0 0 0 0 0 0 0 0 0 5.412;...
0 0 0 0 0 0 0 0 0 0 5.412;...
0 0 0 0 0 0 0 0 0 0 5.412;...
0 0 0 0 0 0 0 0 0 0 5.412;...
0 0 0 0 0 0 0 0 0 0 5.412;...
0 0 0 0 0 0 0 0 0 0 5.412;...
0 0 0 0 0 0 0 0 0 0 5.412;...
0 0 0 0 0 0 0 0 0 0 5.412];
quiver(x,y,u,w);
axis([-1 11 -1 11])
xlabel('East (m)','FontSize',18);
ylabel('North (m)','FontSize',18);
title('Wind Map','FontSize',18);
set(gca,'FontSize',18);
set(gcf,'Color',[1,1,1]);
grid on
hold on
Servatius 45
%% Walk thru
%% Diagonal Walk
xin=0;
yin=0;
xnew=0;
ynew=0;
xmin=0;
xmax=10;
ymin=0;
ymax=10;
xstick=10;
ystick=10;
rcircle=1;
Nsteps=1;
while Distance(xstick,ystick,xnew,ynew)>rcircle
[xnew,ynew]=DiagonalStep(xin,yin);
if isInsideBox(xnew,ynew,xmin,xmax,ymin,ymax);
xin=xnew;
yin=ynew;
x(Nsteps)=xnew;
y(Nsteps)=ynew;
plot(xnew,ynew,'ro',...
x(1:Nsteps),y(1:Nsteps),'b')
Nsteps=Nsteps+1;
axis([-1 11 -1 11])
drawnow
else
xin=xin;
yin=yin;
end
end
%% Right/Up
xin=0;
yin=0;
xnew=0;
ynew=0;
xmin=0;
xmax=10;
ymin=0;
ymax=10;
xstick=10;
ystick=10;
rcircle=1;
Nsteps=1;
while ynew < 9
[xnew,ynew]=UpStep(xin,yin);
xin=xnew;
yin=ynew;
x(Nsteps)=xnew;
y(Nsteps)=ynew;
Servatius 46
plot(xnew,ynew,'ro',...
x(1:Nsteps),y(1:Nsteps),'b')
Nsteps=Nsteps+1;
axis([-1 11 -1 11])
drawnow
while xnew < 10
[xnew,ynew]=RightStep(xin,yin);
xin=xnew;
yin=ynew;
x(Nsteps)=xnew;
y(Nsteps)=ynew;
plot(xnew,ynew,'ro',...
x(1:Nsteps),y(1:Nsteps),'b')
Nsteps=Nsteps+1;
axis([-1 11 -1 11])
drawnow
end
end
%% RIGHT/UP
Cd=0.8; % air drag coefficient
m=10000; % mass= 10,000kg
ar=10; % area= 10 m^2
fr=0.01; % rolling resistance coefficient
rho=1.2; % density of air
g=9.8; % 9.8m/s
v=24.58; % 24.58 m/s = 55 mph
deltax=200000; %200,000 m for the 20 steps
deltax20=deltax/20; %20 steps
Ewheel=0;
v2=[5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,...
5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,];
for i = 1:20
Ewheelnew = deltax20*((m*g*fr)+(.5*Cd*ar*rho*(v-v2(1,i))^2));
Ewheel = Ewheel + Ewheelnew;
end
EwheelRIGHTUPEQUAL = Ewheel/3600/1000
%% Diagonal
Cd=0.8; % air drag coefficient
m=10000; % mass= 10,000kg
ar=10; % area= 10 m^2
fr=0.01; % rolling resistance coefficient
rho=1.2; % density of air
g=9.8; % 9.8m/s
v=24.58; % 24.58 m/s = 55 mph
deltax=141421; % diagonal distance (a^2+b^2=c^2) -> c=14142
deltax14=deltax/14; % 14 diagonal steps
Ewheel=0;
Servatius 47
for i = 1:14
Ewheelnew = deltax14*((m*g*fr)+(.5*Cd*ar*rho*(v)^2));
Ewheel = Ewheel + Ewheelnew;
end
EwheelDIAGONAL = Ewheel/3600/1000
[e]
%% Change Speeds vs. Constant Speed (Same Time Frame)
% 11/17/14
clear all
clc
%% Changing Speed
Cd=0.8; % air drag coefficient
m=10000; % mass= 10,000kg
ar=10; % area= 10 m^2
fr=0.01; % rolling resistance coefficient
rho=1.2; % density of air
g=9.8; % 9.8m/s
t=60*60*2; %2 hours in seconds
vw1=-5;
vw2=5;
vw3=10;
vw4=15;
vw5=5;
vw6=-5;
vw7=-10;
vw8=-10;
vw9=-5;
vw10=0;
v1=20;
v2=30;
v3=35;
v4=40;
v5=30;
v6=20;
v7=15;
v8=15;
v9=20;
v10=25;
E1 = ((m*g*fr)+(.5*Cd*ar*rho*(v1-vw1)^3))*t;
E2 = ((m*g*fr)+(.5*Cd*ar*rho*(v2-vw2)^3))*t;
E3 = ((m*g*fr)+(.5*Cd*ar*rho*(v3-vw3)^3))*t;
E4 = ((m*g*fr)+(.5*Cd*ar*rho*(v4-vw4)^3))*t;
E5 = ((m*g*fr)+(.5*Cd*ar*rho*(v5-vw5)^3))*t;
E6 = ((m*g*fr)+(.5*Cd*ar*rho*(v6-vw6)^3))*t;
E7 = ((m*g*fr)+(.5*Cd*ar*rho*(v7-vw7)^3))*t;
E8 = ((m*g*fr)+(.5*Cd*ar*rho*(v8-vw8)^3))*t;
E9 = ((m*g*fr)+(.5*Cd*ar*rho*(v9-vw9)^3))*t;
Servatius 48
E10 = ((m*g*fr)+(.5*Cd*ar*rho*(v10-vw10)^3))*t;
EChange=E1+E2+E3+E4+E5+E6+E7+E8+E9+10;
EChange=EChange/3600/1000
%% Constant Speed
v=25;
vw1=-5;
vw2=5;
vw3=10;
vw4=15;
vw5=5;
vw6=-5;
vw7=-10;
vw8=-10;
vw9=-5;
vw10=0;
E1 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw1)^3))*t;
E2 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw2)^3))*t;
E3 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw3)^3))*t;
E4 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw4)^3))*t;
E5 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw5)^3))*t;
E6 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw6)^3))*t;
E7 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw7)^3))*t;
E8 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw8)^3))*t;
E9 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw9)^3))*t;
E10 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw10)^3))*t;
Econstant=E1+E2+E3+E4+E5+E6+E7+E8+E9+10;
Econstant=Econstant/3600/1000

More Related Content

What's hot

Comparison of Latent Heat Flux Using Aerodynamic Methods and Using the Penman...
Comparison of Latent Heat Flux Using Aerodynamic Methods and Using the Penman...Comparison of Latent Heat Flux Using Aerodynamic Methods and Using the Penman...
Comparison of Latent Heat Flux Using Aerodynamic Methods and Using the Penman...Ramesh Dhungel
 
Simulation of Wind Power Dynamic for Electricity Production in Nassiriyah Dis...
Simulation of Wind Power Dynamic for Electricity Production in Nassiriyah Dis...Simulation of Wind Power Dynamic for Electricity Production in Nassiriyah Dis...
Simulation of Wind Power Dynamic for Electricity Production in Nassiriyah Dis...IOSR Journals
 
Modeling Past and Future Climate
Modeling Past and Future ClimateModeling Past and Future Climate
Modeling Past and Future ClimateAndreas Schmittner
 
EcoTas13 BradEvans e-Mast UNSW
EcoTas13 BradEvans e-Mast UNSWEcoTas13 BradEvans e-Mast UNSW
EcoTas13 BradEvans e-Mast UNSWTERN Australia
 
Wind Energy in Pakistan
Wind Energy in PakistanWind Energy in Pakistan
Wind Energy in PakistanSalman Noor
 
Hurricanes and Global Warming- Dr. Kerry Emanuel
Hurricanes and Global Warming- Dr. Kerry EmanuelHurricanes and Global Warming- Dr. Kerry Emanuel
Hurricanes and Global Warming- Dr. Kerry EmanuelJohn Atkeison
 
Delineation of Mahanadi River Basin by Using GIS and ArcSWAT
Delineation of Mahanadi River Basin by Using GIS and ArcSWATDelineation of Mahanadi River Basin by Using GIS and ArcSWAT
Delineation of Mahanadi River Basin by Using GIS and ArcSWATinventionjournals
 
Biomechanics Poster
Biomechanics PosterBiomechanics Poster
Biomechanics PosterBobby Brandt
 
Descriptive modeling in climate change
Descriptive modeling in climate changeDescriptive modeling in climate change
Descriptive modeling in climate changeRaheela Shabbir
 
Climate Modelling, Predictions and Projections
Climate Modelling, Predictions and ProjectionsClimate Modelling, Predictions and Projections
Climate Modelling, Predictions and Projectionsipcc-media
 
Ten most popular software for prediction of cyclonic storms
Ten most popular software for prediction of cyclonic stormsTen most popular software for prediction of cyclonic storms
Ten most popular software for prediction of cyclonic stormsMrinmoy Majumder
 
Uf01172007
Uf01172007Uf01172007
Uf01172007tjagger
 
A WIND POWER PREDICTION METHOD BASED ON BAYESIAN FUSION
A WIND POWER PREDICTION METHOD BASED ON BAYESIAN FUSIONA WIND POWER PREDICTION METHOD BASED ON BAYESIAN FUSION
A WIND POWER PREDICTION METHOD BASED ON BAYESIAN FUSIONcsandit
 

What's hot (20)

Comparison of Latent Heat Flux Using Aerodynamic Methods and Using the Penman...
Comparison of Latent Heat Flux Using Aerodynamic Methods and Using the Penman...Comparison of Latent Heat Flux Using Aerodynamic Methods and Using the Penman...
Comparison of Latent Heat Flux Using Aerodynamic Methods and Using the Penman...
 
Simulation of Wind Power Dynamic for Electricity Production in Nassiriyah Dis...
Simulation of Wind Power Dynamic for Electricity Production in Nassiriyah Dis...Simulation of Wind Power Dynamic for Electricity Production in Nassiriyah Dis...
Simulation of Wind Power Dynamic for Electricity Production in Nassiriyah Dis...
 
Modeling Past and Future Climate
Modeling Past and Future ClimateModeling Past and Future Climate
Modeling Past and Future Climate
 
brian_medeiros_CV
brian_medeiros_CVbrian_medeiros_CV
brian_medeiros_CV
 
EcoTas13 BradEvans e-Mast UNSW
EcoTas13 BradEvans e-Mast UNSWEcoTas13 BradEvans e-Mast UNSW
EcoTas13 BradEvans e-Mast UNSW
 
Climate Modelling
Climate ModellingClimate Modelling
Climate Modelling
 
Wind Energy in Pakistan
Wind Energy in PakistanWind Energy in Pakistan
Wind Energy in Pakistan
 
Hurricanes and Global Warming- Dr. Kerry Emanuel
Hurricanes and Global Warming- Dr. Kerry EmanuelHurricanes and Global Warming- Dr. Kerry Emanuel
Hurricanes and Global Warming- Dr. Kerry Emanuel
 
Delineation of Mahanadi River Basin by Using GIS and ArcSWAT
Delineation of Mahanadi River Basin by Using GIS and ArcSWATDelineation of Mahanadi River Basin by Using GIS and ArcSWAT
Delineation of Mahanadi River Basin by Using GIS and ArcSWAT
 
IAS_SRF_Project_2015
IAS_SRF_Project_2015IAS_SRF_Project_2015
IAS_SRF_Project_2015
 
Biomechanics Poster
Biomechanics PosterBiomechanics Poster
Biomechanics Poster
 
Abstract
AbstractAbstract
Abstract
 
Descriptive modeling in climate change
Descriptive modeling in climate changeDescriptive modeling in climate change
Descriptive modeling in climate change
 
Nc climate change model projections chapter final draft 06
Nc climate change model projections chapter  final draft   06Nc climate change model projections chapter  final draft   06
Nc climate change model projections chapter final draft 06
 
N1304029496
N1304029496N1304029496
N1304029496
 
Climate Modelling, Predictions and Projections
Climate Modelling, Predictions and ProjectionsClimate Modelling, Predictions and Projections
Climate Modelling, Predictions and Projections
 
Ten most popular software for prediction of cyclonic storms
Ten most popular software for prediction of cyclonic stormsTen most popular software for prediction of cyclonic storms
Ten most popular software for prediction of cyclonic storms
 
Uf01172007
Uf01172007Uf01172007
Uf01172007
 
A WIND POWER PREDICTION METHOD BASED ON BAYESIAN FUSION
A WIND POWER PREDICTION METHOD BASED ON BAYESIAN FUSIONA WIND POWER PREDICTION METHOD BASED ON BAYESIAN FUSION
A WIND POWER PREDICTION METHOD BASED ON BAYESIAN FUSION
 
Thesis Summary
Thesis SummaryThesis Summary
Thesis Summary
 

Viewers also liked

Amtelco June 2010 webinar on Infinity Contact-Based Architecture New
Amtelco June 2010 webinar on Infinity Contact-Based Architecture NewAmtelco June 2010 webinar on Infinity Contact-Based Architecture New
Amtelco June 2010 webinar on Infinity Contact-Based Architecture NewAMTELCO
 
Pharmaceutical Congress China 29-30 March 2016
Pharmaceutical Congress China 29-30 March 2016Pharmaceutical Congress China 29-30 March 2016
Pharmaceutical Congress China 29-30 March 2016Helen P
 
Way for short term support and resistance
Way for short term support and resistanceWay for short term support and resistance
Way for short term support and resistanceforexbuffalo
 
Masaaki Imai June 2011 KAIZEN Institute USA forum
Masaaki Imai June 2011 KAIZEN Institute USA forumMasaaki Imai June 2011 KAIZEN Institute USA forum
Masaaki Imai June 2011 KAIZEN Institute USA forumMike Wroblewski
 
Pelayo Skillbraket Business Pack
Pelayo Skillbraket Business PackPelayo Skillbraket Business Pack
Pelayo Skillbraket Business PackArturo Pelayo
 
Flyer Familienzentrum St. Joseph
Flyer Familienzentrum St. JosephFlyer Familienzentrum St. Joseph
Flyer Familienzentrum St. JosephSebastian Althoff
 
Rethinking Revenue Cycle Management_April 2015
Rethinking Revenue Cycle Management_April 2015Rethinking Revenue Cycle Management_April 2015
Rethinking Revenue Cycle Management_April 2015Spencer Brownell
 
Bd facs™ lysing
Bd facs™ lysingBd facs™ lysing
Bd facs™ lysingLam Nguyen
 
High volume test automation in practice
High volume test automation in practiceHigh volume test automation in practice
High volume test automation in practiceandytinkham
 
Nuyou Fabulous 40: Ad Package
Nuyou Fabulous 40: Ad PackageNuyou Fabulous 40: Ad Package
Nuyou Fabulous 40: Ad PackageCarol Low
 
Cesp jet training seminar 2014
Cesp  jet training seminar 2014Cesp  jet training seminar 2014
Cesp jet training seminar 2014Njoroge Joseph
 
Top 10 U.S. Importers
Top 10 U.S. ImportersTop 10 U.S. Importers
Top 10 U.S. ImportersJOCNews
 
CSSI - Corporate Innovation Workshop - Summary
CSSI - Corporate Innovation Workshop - SummaryCSSI - Corporate Innovation Workshop - Summary
CSSI - Corporate Innovation Workshop - SummaryCorporate Startup Summit
 
CPHS Executive Summary
CPHS Executive SummaryCPHS Executive Summary
CPHS Executive Summarycrescentprephs
 
French video game industry yearbook_2013
French video game industry yearbook_2013French video game industry yearbook_2013
French video game industry yearbook_2013Julien Villedieu
 

Viewers also liked (20)

Amtelco June 2010 webinar on Infinity Contact-Based Architecture New
Amtelco June 2010 webinar on Infinity Contact-Based Architecture NewAmtelco June 2010 webinar on Infinity Contact-Based Architecture New
Amtelco June 2010 webinar on Infinity Contact-Based Architecture New
 
OGJ Oman Oct 2014
OGJ Oman Oct 2014OGJ Oman Oct 2014
OGJ Oman Oct 2014
 
Case Study on Manual & Automation Testing ( Online Business Magazine)
Case Study on Manual & Automation Testing ( Online Business Magazine)Case Study on Manual & Automation Testing ( Online Business Magazine)
Case Study on Manual & Automation Testing ( Online Business Magazine)
 
EMC DR Case Study
EMC DR Case StudyEMC DR Case Study
EMC DR Case Study
 
Pharmaceutical Congress China 29-30 March 2016
Pharmaceutical Congress China 29-30 March 2016Pharmaceutical Congress China 29-30 March 2016
Pharmaceutical Congress China 29-30 March 2016
 
Way for short term support and resistance
Way for short term support and resistanceWay for short term support and resistance
Way for short term support and resistance
 
Masaaki Imai June 2011 KAIZEN Institute USA forum
Masaaki Imai June 2011 KAIZEN Institute USA forumMasaaki Imai June 2011 KAIZEN Institute USA forum
Masaaki Imai June 2011 KAIZEN Institute USA forum
 
Pelayo Skillbraket Business Pack
Pelayo Skillbraket Business PackPelayo Skillbraket Business Pack
Pelayo Skillbraket Business Pack
 
Kaushansky Case Study
Kaushansky Case StudyKaushansky Case Study
Kaushansky Case Study
 
Flyer Familienzentrum St. Joseph
Flyer Familienzentrum St. JosephFlyer Familienzentrum St. Joseph
Flyer Familienzentrum St. Joseph
 
Rethinking Revenue Cycle Management_April 2015
Rethinking Revenue Cycle Management_April 2015Rethinking Revenue Cycle Management_April 2015
Rethinking Revenue Cycle Management_April 2015
 
Bd facs™ lysing
Bd facs™ lysingBd facs™ lysing
Bd facs™ lysing
 
High volume test automation in practice
High volume test automation in practiceHigh volume test automation in practice
High volume test automation in practice
 
Nuyou Fabulous 40: Ad Package
Nuyou Fabulous 40: Ad PackageNuyou Fabulous 40: Ad Package
Nuyou Fabulous 40: Ad Package
 
Cesp jet training seminar 2014
Cesp  jet training seminar 2014Cesp  jet training seminar 2014
Cesp jet training seminar 2014
 
Top 10 U.S. Importers
Top 10 U.S. ImportersTop 10 U.S. Importers
Top 10 U.S. Importers
 
Cити венд
Cити вендCити венд
Cити венд
 
CSSI - Corporate Innovation Workshop - Summary
CSSI - Corporate Innovation Workshop - SummaryCSSI - Corporate Innovation Workshop - Summary
CSSI - Corporate Innovation Workshop - Summary
 
CPHS Executive Summary
CPHS Executive SummaryCPHS Executive Summary
CPHS Executive Summary
 
French video game industry yearbook_2013
French video game industry yearbook_2013French video game industry yearbook_2013
French video game industry yearbook_2013
 

Similar to UpdatedDraft

International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
· Program the Choose to be healthy, at Lankenau Medical Center at .docx
· Program the Choose to be healthy, at Lankenau Medical Center at .docx· Program the Choose to be healthy, at Lankenau Medical Center at .docx
· Program the Choose to be healthy, at Lankenau Medical Center at .docxodiliagilby
 
Geos 405 sustainable campus poster
Geos 405 sustainable campus posterGeos 405 sustainable campus poster
Geos 405 sustainable campus posterChandler Markovchik
 
Ureca final report (gold grant)
Ureca final report (gold grant)Ureca final report (gold grant)
Ureca final report (gold grant)Salman Rahmani
 
Assessment of wind resource and
Assessment of wind resource andAssessment of wind resource and
Assessment of wind resource andijcsa
 
A Comparison Study in Response to the Proposed Replacement of CALINE3 with AE...
A Comparison Study in Response to the Proposed Replacement of CALINE3 with AE...A Comparison Study in Response to the Proposed Replacement of CALINE3 with AE...
A Comparison Study in Response to the Proposed Replacement of CALINE3 with AE...BREEZE Software
 
Computational Fluid Dynamics (CFD) Analysis of Natural Convection of Converge...
Computational Fluid Dynamics (CFD) Analysis of Natural Convection of Converge...Computational Fluid Dynamics (CFD) Analysis of Natural Convection of Converge...
Computational Fluid Dynamics (CFD) Analysis of Natural Convection of Converge...IJERA Editor
 
New Directions for Wind Turbines
New Directions for Wind TurbinesNew Directions for Wind Turbines
New Directions for Wind TurbinesJacob Groezinger
 
Análisis estadístico de la dirección y velocidad del viento en Matehuala S.L.P.
Análisis estadístico de la dirección y velocidad del viento en Matehuala S.L.P.Análisis estadístico de la dirección y velocidad del viento en Matehuala S.L.P.
Análisis estadístico de la dirección y velocidad del viento en Matehuala S.L.P.Carlos A. Velázquez García
 
OFFSHORE WIND RESOURCE ASSESSMENT OFF THE SOUTH AFRICAN COASTLINE
OFFSHORE WIND RESOURCE ASSESSMENT OFF THE SOUTH AFRICAN COASTLINEOFFSHORE WIND RESOURCE ASSESSMENT OFF THE SOUTH AFRICAN COASTLINE
OFFSHORE WIND RESOURCE ASSESSMENT OFF THE SOUTH AFRICAN COASTLINEIAEME Publication
 
Detail analysis and design point of vie on wind power plant
Detail analysis and design point of vie  on wind power plantDetail analysis and design point of vie  on wind power plant
Detail analysis and design point of vie on wind power plantfekadewalle
 
Evolutionary algorithms based optimization of pid controller for hybrid renew...
Evolutionary algorithms based optimization of pid controller for hybrid renew...Evolutionary algorithms based optimization of pid controller for hybrid renew...
Evolutionary algorithms based optimization of pid controller for hybrid renew...IJARIIT
 
Design of vertical axis wind turbine for harnessing optimum power
Design of vertical axis wind turbine for harnessing optimum powerDesign of vertical axis wind turbine for harnessing optimum power
Design of vertical axis wind turbine for harnessing optimum powerIAEME Publication
 
Energies 12-01934
Energies 12-01934Energies 12-01934
Energies 12-01934sunny112811
 
Final_Design_Document
Final_Design_DocumentFinal_Design_Document
Final_Design_DocumentJace Miller
 

Similar to UpdatedDraft (20)

International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
· Program the Choose to be healthy, at Lankenau Medical Center at .docx
· Program the Choose to be healthy, at Lankenau Medical Center at .docx· Program the Choose to be healthy, at Lankenau Medical Center at .docx
· Program the Choose to be healthy, at Lankenau Medical Center at .docx
 
Wind energy
Wind energyWind energy
Wind energy
 
Geos 405 sustainable campus poster
Geos 405 sustainable campus posterGeos 405 sustainable campus poster
Geos 405 sustainable campus poster
 
Ureca final report (gold grant)
Ureca final report (gold grant)Ureca final report (gold grant)
Ureca final report (gold grant)
 
Assessment of wind resource and
Assessment of wind resource andAssessment of wind resource and
Assessment of wind resource and
 
A Comparison Study in Response to the Proposed Replacement of CALINE3 with AE...
A Comparison Study in Response to the Proposed Replacement of CALINE3 with AE...A Comparison Study in Response to the Proposed Replacement of CALINE3 with AE...
A Comparison Study in Response to the Proposed Replacement of CALINE3 with AE...
 
Computational Fluid Dynamics (CFD) Analysis of Natural Convection of Converge...
Computational Fluid Dynamics (CFD) Analysis of Natural Convection of Converge...Computational Fluid Dynamics (CFD) Analysis of Natural Convection of Converge...
Computational Fluid Dynamics (CFD) Analysis of Natural Convection of Converge...
 
New Directions for Wind Turbines
New Directions for Wind TurbinesNew Directions for Wind Turbines
New Directions for Wind Turbines
 
Análisis estadístico de la dirección y velocidad del viento en Matehuala S.L.P.
Análisis estadístico de la dirección y velocidad del viento en Matehuala S.L.P.Análisis estadístico de la dirección y velocidad del viento en Matehuala S.L.P.
Análisis estadístico de la dirección y velocidad del viento en Matehuala S.L.P.
 
OFFSHORE WIND RESOURCE ASSESSMENT OFF THE SOUTH AFRICAN COASTLINE
OFFSHORE WIND RESOURCE ASSESSMENT OFF THE SOUTH AFRICAN COASTLINEOFFSHORE WIND RESOURCE ASSESSMENT OFF THE SOUTH AFRICAN COASTLINE
OFFSHORE WIND RESOURCE ASSESSMENT OFF THE SOUTH AFRICAN COASTLINE
 
Detail analysis and design point of vie on wind power plant
Detail analysis and design point of vie  on wind power plantDetail analysis and design point of vie  on wind power plant
Detail analysis and design point of vie on wind power plant
 
Evolutionary algorithms based optimization of pid controller for hybrid renew...
Evolutionary algorithms based optimization of pid controller for hybrid renew...Evolutionary algorithms based optimization of pid controller for hybrid renew...
Evolutionary algorithms based optimization of pid controller for hybrid renew...
 
Energies 12-01934
Energies 12-01934Energies 12-01934
Energies 12-01934
 
C012512230
C012512230C012512230
C012512230
 
Design of vertical axis wind turbine for harnessing optimum power
Design of vertical axis wind turbine for harnessing optimum powerDesign of vertical axis wind turbine for harnessing optimum power
Design of vertical axis wind turbine for harnessing optimum power
 
Energies 12-01934
Energies 12-01934Energies 12-01934
Energies 12-01934
 
Final_Design_Document
Final_Design_DocumentFinal_Design_Document
Final_Design_Document
 
Ht2514031407
Ht2514031407Ht2514031407
Ht2514031407
 
Ht2514031407
Ht2514031407Ht2514031407
Ht2514031407
 

UpdatedDraft

  • 1. Exploiting Weather Conditions for Minimizing Transportation Energy1 By Michael Servatius2 University of Notre Dame, Department of Mechanical Engineering Fall 2014 1 In part supported by NSF Grant 1239224 2 Advised by Peter Bauer
  • 2. Servatius 2 Table of Contents I. Abstract—Page 3 II. Introduction—Pages 3-5 a. Motivation and Process—Pages 3-4 b. Prior Research and Resources—Page 4 c. Nomenclature and Notation—Pages 4-5 III. Results—Pages 5-17 a. Constant Drive Speed—Pages 5-16 i. Theoretical Straight Line Distance Energy Evaluation—Pages 5-6 ii. Comparing Energies of Different Routes Across the U.S.A—Pages 6-9 iii. Comparing Energies of the Same Route on Different Days—Pages 9-12 iv. Theoretical Map Showing Winds Necessary to Save Energy—Pages 12-16 b. Changing Driving Speed—Pages 16-17 IV. Conclusion—Pages 17-21 a. What We Learned—Pages 17-18 b. Future Work—Pages 19-21 i. Continued Research—Pages 18-19 ii. Implementation—Page 20-21 c. Significance—Pages 21-22 V. References—Page 23 VI. Appendix—Page 23-47
  • 3. Servatius 3 I. Abstract The main objective of the work done this semester was to determine the effects (and their magnitude) of weather on transportation energy. While this work can be applied to anything from snow on the ground to humidity in the air, we focused on the effects that wind conditions have on energy consumption. This work can be useful for any drivers, but the simulations were all done with a truck in mind. Universities and research companies should highly consider looking further into the influence of weather on energy intake, as our findings show that it can have a major impact on saving energy, and thus money, if the weather conditions are considered appropriately. II. Introduction a. Motivation and Process The motivation behind this work was to explore something that could be very important to energy and cost savings in the transportation industry, yet has very little research done already on it. The first thing that we studied was the energy difference between different routes from one point to another. We found that in some cases, it may be worthwhile to travel a slightly longer distance in order to save some energy. This is done by taking advantage of wind conditions. In other words, avoiding headwinds and trying to drive with tailwinds can make a big difference in energy use. Next, experiments were done to compare energy consumption on different days. Real time wind conditions were tested on a relatively calm day, and then on a very windy day. The energy uses were very different. This work brings the question of whether delaying or pushing up transportation could be beneficial. For instance, a company may be able to save a good deal of energy, and therefore money, if they chose to travel on a day with tailwinds rather than a calm
  • 4. Servatius 4 day or a day with headwinds. Of course, this type of decision can only be applied in very unique circumstances, but sometimes the little things can make a big difference. The studies involving the testing of different routes and changing travel day were both done at constant speed, so our next experiment dealt with altering the speed based on the wind conditions. Overall, we found that changing speeds based on winds and keeping the relative wind speed the same throughout a drive can have significant impacts on energy. We only touched the surface of this idea, however, and there is much more that can, and should, be explored in terms of changing speeds based on weather. b. Prior Researchand Resources There has been very little research done involving weather and its impact on transportation energy. Hopefully, people see the possibilities that can come with maximizing energy use based on weather and the topic is explored further in the future. In terms of our work, the starting point was [1]. The equations and theory in this text was the backbone of the research, as the energy equations were used along with wind conditions to prove that weather can have a major impact on energy. Furthermore, we looked a little bit into systems that update routes based on traffic conditions to explore if this could eventually become a reality with wind and other weather conditions. c. Nomenclature and Notation As suggested earlier, the energy equation from Ehsani et al was the main driving point behind the work done. The energy equation a can be manipulated slightly to include wind conditions, and coding this equation based on different routes was much of the work done. The equation is as follows: 𝐸 = ∆𝑥(𝑚𝑔𝑓𝑟 + 0.5𝐶 𝑑 𝐴𝜌𝑣2 )
  • 5. Servatius 5 where E is the energy, ∆𝑥 is the change in distance, m is the mass of the vehicle, g is the gravitational constant, 𝑓𝑟 is the rolling resistance coefficient, 𝐶 𝑑 is the air drag coefficient, A is the frontal area of the vehicle, 𝜌 is the density of air, and v is the velocity of the vehicle. In the majority of our tests, the velocity was held constant at about 55 mph (~24.58 m/s). In all the tests, the rolling resistance was held at 0.01, the air drag at 0.8, the mass at 10000 kg, the frontal area at 10 m2, and the density of air at 1.2 kg/m3. The change in distance must be in meters for the units to remain consistent and then all energies were converted to kWhr. The wind conditions were taken into account by altering the velocity term. To do this, we also had to segment the distance based on where the winds were, often creating multiple energy calculations and then summing them to get the total energy across the entire distance being studied. III. Results a. Constant Driving Speed i. Theoretical Straight Line Distance Energy Evaluation [a] The first step in our research was to transfer the energy equation into MATLAB and ensure that the code was running properly. We did this on a small scale and used a theoretical drive. This meant that we did not use real roads and just considered a straight-line path. After confirming that the code was working by showing that with zero wind the energy consumption was equal to that solved for by hand, we were able to take the winds into account. Because the simulation was theoretical, we could control the winds. We chose to create 4 cases: no wind, all tail winds, all head winds, and alternating tail and head winds. To truly show that the wind could in fact make a difference in energy use for a truck, we chose to use large winds for this first simulation. The distance traveled was chosen to be 96.2 miles (154818.9 m), the distance between South Bend and Chicago with wind speeds of 20 mph
  • 6. Servatius 6 (8.94 m/s). The result showed that tailwinds could make a big difference in energy use when compared to both a no-wind case and a test with only headwinds. The energy with no wind was 166.86 kWh, with tailwinds was 92.64 kWh, with headwinds was 274.08 kWh, and finally with alternating winds was 183.36 kWh. The fact that the alternating case used more energy than the no wind case (by about 9.9%) also shows that the negative effect of headwinds is greater than the positive effect on energy of tailwinds. Thus, if choosing a driving route, the most important thing in terms of energy use is to avoid headwinds. ii. Comparing Energies of Different Routes Across the U.S.A [b] The next simulation involved testing how wind changes energy use in a real scenario. To do this, we chose three different routes from Phoenix to Chicago. One route was the direct route suggested by [2], while the other two routes were chosen based on the wind conditions on September 30th. The three routes are shown in Figures 1-3, and the wind conditions in Figure 4. The wind maps found online at [3] allowed for easy calculation of wind magnitude and direction across the country and this data was integrated into our code.
  • 7. Servatius 7 Figure 1. Phoenix to OKC to Omaha to Chicago Figure 2. Phoenix to Salt Lake City to Chicago
  • 8. Servatius 8 Figure 3. Phoenix to Chicago Direct Figure 4. Wind Conditions on September 30, 2014 In this particular case, the most direct route (Figure 3) is the smartest route in terms of time,
  • 9. Servatius 9 distance and energy consumption. This route from Phoenix to Chicago spanned a distance of 1802 miles (2900038 m) and used 3013.6 kWh of energy. The route from Phoenix to OKC to Omaha to Chicago of 1931 miles (3107643 m) used 3100 kWh while the route from Phoenix to Salt Lake City to Chicago of 2051 miles (3300765 m) used 3436.7 kWh. Although the most direct route also is the most energy efficient, going from Phoenix to OKC to Omaha to Chicago utilizes the winds more than any other route. This shows that the wind does make a significant impact, as the distance traveled is 7.16% more than the direct route, but only 2.87% more energy is used. The main takeaway from this simulation is that the wind does have a substantial impact on energy, but it may only apply in particular cases. In this case, it makes the most sense to take the most direct route. If the winds were a bit stronger, however, it is very feasible that the longer route shown in Figure 1 could save some energy over the direct route. The effects of the winds are further demonstrated by comparing the energy consumptions of all the routes with and without wind. Without wind, the direct route shown in Figure 3 used 3125.6 kWh of energy, or 3.7% more energy than with the wind included. Next, the route from Phoenix to Salt Lake City to Chicago used 3557.5 kWh, or 3.5% more energy than with the wind included. Finally, the route from Phoenix to OKC to Omaha to Chicago used 3349.3 kWh of energy, or a whopping 8% more than with the wind included. Overall, including the wind in energy calculations gives a more realistic picture of the energy being consumed by the truck, and if used correctly, this can save a lot of energy. iii. Comparing Energies of the Same Route on Different Days [c] Given our previous experiment, it is easy to see that going a slightly further distance could potentially be beneficial is winds are accounted for properly. So going a different route to
  • 10. Servatius 10 save energy was a possibility, and the next step was to ask if going a different time or even day could save money. Thus, we used the same wind conditions from September 30th found in Figure 4 and compared them to the winds on October 6th. We chose a path from New Orleans to Columbus (as shown in Figure 6), as the winds were very large in this direction on October 6th as shown in Figure 5. The September 30th winds were relatively calm in this direction, so the aim of this test was to show that delaying or pushing up travel has the potential to save a good amount of energy, again only if the winds are used properly. Figure 5. Wind Conditions on October 6, 2014
  • 11. Servatius 11 Figure 6. New Orleans to Columbus The results of this experiment demonstrated the importance of winds in energy calculations for two main reasons. The first, as hinted at earlier, deals with comparing winds on separate occasions. With no wind, the trip from New Orleans to Columbus used 1575.5 kWh of energy. With the calm winds on September 30th, 1569.3 kWh of energy were used. Finally, with strong tailwinds on October 6th, 1180.5 kWh of energy were used. This is a 25.1% decrease in energy consumption from no wind to the conditions on October 6th and a 24.8% decrease from September 30th. These savings in energy could save a lot of money. In this case, the winds are a week apart, so a company may not be able to delay a trip for that long. It is certainly worth looking into the wind conditions on several days when planning a trip, however, as it could save a lot of energy to travel when there are advantageous winds.
  • 12. Servatius 12 The second demonstration of the large impact the winds have on energy is comparing the trip from New Orleans to Columbus and vice versa on both September 30th and October 6th. On the first date, the energy used from New Orleans to Columbus was 1569.3 kWh while it was 1582.2 in the opposite direction. On October 6th, the energy consumed was 1180.5 kWh going north to Columbus and 2053.2 kWh going from Columbus to New Orleans. The calm winds on the final day of September had relatively little affect on energy, while the large winds (ranging from 3.5-5.5 m/s) on October 6th had a huge influence depending on whether the truck travels with or against the wind. Just to further illustrate this point, with calm winds on September 30th, the energy changed less than 1% depending on the direction of travel. On the other hand, the energy changed 42.5% depending on the direction of travel with strong winds on October 6th. iv. Theoretical Map Showing Winds Necessary to Save Energy [d1]-[d3] While these studies done on the U.S. roadways are extremely useful in showing the impact of weather on energy use, it can be a bit difficult to visualize the winds along with the roadways. Therefore, we decided to return to a theoretical case. The main idea was to create a wind map and vary the conditions how we pleased, and then have an animated line show a path moving through the wind map. There is no way to show the animation in this report, so the maps are shown after the truck’s route has been finished. The first theoretical test is found in Figure 7, with winds varying between 0-18 mph (0-8 m/s). Three routes were tested and all begin in the bottom left of the figure and end in the top right. The first was a test case, taking the most direct route (diagonally) with no headwinds or tailwinds. The second route (to the right and then up) went around the outside with only winds that would save energy. Finally, the third route (up and the to the right) went around the outside with only winds that would lose energy. Much like we
  • 13. Servatius 13 did earlier, the main goal was to determine whether going a further distance could actually save energy due to strong tailwinds. Figure 7. Theoretical 10 x 10 Map (Varying Wind Conditions) [d1] Much like before, the effects of the wind were very noticeable, but it was the best choice to follow the most direct route. The direct route spanned almost 88 miles (141,421 m) and used 152.4 kWh. The route designed to best utilize the winds spanned 124 miles (200,000 m) and used 170.7 kWh. Lastly, the course that went against the winds also covered 124 miles (200,000 m) but used 263.1 kWh of energy. While covering the same distance, the two routes that traversed the outside of the theoretical map had a 54% difference in energy use. This percentage
  • 14. Servatius 14 can be solely attributed to the wind conditions. Furthermore, the long route that utilized positive winds traveled 41% further than the direct route, but only used 12% more energy. Given the results from our first theoretical test, we decided to increase the wind conditions in the same size theoretical map. This test is depicted in Figure 8, and the winds varied between 0-40 mph (0-18 m/s)3. Again, there are 3 routes—a direct diagonal route, an efficient route around the outside, and an inefficient route around the outside. Figure 8. Theoretical 10 x 10 Map (Varying High Wind Conditions) [d2] In this case, the weather made a huge difference, which was expected given the large magnitude of the winds. The efficient route along the edge of the map ended up being the 3 Consult the appendix to see the wind conditions in detail
  • 15. Servatius 15 smartest route to take, proving that the winds can make it advantageous to take a longer route in order to save energy. This path, which covered 124 miles, used only 101.5 kWh of energy. The direct route used 152.4 kWh of energy across 88 miles, and finally the inefficient route used a massive 397.9 kWh. These numbers need to be considered carefully given the large winds tested. Rarely are there 40 mph winds, so we decided to run one more simulation on our theoretical map in order to determine what winds would make the long and direct paths have equal energy consumption. This data would allow us to know exactly which wind conditions need to be present in order to save energy going the long way. In order to simplify the map, we removed all winds that were not along the route and kept the winds the same along the route. As shown in Figure 9, the direct route has no wind. After calculating the average winds required on the long route to utilize the same amount of energy as the direct one, we found that the average wind conditions must be equal to 12.1 mph (5.412 m/s). With these winds, the energy used over the 124-mile road was 152.4 kWh. The 88-mile direct course also used 152.4 kWh. Like stated before, the difference between the routes in terms of distance was about 41 %, but the energy difference was less than .0008 %. The reason that this model is so important is that 12 mph winds are very realistic, and we traveled more than 40% further with the same energy considerations. This can make a huge difference if considered over all drives, as there are likely many cases that a relatively direct route (only go slightly out of the way), but also save some energy. If studied and implemented correctly, this could save a lot of energy for truck companies in the long run.
  • 16. Servatius 16 Figure 9. Theoretical 10 x 10 Map (Constant Wind Conditions) [d3] b. Changing Driving Speed [e] After determining that the wind can provide energy returns while traveling at a constant speed, the next step in our work was to investigate whether altering the speed of the truck based on the wind conditions would change the energy considerations. The main idea in this simulation was to slow down the truck when headwinds were present and speed up when tailwinds were present. Our thinking in this was that we would take advantage of winds that help lower energy consumption (tailwinds) and minimize the negative energy effects of the headwinds. We decided to run two tests across the same path, one with constant truck speed and one that would alter the speed based on the winds as described above. We took a 20-hour drive and
  • 17. Servatius 17 broke it down into 10 different wind segments. We altered the speed of the truck so that the relative air speed would remain constant. In other words, if a 5 m/s tailwind were present, the truck would speed up 5 m/s. If a 5 m/s headwind existed, the truck would slow down 5 m/s. Overall, over our 20 hours, the wind speeds averaged out to zero so that we could compare the results to a test case with a constant drive speed and still have the 20-hour time period for both cases. The winds varied between 0-33.5 mph (0-15 m/s), however, 9 of the 10 wind conditions were 22 mph (10 m/s) or less. It was found that keeping relative air speed constant by changing truck speeds saved energy compared to the test case of driving at a constant speed. Both tests were done over 20 hours, and the truck with changing speed resulted in 1367.6 kWh of energy. If we did not alter the speed of the truck and remained at a constant 56 mph (25 m/s), the energy use was 1814 kWh. This is a 32.6% difference in energy use, a huge savings when considering the time traveled is identical. While the winds considered were relatively high, they were large for both headwinds and tailwinds, so it was not a highly favorable path for the constant case. This demonstrates that if we were to apply some of our previous work with rerouting based on winds along with altering the speed of the truck, we could save a great deal of energy. IV. Conclusion a. What We Learned The goal of our work was to determine if weather has an impact on energy consumption in transportation. More specifically, we wanted to explore the effects of wind on a truck. After doing a myriad of simulations, it is clear that wind does in fact have a noticeable impact on energy. Asking and exploring three main questions helped determined this.
  • 18. Servatius 18 The first was to determine whether taking alternative routes could help save energy. We looked at going from one place to another via different path both across the country and theoretically and showed that, if exploited properly, the wind can help save a substantial amount of energy. The extent of energy savings depends on the strength and direction of the winds, of course. It is up to the user, most likely a truck company, to determine if the savings along one route are worthwhile as opposed to another route. Second, we looked at wind conditions along the same route on multiple occasions to decide if changing travel time could provide energy savings significant enough to change travel plans. Based on our comparison of winds on September 30th to October 6th along the path from New Orleans to Columbus, we showed that considering wind conditions when planning travel has the potential to save a notable amount of energy. In this case, the difference between the two days was about 25%. Now this difference was a week apart, but these conditions could be present days apart or even hours apart under the right circumstances. Because of this, universities and research companies should seriously consider researching more into planning travel based on the winds, as it can go a long way in saving money. Finally, the last question involved changing the speed of the truck, something we had not explored in any previous simulation. We decided to keep the relative wind speed the same and this led to noticeable results, saving 32.6% energy over a 20-hour drive with reasonably high wind speeds. It would have been interesting to continue to explore changing speeds, whether keeping the relative wind speed constant or not, but unfortunately we ran out of time before the semester’s end.
  • 19. Servatius 19 b. Future Work i. Continued Research Because there has been very little work done on this subject to date, there are many directions to take this research in. First, there are numerous more studies that can be done involving the wind. More specifically, we did not do a great deal of work changing speeds so there is a lot more that can be done in this domain. Furthermore, if the areas we studied were combined, this would likely lead to some astounding results. For instance, if a truck company were to consider taking a different route to avoid headwinds and take advantage of tailwinds while also keeping relative wind speed constant by changing the truck’s speed, this would likely lead to major energy savings. In addition to the effects of wind, there are many other weather conditions that would certainly change the energy considerations. For example, having wet road conditions due to rain, slush, snow, or ice would alter the rolling contact coefficient and thus modify the energy calculations. Furthermore, there are weather conditions such as humidity that may or may not have any influence on energy, but must be studied further in order to know for sure. And aside from weather, we also did not include any acceleration effects or traffic patterns. In a realistic situation, the truck would not be driving at a constant rate the entire time of travel, so that must be taken into account when considering our results. If traffic and weather were integrated together in a simulation, this would help give a more realistic answer as to how energy can be saved. Additionally, this study was done with the mass, frontal area, and air drag coefficient of a medium-sized truck, so further research can be done to determine if the wind has the same effect on a sedan, crossover, motorcycle, or any form of transportation. It is very viable that the wind
  • 20. Servatius 20 has an effect on all forms of outdoor transportation and we simply need to determine how great an impact that is in order to decide whether it is worth taking advantage of. Finally, some of the research not previously mentioned was to calculate the percentage of the energy consumption that can be attributed to rolling resistance, and that attributed to air drag. It was found that the rolling resistance accounted for 25.26% of the energy, and the air drag 74.74%. This data suggests that the wind conditions are even more important than we believed before, as the air drag component of energy makes up almost three-fourths of the total energy. It would be interesting to see how much these percentages change based on altering the coefficients of air drag and rolling resistance, and it would not be tough a study to pursue further. ii. Implementation This research is interesting, but it is useless unless it is implemented correctly. As we have shown, the wind has a visible effect on energy use. Therefore, it would be beneficial for universities and companies to at least look into further research and determine whether rerouting, preplanning travel, or other considerations based on wind are a realistic possibility to apply to truck businesses or even an average driver. The most logical thing to determine rerouting would be to set up a system similar to those that are already in place to give the most efficient traffic routes. If a GPS system were improved to show not only roads and traffic, but also energy based on weather conditions this would allow a customer to make decisions about which route to take based on the value they place on time and energy. Because heavy traffic wastes a lot of energy, it is likely that in many cases the shortest travel route in terms of time would also be the most efficient in terms of energy. Furthermore, there are a few different ways to employ our new knowledge that keeping the relative wind speed constant can help save energy. First, is by simply making people more
  • 21. Servatius 21 aware to check the winds and drive accordingly. This is a nuisance, however, and the vast majority of people would be unlikely to change their habits. Instead, having digital speed limit signs that adapt based on the wind conditions would help change people’s habits. For example, if strong tailwinds were present, the speed limit would be increased. If strong headwinds existed, the speed limit would be dropped. This would help save energy and money for all drivers whether they know of the effects of the wind or not. Another solution might be to have cars that drive themselves and adjust speed based on the wind. This is not that far fetched considering cars have and continue to be developed that drive unmanned, and sensors measuring the wind are very prevalent. b. Significance As mentioned before, the goal of this work was to determine if manipulating transportation based on winds could save energy. While energy saving is extremely important and a growing concern, at the end of the day, the significance of this work revolves around money. Some of the ideas discussed in the previous section have the potential to be very lucrative business ideas. If a GPS system could update traffic and weather, it would provide insights that truck companies and regular drivers alike could utilize to make quick decisions about saving both time and energy (and thus money). Next, average people owning cars and trucks that drive themselves is extremely likely to occur in the future, so being able to program them to adjust their speed based on the wind would help save a huge amount of energy and money. As we showed, keeping the relative wind speed constant by changing truck speed can save a significant amount of energy for one truck, but imagine the possibilities if this were programmed into cars and trucks on a larger scale.
  • 22. Servatius 22 Very few businesses will get involved in a project that they do not eventually see becoming profitable, so for research to be truly significant, there must be business opportunities. That is what makes this work so meaningful, as it has the possibility of helping to save a great deal of energy if studied and implemented further, while also allowing businesses to profit by developing the software and bringing it to market. We have only uncovered the very tip of the iceberg, and we need to continue to research this field as there is great opportunity to not only do good for the world by saving energy, but also develop something extremely useful and profitable.
  • 23. Servatius 23 V. References [1] Ehsani, Mehrdad. Modern Electric, Hybrid Electric, and Fuel Cell Vehicles: Fundamentals, Theory, and Design. Boca Raton: CRC, 2005. Print. [2] "MapQuest Maps - Driving Directions - Map." MapQuest Maps - Driving Directions - Map. N.p., n.d. Web. 03 Dec. 2014. <http://www.mapquest.com/>. [3] "Wind Map." Wind Map. N.p., n.d. Web. 04 Dec. 2014. <http://hint.fm/wind/>. VI. Appendix [a] %% Michael Servatius % 9/26/14 clear all clc %% Parameters Cd=0.8; % air drag coefficient m=10000; % mass= 10,000kg ar=10; % area= 10 m^2 fr=0.01; % rolling resistance coefficient rho=1.2; % density of air g=9.8; % 9.8m/s v=24.58; % 24.58 m/s = 55 mph deltax=154818.9;%96.2 miles (Chi to South Bend) deltax10=deltax/10; %% Wind at 20 mph (32 km/h) in alternating directions c1=cosd(0); % angle of wind speed c2=cosd(180); c3=cosd(0); c4=cosd(180); c5=cosd(0); c6=cosd(180); c7=cosd(0); c8=cosd(180); c9=cosd(0); c10=cosd(180); vwind1=8.94; % wind speed (ignoring direction) vwind2=8.94; % angle takes care of direction vwind3=8.94; vwind4=8.94; vwind5=8.94; vwind6=8.94;
  • 24. Servatius 24 vwind7=8.94; vwind8=8.94; vwind9=8.94; vwind10=8.94; v1=vwind1*c1; v2=vwind2*c2; v3=vwind3*c3; v4=vwind4*c4; v5=vwind5*c5; v6=vwind6*c6; v7=vwind7*c7; v8=vwind8*c8; v9=vwind9*c9; v10=vwind10*c10; Ewheel101 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v1)^2)); Ewheel102 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v2)^2)); Ewheel103 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v3)^2)); Ewheel104 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v4)^2)); Ewheel105 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v5)^2)); Ewheel106 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v6)^2)); Ewheel107 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v7)^2)); Ewheel108 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v8)^2)); Ewheel109 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v9)^2)); Ewheel1010 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v10)^2)); Ewheel10alternating=Ewheel101+Ewheel102+Ewheel103+Ewheel104+Ewheel105+Ewheel1 06... +Ewheel107+Ewheel108+Ewheel109+Ewheel1010; EAlternating=Ewheel10alternating/3600/1000 %% No Wind, Constant Speed Ewheel = deltax*((m*g*fr)+(.5*Cd*ar*rho*(v)^2)); ENoWind = Ewheel/3600/1000 %% Wind at back c11=cosd(0); % angle of wind speed c12=cosd(0); c13=cosd(0); c14=cosd(0); c15=cosd(0); c16=cosd(0); c17=cosd(0); c18=cosd(0); c19=cosd(0); c20=cosd(0); vwind11=8.94; % wind speed (ignoring direction) vwind12=8.94; % angle takes care of direction vwind13=8.94; vwind14=8.94;
  • 25. Servatius 25 vwind15=8.94; % 20 mph in m/s vwind16=8.94; vwind17=8.94; vwind18=8.94; vwind19=8.94; vwind20=8.94; v11=vwind11*c11; v12=vwind12*c12; v13=vwind13*c13; v14=vwind14*c14; v15=vwind15*c15; v16=vwind16*c16; v17=vwind17*c17; v18=vwind18*c18; v19=vwind19*c19; v20=vwind20*c20; Ewheel1011 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v11)^2)); Ewheel1012 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v12)^2)); Ewheel1013 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v13)^2)); Ewheel1014 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v14)^2)); Ewheel1015 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v15)^2)); Ewheel1016 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v16)^2)); Ewheel1017 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v17)^2)); Ewheel1018 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v18)^2)); Ewheel1019 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v19)^2)); Ewheel1020 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v20)^2)); Ewheel10back=Ewheel1011+Ewheel1012+Ewheel1013+Ewheel1014+Ewheel1015+Ewheel101 6... +Ewheel1017+Ewheel1018+Ewheel1019+Ewheel1020; ETailWind=Ewheel10back/3600/1000 %% Wind in Face c21=cosd(180); % angle of wind speed c22=cosd(180); c23=cosd(180); c24=cosd(180); c25=cosd(180); c26=cosd(180); c27=cosd(180); c28=cosd(180); c29=cosd(180); c30=cosd(180); vwind21=8.94; % wind speed (ignoring direction) vwind22=8.94; % angle takes care of direction vwind23=8.94; vwind24=8.94; vwind25=8.94; vwind26=8.94; % 20 mph = 8.94 m/s vwind27=8.94; vwind28=8.94; vwind29=8.94;
  • 26. Servatius 26 vwind30=8.94; v21=vwind21*c21; v22=vwind22*c22; v23=vwind23*c23; v24=vwind24*c24; v25=vwind25*c25; v26=vwind26*c26; v27=vwind27*c27; v28=vwind28*c28; v29=vwind29*c29; v30=vwind30*c30; Ewheel1021 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v21)^2)); Ewheel1022 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v22)^2)); Ewheel1023 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v23)^2)); Ewheel1024 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v24)^2)); Ewheel1025 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v25)^2)); Ewheel1026 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v26)^2)); Ewheel1027 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v27)^2)); Ewheel1028 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v28)^2)); Ewheel1029 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v29)^2)); Ewheel1030 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v30)^2)); Ewheel10front=Ewheel1021+Ewheel1022+Ewheel1023+Ewheel1024+Ewheel1025+Ewheel10 26... +Ewheel1027+Ewheel1028+Ewheel1029+Ewheel1030; EHeadWind=Ewheel10front/3600/1000 %% Rolling Resistance vs. Air Drag Percentages roll=deltax*(m*g*fr)/3600/1000; air=deltax*(.5*Cd*ar*rho*(v)^2)/3600/1000; total=air+roll; rollp=roll/total*100 airp=air/total*100 [b] %% Michael Servatius % 9/30/14 clear all clc %% Parameters Cd=0.8; % air drag coefficient m=10000; % mass= 10,000kg ar=10; % area= 10 m^2 fr=0.01; % rolling resistance coefficient rho=1.2; % density of air g=9.8; % 9.8m/s v=24.58; % 24.58 m/s = 55 mph deltax=3107643; %1931 miles (PHO to OKC to OM to CHI) deltax10=deltax/10;
  • 27. Servatius 27 deltax1=3300765;%2051 miles (PHO to SLC to CHI) deltax110=deltax1/10; deltax2=2900038;%1802 miles (PHO to CHI direct) deltax210=deltax2/10; %% E without wind ENoWind = deltax*((m*g*fr)+(.5*Cd*ar*rho*(v)^2)); ENoWind = ENoWind/3600/1000 ENoWind1 = deltax1*((m*g*fr)+(.5*Cd*ar*rho*(v)^2)); ENoWind1 = ENoWind1/3600/1000 ENoWind2 = deltax2*((m*g*fr)+(.5*Cd*ar*rho*(v)^2)); ENoWind2 = ENoWind2/3600/1000 %% With Wind (PHO to OKC to OM to CHI) % http://hint.fm/wind/ % PHO to CHI Wind c1=cosd(0); % angle of wind speed c2=cosd(0); c3=cosd(0); c4=cosd(80); c5=cosd(0); c6=cosd(0); c7=cosd(0); c8=cosd(180); c9=cosd(180); c10=cosd(180); vwind1=2.24; % wind speed (ignoring direction) vwind2=2.68; % angle takes care of direction vwind3=3.58; vwind4=5.81; vwind5=4.92; vwind6=5.36; vwind7=4.47; vwind8=4.02; vwind9=2.68; vwind10=2.68; v1=vwind1*c1; v2=vwind2*c2; v3=vwind3*c3; v4=vwind4*c4; v5=vwind5*c5; v6=vwind6*c6; v7=vwind7*c7; v8=vwind8*c8;
  • 28. Servatius 28 v9=vwind9*c9; v10=vwind10*c10; Ewheel1 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v1)^2)); Ewheel2 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v2)^2)); Ewheel3 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v3)^2)); Ewheel4 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v4)^2)); Ewheel5 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v5)^2)); Ewheel6 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v6)^2)); Ewheel7 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v7)^2)); Ewheel8 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v8)^2)); Ewheel9 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v9)^2)); Ewheel10 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v10)^2)); EAtwheel=Ewheel1+Ewheel2+Ewheel3+Ewheel4+Ewheel5+Ewheel6... +Ewheel7+Ewheel8+Ewheel9+Ewheel10; Eroute=EAtwheel/3600/1000 %% With Wind (PHO to Salt Lake City to CHI) % http://hint.fm/wind/ % PHO to CHI Wind c11=cosd(90); % angle of wind speed c12=cosd(90); c13=cosd(90); c14=cosd(0); c15=cosd(0); c16=cosd(0); c17=cosd(80); c18=cosd(100); c19=cosd(160); c20=cosd(180); vwind11=2.24; % wind speed (ignoring direction) vwind12=2.24; % angle takes care of direction vwind13=2.68; vwind14=2.68; vwind15=5.36; vwind16=7.15; vwind17=4.92; vwind18=4.47; vwind19=4.92; vwind20=2.68; v11=vwind11*c11; v12=vwind12*c12; v13=vwind13*c13; v14=vwind14*c14; v15=vwind15*c15; v16=vwind16*c16; v17=vwind17*c17; v18=vwind18*c18; v19=vwind19*c19; v20=vwind20*c20;
  • 29. Servatius 29 Ewheel11 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v11)^2)); Ewheel12 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v12)^2)); Ewheel13 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v13)^2)); Ewheel14 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v14)^2)); Ewheel15 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v15)^2)); Ewheel16 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v16)^2)); Ewheel17 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v17)^2)); Ewheel18 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v18)^2)); Ewheel19 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v19)^2)); Ewheel20 = deltax110*((m*g*fr)+(.5*Cd*ar*rho*(v-v20)^2)); EAtwheel1=Ewheel11+Ewheel12+Ewheel13+Ewheel14+Ewheel15+Ewheel16... +Ewheel17+Ewheel18+Ewheel19+Ewheel20; Eroute1=EAtwheel1/3600/1000 %% With Wind (PHO to CHI direct) % http://hint.fm/wind/ % PHO to CHI Wind c21=cosd(0); % angle of wind speed c22=cosd(0); c23=cosd(0); c24=cosd(0); c25=cosd(80); c26=cosd(90); c27=cosd(90); c28=cosd(90); c29=cosd(180); c30=cosd(180); vwind21=2.24; % wind speed (ignoring direction) vwind22=2.68; % angle takes care of direction vwind23=1.34; vwind24=4.02; vwind25=5.36; vwind26=5.36; vwind27=4.47; vwind28=2.24; vwind29=2.24; vwind30=2.24; v21=vwind21*c21; v22=vwind22*c22; v23=vwind23*c23; v24=vwind24*c24; v25=vwind25*c25; v26=vwind26*c26; v27=vwind27*c27; v28=vwind28*c28; v29=vwind29*c29; v30=vwind30*c30; Ewheel21 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v21)^2));
  • 30. Servatius 30 Ewheel22 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v22)^2)); Ewheel23 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v23)^2)); Ewheel24 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v24)^2)); Ewheel25 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v25)^2)); Ewheel26 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v26)^2)); Ewheel27 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v27)^2)); Ewheel28 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v28)^2)); Ewheel29 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v29)^2)); Ewheel30 = deltax210*((m*g*fr)+(.5*Cd*ar*rho*(v-v30)^2)); EAtwheel2=Ewheel21+Ewheel22+Ewheel23+Ewheel24+Ewheel25+Ewheel26... +Ewheel27+Ewheel28+Ewheel29+Ewheel30; Eroute2=EAtwheel2/3600/1000 %% Rolling Resistance vs. Air Drag Percentage roll=deltax*(m*g*fr); air=deltax*(.5*Cd*ar*rho*(v)^2); total=roll+air; rollpercentage=roll/total*100 airpercentage=air/total*100 [c] %% Michael Servatius % 10/6/14 clear all clc %% Parameters Cd=0.8; % air drag coefficient m=10000; % mass= 10,000kg ar=10; % area= 10 m^2 fr=0.01; % rolling resistance coefficient rho=1.2; % density of air g=9.8; % 9.8m/s v=24.58; % 24.58 m/s = 55 mph deltax=1461767.2; % 908.3 miles in m deltax10=deltax/10; %% No wind (NO to Columbus) ENoWind = deltax*((m*g*fr)+(.5*Cd*ar*rho*(v)^2)); ENoWind = ENoWind/3600/1000 %% Wind on 10/6/14 (NO to Columbus) % http://hint.fm/wind/ c1=cosd(10); % angle of wind speed c2=cosd(0); c3=cosd(0); c4=cosd(0);
  • 31. Servatius 31 c5=cosd(0); c6=cosd(0); c7=cosd(0); c8=cosd(0); c9=cosd(0); c10=cosd(0); vwind1=3.57632; % wind speed (ignoring direction) vwind2=4.02336; % angle takes care of direction vwind3=5.36448; vwind4=4.4704; vwind5=4.91744; vwind6=4.02336; vwind7=3.57632; vwind8=5.36448; vwind9=5.36448; vwind10=4.91744; v1=vwind1*c1; v2=vwind2*c2; v3=vwind3*c3; v4=vwind4*c4; v5=vwind5*c5; v6=vwind6*c6; v7=vwind7*c7; v8=vwind8*c8; v9=vwind9*c9; v10=vwind10*c10; Ewheel1 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v1)^2)); Ewheel2 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v2)^2)); Ewheel3 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v3)^2)); Ewheel4 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v4)^2)); Ewheel5 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v5)^2)); Ewheel6 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v6)^2)); Ewheel7 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v7)^2)); Ewheel8 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v8)^2)); Ewheel9 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v9)^2)); Ewheel10 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v10)^2)); EAtwheel=Ewheel1+Ewheel2+Ewheel3+Ewheel4+Ewheel5+Ewheel6... +Ewheel7+Ewheel8+Ewheel9+Ewheel10; EOCT6NOtoCOL=EAtwheel/3600/1000 %% Wind on 10/6/14 (COL to NO) c11=cosd(10); % angle of wind speed c12=cosd(0); c13=cosd(0); c14=cosd(0); c15=cosd(0); c16=cosd(0); c17=cosd(0); c18=cosd(0); c19=cosd(0); c20=cosd(0);
  • 32. Servatius 32 vwind11=-3.57632; % wind speed (ignoring direction) vwind12=-4.02336; % angle takes care of direction vwind13=-5.36448; vwind14=-4.4704; vwind15=-4.91744; vwind16=-4.02336; vwind17=-3.57632; vwind18=-5.36448; vwind19=-5.36448; vwind20=-4.91744; v11=vwind11*c11; v12=vwind12*c12; v13=vwind13*c13; v14=vwind14*c14; v15=vwind15*c15; v16=vwind16*c16; v17=vwind17*c17; v18=vwind18*c18; v19=vwind19*c19; v20=vwind20*c20; Ewheel11 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v11)^2)); Ewheel12 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v12)^2)); Ewheel13 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v13)^2)); Ewheel14 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v14)^2)); Ewheel15 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v15)^2)); Ewheel16 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v16)^2)); Ewheel17 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v17)^2)); Ewheel18 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v18)^2)); Ewheel19 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v19)^2)); Ewheel20 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v20)^2)); EAtwheel1=Ewheel11+Ewheel12+Ewheel13+Ewheel14+Ewheel15+Ewheel16... +Ewheel17+Ewheel18+Ewheel19+Ewheel20; EOCT6COLtoNO=EAtwheel1/3600/1000 %% Wind on 9/30/14 (NO to COL) c21=cosd(90); % angle of wind speed c22=cosd(90); c23=cosd(90); c24=cosd(150); c25=cosd(90); c26=cosd(0); c27=cosd(30); c28=cosd(60); c29=cosd(90); c30=cosd(90); vwind21=1.34112; % wind speed (ignoring direction) vwind22=0.89408; % angle takes care of direction vwind23=1.34112; vwind24=.89408;
  • 33. Servatius 33 vwind25=.44704; vwind26=.44708; vwind27=.89408; vwind28=.44704; vwind29=.89408; vwind30=1.78816; v21=vwind21*c21; v22=vwind22*c22; v23=vwind23*c23; v24=vwind24*c24; v25=vwind25*c25; v26=vwind26*c26; v27=vwind27*c27; v28=vwind28*c28; v29=vwind29*c29; v30=vwind30*c30; Ewheel21 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v21)^2)); Ewheel22 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v22)^2)); Ewheel23 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v23)^2)); Ewheel24 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v24)^2)); Ewheel25 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v25)^2)); Ewheel26 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v26)^2)); Ewheel27 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v27)^2)); Ewheel28 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v28)^2)); Ewheel29 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v29)^2)); Ewheel30 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v30)^2)); EAtwheel2=Ewheel21+Ewheel22+Ewheel23+Ewheel24+Ewheel25+Ewheel26... +Ewheel27+Ewheel28+Ewheel29+Ewheel30; ESEPT30NOtoCOL=EAtwheel2/3600/1000 %% Wind on 9/30/14 (Col to NO) c31=cosd(90); % angle of wind speed c32=cosd(90); c33=cosd(90); c34=cosd(150); c35=cosd(90); c36=cosd(0); c37=cosd(30); c38=cosd(60); c39=cosd(90); c40=cosd(90); vwind31=-1.34112; % wind speed (ignoring direction) vwind32=-0.89408; % angle takes care of direction vwind33=-1.34112; vwind34=-.89408; vwind35=-.44704; vwind36=-.44708; vwind37=-.89408; vwind38=-.44704; vwind39=-.89408; vwind40=-1.78816;
  • 34. Servatius 34 v31=vwind31*c31; v32=vwind32*c32; v33=vwind33*c33; v34=vwind34*c34; v35=vwind35*c35; v36=vwind36*c36; v37=vwind37*c37; v38=vwind38*c38; v39=vwind39*c39; v40=vwind40*c40; Ewheel31 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v31)^2)); Ewheel32 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v32)^2)); Ewheel33 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v33)^2)); Ewheel34 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v34)^2)); Ewheel35 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v35)^2)); Ewheel36 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v36)^2)); Ewheel37 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v37)^2)); Ewheel38 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v38)^2)); Ewheel39 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v39)^2)); Ewheel40 = deltax10*((m*g*fr)+(.5*Cd*ar*rho*(v-v40)^2)); EAtwheel2=Ewheel31+Ewheel32+Ewheel33+Ewheel34+Ewheel35+Ewheel36... +Ewheel37+Ewheel38+Ewheel39+Ewheel40; ESEPT30COLtoNO=EAtwheel2/3600/1000 [d1]-[d3] use functions below % UpSideStep.m % Michael Servatius % Randomly choose a direction and walks radius 1 , % adding these values to the previous x and y. function [newx,newy]=UpSideStep(oldx,oldy) %% Random Step angle=randi(90,1); x=cosd(angle); y=sind(angle); newx=oldx+x; newy=oldy+y; end function [newx,newy]=UpStep(oldx,oldy) %% Up Step angle=90; x=cosd(angle); y=sind(angle); newx=oldx+x; newy=oldy+y; end
  • 35. Servatius 35 function [newx,newy]=RightStep(oldx,oldy) %% Right Step angle=0; x=cosd(angle); y=sind(angle); newx=oldx+x; newy=oldy+y; end % isInsideBox.m % Michael Servatius % Tests if a point (x,y) is inside the box bounded by % xmin,xmax,ymin,and ymax function isInside=isInsideBox(x,y,xmin,xmax,ymin,ymax) if (x>xmin)&&(x<xmax)&&(y>ymin)&&(y<ymax) isInside=true; else isInside=false; end % Distance.m % Michael Servatius % Calculates the distance between two points given the 4 inputs % of the x and y values. function d=Distance(x1,y1,x2,y2) d=sqrt((x1-x2)^2+(y1-y2)^2); end [d1] clear all clc [x,y]=meshgrid(0:1:10,0:1:10); % X wind values u=[2 5 6 7 8 7 6 5 4 3 0;... 2 5 5 6 7 7 6 5 4 3 1;... 1 4 4 4 5 5 5 5 3 2 0;... 0 3 3 3 3 3 3 3 2 1 0;... 0 2 2 2 2 2 2 2 0 0 0;... 0 1 1 1 1 1 1 1 0 0 0;... 0 0 0 0 0 0 0 0 0 0 0;... 0 -1 -1 -2 -2 -2 -2 -1 -1 0 0;... 0 -2 -2 -3 -3 -3 -3 -2 -2 -1 0;... -1 -3 -3 -4 -5 -5 -4 -3 -3 -2 0;... -2 -5 -5 -6 -7 -7 -6 -5 -4 -3 0];
  • 36. Servatius 36 % Y wind values w=[0 0 0 0 0 0 0 0 0 0 0;... -1 -2 0 0 0 0 0 0 2 2 1;... -2 -3 -2 -1 0 0 0 0 3 3 2;... -3 -3 -2 -1 0 0 1 2 2 3 3;... -4 -4 -3 -1 0 0 1 2 3 4 4;... -6 -3 -2 -1 0 0 0 1 2 3 6;... -4 -3 -3 -2 -1 0 0 1 2 3 4;... -2 -2 -2 -1 0 0 0 0 1 1 1;... -2 -2 -1 -1 0 0 0 0 1 1 2;... -3 -3 -2 -2 -2 0 0 0 2 2 3;... -1 -1 0 0 0 0 0 0 0 1 1]; quiver(x,y,u,w); axis([-1 11 -1 11]) xlabel('East (m)','FontSize',18); ylabel('North (m)','FontSize',18); title('Wind Map','FontSize',18); set(gca,'FontSize',18); set(gcf,'Color',[1,1,1]); grid on hold on %% Walk thru %% Diagonal Walk xin=0; yin=0; xnew=0; ynew=0; xmin=0; xmax=10; ymin=0; ymax=10; xstick=10; ystick=10; rcircle=1; Nsteps=1; while Distance(xstick,ystick,xnew,ynew)>rcircle [xnew,ynew]=DiagonalStep(xin,yin); if isInsideBox(xnew,ynew,xmin,xmax,ymin,ymax); xin=xnew; yin=ynew; x(Nsteps)=xnew; y(Nsteps)=ynew; plot(xnew,ynew,'ro',... x(1:Nsteps),y(1:Nsteps),'b') Nsteps=Nsteps+1; axis([-1 11 -1 11]) drawnow else xin=xin; yin=yin; end
  • 37. Servatius 37 end %% Up/Right xin=0; yin=0; xnew=0; ynew=0; xmin=0; xmax=10; ymin=0; ymax=10; xstick=10; ystick=10; rcircle=1; Nsteps=1; while xnew < 9 [xnew,ynew]=RightStep(xin,yin); xin=xnew; yin=ynew; x(Nsteps)=xnew; y(Nsteps)=ynew; plot(xnew,ynew,'ro',... x(1:Nsteps),y(1:Nsteps),'b') Nsteps=Nsteps+1; axis([-1 11 -1 11]) drawnow while ynew < 10 [xnew,ynew]=UpStep(xin,yin); xin=xnew; yin=ynew; x(Nsteps)=xnew; y(Nsteps)=ynew; plot(xnew,ynew,'ro',... x(1:Nsteps),y(1:Nsteps),'b') Nsteps=Nsteps+1; axis([-1 11 -1 11]) drawnow end end %% Right/Up xin=0; yin=0; xnew=0; ynew=0; xmin=0; xmax=10; ymin=0; ymax=10; xstick=10; ystick=10; rcircle=1;
  • 38. Servatius 38 Nsteps=1; while ynew < 9 [xnew,ynew]=UpStep(xin,yin); xin=xnew; yin=ynew; x(Nsteps)=xnew; y(Nsteps)=ynew; plot(xnew,ynew,'ro',... x(1:Nsteps),y(1:Nsteps),'b') Nsteps=Nsteps+1; axis([-1 11 -1 11]) drawnow while xnew < 10 [xnew,ynew]=RightStep(xin,yin); xin=xnew; yin=ynew; x(Nsteps)=xnew; y(Nsteps)=ynew; plot(xnew,ynew,'ro',... x(1:Nsteps),y(1:Nsteps),'b') Nsteps=Nsteps+1; axis([-1 11 -1 11]) drawnow end end %% 1) Energy for this code % 2) Energy for higher winds speeds (10-15 m/s) % %% Parameters %% UP/RIGHT Cd=0.8; % air drag coefficient m=10000; % mass= 10,000kg ar=10; % area= 10 m^2 fr=0.01; % rolling resistance coefficient rho=1.2; % density of air g=9.8; % 9.8m/s v=24.58; % 24.58 m/s = 55 mph deltax=200000; %200,000 m for the 20 steps deltax20=deltax/20; %20 steps Ewheel=0; v1=[2,0,-2,-3,-3,-4,-3,-3,-2,-2,-3,... -5,-6,-7,-7,-6,-5,-4,-3,0]; for i = 1:20 Ewheelnew = deltax20*((m*g*fr)+(.5*Cd*ar*rho*(v-v1(1,i))^2)); Ewheel = Ewheel + Ewheelnew;
  • 39. Servatius 39 end EwheelUPRIGHT = Ewheel/3600/1000 %% RIGHT/UP Cd=0.8; % air drag coefficient m=10000; % mass= 10,000kg ar=10; % area= 10 m^2 fr=0.01; % rolling resistance coefficient rho=1.2; % density of air g=9.8; % 9.8m/s v=24.58; % 24.58 m/s = 55 mph deltax=200000; %200,000 m for the 20 steps deltax20=deltax/20; %20 steps Ewheel=0; v2=[0,2,5,5,6,7,7,6,5,4,3,... 3,2,1,4,6,4,3,2,1]; for i = 1:20 Ewheelnew = deltax20*((m*g*fr)+(.5*Cd*ar*rho*(v-v2(1,i))^2)); Ewheel = Ewheel + Ewheelnew; end EwheelRIGHTUP = Ewheel/3600/1000 %% Diagonal Cd=0.8; % air drag coefficient m=10000; % mass= 10,000kg ar=10; % area= 10 m^2 fr=0.01; % rolling resistance coefficient rho=1.2; % density of air g=9.8; % 9.8m/s v=24.58; % 24.58 m/s = 55 mph deltax=141421; %diagonal distance (a^2+b^2=c^2) -> c=14142 deltax14=deltax/14; % 14 diagonal steps Ewheel=0; for i = 1:14 Ewheelnew = deltax14*((m*g*fr)+(.5*Cd*ar*rho*(v)^2)); Ewheel = Ewheel + Ewheelnew; end EwheelDIAGONAL = Ewheel/3600/1000 [d2] clear all clc
  • 40. Servatius 40 [x,y]=meshgrid(0:1:10,0:1:10); % X wind values u=[12 15 16 17 18 17 16 15 14 13 10;... 12 15 15 16 17 17 16 15 14 13 11;... 10 9 9 8 7 6 5 4 3 4 8;... 0 3 3 3 3 3 3 3 2 1 0;... 0 3 3 3 3 3 3 3 0 0 0;... 0 1 1 1 1 1 1 1 0 0 0;... 0 0 0 0 0 0 0 0 0 0 0;... 0 -1 -2 -3 -3 -3 -3 -4 -4 0 0;... -3 -3 -4 -5 -6 -5 -4 -5 -3 -2 -1;... -11 -13 -13 -14 -15 -15 -14 -13 -13 -12 10;... -12 -15 -15 -16 -17 -17 -16 -15 -14 -13 10]; % Y wind values w=[0 0 0 0 0 0 0 0 0 0 0;... -1 -2 0 0 0 0 0 0 2 2 6;... -6 -5 -2 -1 0 0 0 0 3 5 6;... -13 -13 -12 -3 0 0 1 2 12 13 13;... -14 -14 -13 -3 0 0 1 2 13 14 14;... -16 -13 -12 -5 0 0 0 6 12 13 16;... -14 -13 -13 -4 -1 0 0 4 12 13 14;... -12 -12 -12 -5 0 0 0 0 5 11 8;... -2 -8 -1 -1 0 0 0 0 1 6 7;... -3 -6 -2 -2 -2 0 0 0 2 6 8;... -1 -3 0 0 0 0 0 0 0 1 1]; quiver(x,y,u,w); axis([-1 11 -1 11]) xlabel('East (m)','FontSize',18); ylabel('North (m)','FontSize',18); title('Wind Map','FontSize',18); set(gca,'FontSize',18); set(gcf,'Color',[1,1,1]); grid on hold on %% Walk thru %% Diagonal Walk xin=0; yin=0; xnew=0; ynew=0; xmin=0; xmax=10; ymin=0; ymax=10; xstick=10; ystick=10; rcircle=1; Nsteps=1;
  • 41. Servatius 41 while Distance(xstick,ystick,xnew,ynew)>rcircle [xnew,ynew]=DiagonalStep(xin,yin); if isInsideBox(xnew,ynew,xmin,xmax,ymin,ymax); xin=xnew; yin=ynew; x(Nsteps)=xnew; y(Nsteps)=ynew; plot(xnew,ynew,'ro',... x(1:Nsteps),y(1:Nsteps),'b') Nsteps=Nsteps+1; axis([-1 11 -1 11]) drawnow else xin=xin; yin=yin; end end %% Up/Right xin=0; yin=0; xnew=0; ynew=0; xmin=0; xmax=10; ymin=0; ymax=10; xstick=10; ystick=10; rcircle=1; Nsteps=1; while xnew < 9 [xnew,ynew]=RightStep(xin,yin); xin=xnew; yin=ynew; x(Nsteps)=xnew; y(Nsteps)=ynew; plot(xnew,ynew,'ro',... x(1:Nsteps),y(1:Nsteps),'b') Nsteps=Nsteps+1; axis([-1 11 -1 11]) drawnow while ynew < 10 [xnew,ynew]=UpStep(xin,yin); xin=xnew; yin=ynew; x(Nsteps)=xnew; y(Nsteps)=ynew; plot(xnew,ynew,'ro',... x(1:Nsteps),y(1:Nsteps),'b') Nsteps=Nsteps+1; axis([-1 11 -1 11]) drawnow
  • 42. Servatius 42 end end %% Right/Up xin=0; yin=0; xnew=0; ynew=0; xmin=0; xmax=10; ymin=0; ymax=10; xstick=10; ystick=10; rcircle=1; Nsteps=1; while ynew < 9 [xnew,ynew]=UpStep(xin,yin); xin=xnew; yin=ynew; x(Nsteps)=xnew; y(Nsteps)=ynew; plot(xnew,ynew,'ro',... x(1:Nsteps),y(1:Nsteps),'b') Nsteps=Nsteps+1; axis([-1 11 -1 11]) drawnow while xnew < 10 [xnew,ynew]=RightStep(xin,yin); xin=xnew; yin=ynew; x(Nsteps)=xnew; y(Nsteps)=ynew; plot(xnew,ynew,'ro',... x(1:Nsteps),y(1:Nsteps),'b') Nsteps=Nsteps+1; axis([-1 11 -1 11]) drawnow end end %% 1) Energy for this code % 2) Energy for higher winds speeds (10-15 m/s) % %% Parameters %% UP/RIGHT Cd=0.8; % air drag coefficient
  • 43. Servatius 43 m=10000; % mass= 10,000kg ar=10; % area= 10 m^2 fr=0.01; % rolling resistance coefficient rho=1.2; % density of air g=9.8; % 9.8m/s v=24.58; % 24.58 m/s = 55 mph deltax=200000; %200,000 m for the 20 steps deltax20=deltax/20; %20 steps Ewheel=0; v1=[12,0,-2,-5,-13,-14,-13,-13,-12,-8,-6,... -15,-15,-16,-17,-17,-16,-15,-14,-13]; for i = 1:20 Ewheelnew = deltax20*((m*g*fr)+(.5*Cd*ar*rho*(v-v1(1,i))^2)); Ewheel = Ewheel + Ewheelnew; end EwheelUPRIGHTHIGH = Ewheel/3600/1000 %% RIGHT/UP Cd=0.8; % air drag coefficient m=10000; % mass= 10,000kg ar=10; % area= 10 m^2 fr=0.01; % rolling resistance coefficient rho=1.2; % density of air g=9.8; % 9.8m/s v=24.58; % 24.58 m/s = 55 mph deltax=200000; %200,000 m for the 20 steps deltax20=deltax/20; %20 steps Ewheel=0; v2=[0,12,15,15,16,17,17,16,15,14,13,... 6,6,13,14,16,14,8,7,8]; for i = 1:20 Ewheelnew = deltax20*((m*g*fr)+(.5*Cd*ar*rho*(v-v2(1,i))^2)); Ewheel = Ewheel + Ewheelnew; end EwheelRIGHTUPHIGH = Ewheel/3600/1000 %% Diagonal Cd=0.8; % air drag coefficient m=10000; % mass= 10,000kg ar=10; % area= 10 m^2 fr=0.01; % rolling resistance coefficient rho=1.2; % density of air g=9.8; % 9.8m/s v=24.58; % 24.58 m/s = 55 mph deltax=141421; %diagonal distance (a^2+b^2=c^2) -> c=14142 deltax14=deltax/14; % 14 diagonal steps
  • 44. Servatius 44 Ewheel=0; for i = 1:14 Ewheelnew = deltax14*((m*g*fr)+(.5*Cd*ar*rho*(v)^2)); Ewheel = Ewheel + Ewheelnew; end EwheelDIAGONAL = Ewheel/3600/1000 [d3] clear all clc [x,y]=meshgrid(0:1:10,0:1:10); % X wind values u=[0 0 0 0 0 0 0 0 0 0 0;... 5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412 0;... 0 0 0 0 0 0 0 0 0 0 0;... 0 0 0 0 0 0 0 0 0 0 0;... 0 0 0 0 0 0 0 0 0 0 0;... 0 0 0 0 0 0 0 0 0 0 0;... 0 0 0 0 0 0 0 0 0 0 0;... 0 0 0 0 0 0 0 0 0 0 0;... 0 0 0 0 0 0 0 0 0 0 0;... 0 0 0 0 0 0 0 0 0 0 0;... 0 0 0 0 0 0 0 0 0 0 0]; % Y wind values w=[0 0 0 0 0 0 0 0 0 0 0;... 0 0 0 0 0 0 0 0 0 0 5.412;... 0 0 0 0 0 0 0 0 0 0 5.412;... 0 0 0 0 0 0 0 0 0 0 5.412;... 0 0 0 0 0 0 0 0 0 0 5.412;... 0 0 0 0 0 0 0 0 0 0 5.412;... 0 0 0 0 0 0 0 0 0 0 5.412;... 0 0 0 0 0 0 0 0 0 0 5.412;... 0 0 0 0 0 0 0 0 0 0 5.412;... 0 0 0 0 0 0 0 0 0 0 5.412;... 0 0 0 0 0 0 0 0 0 0 5.412]; quiver(x,y,u,w); axis([-1 11 -1 11]) xlabel('East (m)','FontSize',18); ylabel('North (m)','FontSize',18); title('Wind Map','FontSize',18); set(gca,'FontSize',18); set(gcf,'Color',[1,1,1]); grid on hold on
  • 45. Servatius 45 %% Walk thru %% Diagonal Walk xin=0; yin=0; xnew=0; ynew=0; xmin=0; xmax=10; ymin=0; ymax=10; xstick=10; ystick=10; rcircle=1; Nsteps=1; while Distance(xstick,ystick,xnew,ynew)>rcircle [xnew,ynew]=DiagonalStep(xin,yin); if isInsideBox(xnew,ynew,xmin,xmax,ymin,ymax); xin=xnew; yin=ynew; x(Nsteps)=xnew; y(Nsteps)=ynew; plot(xnew,ynew,'ro',... x(1:Nsteps),y(1:Nsteps),'b') Nsteps=Nsteps+1; axis([-1 11 -1 11]) drawnow else xin=xin; yin=yin; end end %% Right/Up xin=0; yin=0; xnew=0; ynew=0; xmin=0; xmax=10; ymin=0; ymax=10; xstick=10; ystick=10; rcircle=1; Nsteps=1; while ynew < 9 [xnew,ynew]=UpStep(xin,yin); xin=xnew; yin=ynew; x(Nsteps)=xnew; y(Nsteps)=ynew;
  • 46. Servatius 46 plot(xnew,ynew,'ro',... x(1:Nsteps),y(1:Nsteps),'b') Nsteps=Nsteps+1; axis([-1 11 -1 11]) drawnow while xnew < 10 [xnew,ynew]=RightStep(xin,yin); xin=xnew; yin=ynew; x(Nsteps)=xnew; y(Nsteps)=ynew; plot(xnew,ynew,'ro',... x(1:Nsteps),y(1:Nsteps),'b') Nsteps=Nsteps+1; axis([-1 11 -1 11]) drawnow end end %% RIGHT/UP Cd=0.8; % air drag coefficient m=10000; % mass= 10,000kg ar=10; % area= 10 m^2 fr=0.01; % rolling resistance coefficient rho=1.2; % density of air g=9.8; % 9.8m/s v=24.58; % 24.58 m/s = 55 mph deltax=200000; %200,000 m for the 20 steps deltax20=deltax/20; %20 steps Ewheel=0; v2=[5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,... 5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,5.412,]; for i = 1:20 Ewheelnew = deltax20*((m*g*fr)+(.5*Cd*ar*rho*(v-v2(1,i))^2)); Ewheel = Ewheel + Ewheelnew; end EwheelRIGHTUPEQUAL = Ewheel/3600/1000 %% Diagonal Cd=0.8; % air drag coefficient m=10000; % mass= 10,000kg ar=10; % area= 10 m^2 fr=0.01; % rolling resistance coefficient rho=1.2; % density of air g=9.8; % 9.8m/s v=24.58; % 24.58 m/s = 55 mph deltax=141421; % diagonal distance (a^2+b^2=c^2) -> c=14142 deltax14=deltax/14; % 14 diagonal steps Ewheel=0;
  • 47. Servatius 47 for i = 1:14 Ewheelnew = deltax14*((m*g*fr)+(.5*Cd*ar*rho*(v)^2)); Ewheel = Ewheel + Ewheelnew; end EwheelDIAGONAL = Ewheel/3600/1000 [e] %% Change Speeds vs. Constant Speed (Same Time Frame) % 11/17/14 clear all clc %% Changing Speed Cd=0.8; % air drag coefficient m=10000; % mass= 10,000kg ar=10; % area= 10 m^2 fr=0.01; % rolling resistance coefficient rho=1.2; % density of air g=9.8; % 9.8m/s t=60*60*2; %2 hours in seconds vw1=-5; vw2=5; vw3=10; vw4=15; vw5=5; vw6=-5; vw7=-10; vw8=-10; vw9=-5; vw10=0; v1=20; v2=30; v3=35; v4=40; v5=30; v6=20; v7=15; v8=15; v9=20; v10=25; E1 = ((m*g*fr)+(.5*Cd*ar*rho*(v1-vw1)^3))*t; E2 = ((m*g*fr)+(.5*Cd*ar*rho*(v2-vw2)^3))*t; E3 = ((m*g*fr)+(.5*Cd*ar*rho*(v3-vw3)^3))*t; E4 = ((m*g*fr)+(.5*Cd*ar*rho*(v4-vw4)^3))*t; E5 = ((m*g*fr)+(.5*Cd*ar*rho*(v5-vw5)^3))*t; E6 = ((m*g*fr)+(.5*Cd*ar*rho*(v6-vw6)^3))*t; E7 = ((m*g*fr)+(.5*Cd*ar*rho*(v7-vw7)^3))*t; E8 = ((m*g*fr)+(.5*Cd*ar*rho*(v8-vw8)^3))*t; E9 = ((m*g*fr)+(.5*Cd*ar*rho*(v9-vw9)^3))*t;
  • 48. Servatius 48 E10 = ((m*g*fr)+(.5*Cd*ar*rho*(v10-vw10)^3))*t; EChange=E1+E2+E3+E4+E5+E6+E7+E8+E9+10; EChange=EChange/3600/1000 %% Constant Speed v=25; vw1=-5; vw2=5; vw3=10; vw4=15; vw5=5; vw6=-5; vw7=-10; vw8=-10; vw9=-5; vw10=0; E1 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw1)^3))*t; E2 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw2)^3))*t; E3 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw3)^3))*t; E4 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw4)^3))*t; E5 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw5)^3))*t; E6 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw6)^3))*t; E7 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw7)^3))*t; E8 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw8)^3))*t; E9 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw9)^3))*t; E10 = ((m*g*fr)+(.5*Cd*ar*rho*(v-vw10)^3))*t; Econstant=E1+E2+E3+E4+E5+E6+E7+E8+E9+10; Econstant=Econstant/3600/1000