Atmospheric Thermodynamics

Similar documents
The Ideal Gas Law. Gas Constant. Applications of the Gas law. P = ρ R T. Lecture 2: Atmospheric Thermodynamics

When the fluid velocity is zero, called the hydrostatic condition, the pressure variation is due only to the weight of the fluid.

39th International Physics Olympiad - Hanoi - Vietnam Theoretical Problem No. 3

Gas Laws. The kinetic theory of matter states that particles which make up all types of matter are in constant motion.

HEAT UNIT 1.1 KINETIC THEORY OF GASES Introduction Postulates of Kinetic Theory of Gases

Problem Set 4 Solutions

FUNDAMENTALS OF ENGINEERING THERMODYNAMICS

Stability and Cloud Development. Stability in the atmosphere AT350. Why did this cloud form, whereas the sky was clear 4 hours ago?

= atm. 760 mm Hg. = atm. d. 767 torr = 767 mm Hg. = 1.01 atm

Mechanics 1: Conservation of Energy and Momentum

Chapter 18 Temperature, Heat, and the First Law of Thermodynamics. Problems: 8, 11, 13, 17, 21, 27, 29, 37, 39, 41, 47, 51, 57

= 800 kg/m 3 (note that old units cancel out) J 1000 g = 4184 J/kg o C

Chapter 10 Temperature and Heat

_CH06_p qxd 1/20/10 9:44 PM Page 69 GAS PROPERTIES PURPOSE

atm = 760 torr = 760 mm Hg = kpa = psi. = atm. = atm. = 107 kpa 760 torr 1 atm 760 mm Hg = 790.

a) Use the following equation from the lecture notes: = ( J K 1 mol 1) ( ) 10 L

Convection in water (an almost-incompressible fluid)

v v ax v a x a v a v = = = Since F = ma, it follows that a = F/m. The mass of the arrow is unchanged, and ( )

Indiana's Academic Standards 2010 ICP Indiana's Academic Standards 2016 ICP. map) that describe the relationship acceleration, velocity and distance.

CHAPTER 12. Gases and the Kinetic-Molecular Theory

Physics 181- Summer Experiment #8 1 Experiment #8, Measurement of Density and Archimedes' Principle

Work and Conservation of Energy

FRICTION, WORK, AND THE INCLINED PLANE

State Newton's second law of motion for a particle, defining carefully each term used.

CHEMISTRY. Matter and Change. Section 13.1 Section 13.2 Section The Gas Laws The Ideal Gas Law Gas Stoichiometry

Name Class Date. In the space provided, write the letter of the term or phrase that best completes each statement or best answers each question.

CLASSICAL CONCEPT REVIEW 8

THE IDEAL GAS LAW AND KINETIC THEORY

Thermodynamics AP Physics B. Multiple Choice Questions

Appendix A: Science Practices for AP Physics 1 and 2

Temperature. PJ Brucat

Mathematical Modeling and Engineering Problem Solving

Chemistry 13: States of Matter

Differential Relations for Fluid Flow. Acceleration field of a fluid. The differential equation of mass conservation

The Gas Laws. Our Atmosphere. Pressure = Units of Pressure. Barometer. Chapter 10

This chapter discusses: 1. Definitions and causes of stable and unstable atmospheric air. 2. Processes that cause instability and cloud development

Ch 7 Kinetic Energy and Work. Question: 7 Problems: 3, 7, 11, 17, 23, 27, 35, 37, 41, 43

Thermodynamics. Chapter 13 Phase Diagrams. NC State University

Answer, Key Homework 6 David McIntyre 1

Atmospheric Stability & Cloud Development

Natural Convection. Buoyancy force

Chapter 4 Atmospheric Pressure and Wind

Gases. States of Matter. Molecular Arrangement Solid Small Small Ordered Liquid Unity Unity Local Order Gas High Large Chaotic (random)

Forces. Definition Friction Falling Objects Projectiles Newton s Laws of Motion Momentum Universal Forces Fluid Pressure Hydraulics Buoyancy

Chapter 27 Static Fluids

Sound. References: L.D. Landau & E.M. Lifshitz: Fluid Mechanics, Chapter VIII F. Shu: The Physics of Astrophysics, Vol. 2, Gas Dynamics, Chapter 8

Current Staff Course Unit/ Length. Basic Outline/ Structure. Unit Objectives/ Big Ideas. Properties of Waves A simple wave has a PH: Sound and Light

State Newton's second law of motion for a particle, defining carefully each term used.

Chapter 6: Cloud Development and Forms

PHYS-2010: General Physics I Course Lecture Notes Section XIII

THE KINETIC THEORY OF GASES

Statistical Mechanics, Kinetic Theory Ideal Gas. 8.01t Nov 22, 2004

Review D: Potential Energy and the Conservation of Mechanical Energy

Lecture 4: Pressure and Wind

Applications of Second-Order Differential Equations

Chapter 6 - Cloud Development and Forms. Interesting Cloud

Lecture L2 - Degrees of Freedom and Constraints, Rectilinear Motion

Chapter 8 Maxwell relations and measurable properties

1. The Kinetic Theory of Matter states that all matter is composed of atoms and molecules that are in a constant state of constant random motion

How do Scientists Forecast Thunderstorms?

Gases and Kinetic-Molecular Theory: Chapter 12. Chapter Outline. Chapter Outline

APPLIED MATHEMATICS ADVANCED LEVEL

Physics 9e/Cutnell. correlated to the. College Board AP Physics 1 Course Objectives

Prelab Exercises: Hooke's Law and the Behavior of Springs

Grade 8 Science Chapter 9 Notes

STATICS. Introduction VECTOR MECHANICS FOR ENGINEERS: Eighth Edition CHAPTER. Ferdinand P. Beer E. Russell Johnston, Jr.

Thermodynamics: Lecture 2

Kinetic Theory of Gases. Chapter 33. Kinetic Theory of Gases

Problem Set MIT Professor Gerbrand Ceder Fall 2003

(1) The size of a gas particle is negligible as compared to the volume of the container in which the gas is placed.

Module P7.3 Internal energy, heat and energy transfer

Three Methods for Calculating the Buoyant Force Gleue: Physics

Lecture L22-2D Rigid Body Dynamics: Work and Energy

Dynamic Process Modeling. Process Dynamics and Control

2.016 Hydrodynamics Reading # Hydrodynamics Prof. A.H. Techet

EXPERIMENT 15: Ideal Gas Law: Molecular Weight of a Vapor

Gas Laws. Heat and Temperature

Temperature. Number of moles. Constant Terms. Pressure. Answers Additional Questions 12.1

ENERGY CONSERVATION The First Law of Thermodynamics and the Work/Kinetic-Energy Theorem

Carbon Dioxide and an Argon + Nitrogen Mixture. Measurement of C p /C v for Argon, Nitrogen, Stephen Lucas 05/11/10

Chapter 13 - Solutions

Work and Energy. Work = Force Distance. Work increases the energy of an object. Energy can be converted back to work.

We will try to get familiar with a heat pump, and try to determine its performance coefficient under different circumstances.

WORK DONE BY A CONSTANT FORCE

Fog and Cloud Development. Bows and Flows of Angel Hair

Displacement (x) Velocity (v) Acceleration (a) x = f(t) differentiate v = dx Acceleration Velocity (v) Displacement x

Acceleration levels of dropped objects

Kinetic Theory & Ideal Gas

Write True or False in the space provided.

Chapter 15 Collision Theory

1 The basic equations of fluid dynamics

Name Class Date. F N A cm 2 A cm 2 Unknown: Step 2: Write the equations for Pascal s principle and pressure, force, and area.

Problem Set 3 Solutions

AP1 Oscillations. 1. Which of the following statements about a spring-block oscillator in simple harmonic motion about its equilibrium point is false?

Second Order Linear Differential Equations

INTRODUCTION TO FLUID MECHANICS

Fluid Mechanics: Static s Kinematics Dynamics Fluid

PHYSICAL QUANTITIES AND UNITS

Chapter 6 The first law and reversibility

HSC Mathematics - Extension 1. Workshop E4

Transcription:

Atmospheric Thermodynamics Arlan Dirkson May 13, 2011 1

Abstract The goal of this project is to use the fundamental laws of thermodynamics to discuss selected topics in atmospheric science; in particular atmospheric thermodynamics. 2

1 Introduction Atmospheric thermodynamics serves as a foundational topic in studying meteorology. In this project, previously researched material has been taken from various texts, reorganized, and presented in an explicit way to utilize differential equations in order to describe them. There are many more topics in atmospheric thermodynamics than are introduced in this article such as the effect of water vapor in the atmosphere. However, in order to just get a basic understanding of this field it is easiest to look at a dry atmosphere. Differential equations will be used in the derivations of equations that are very useful in describing atmospheric concepts which will include Ideal Gas Law Hydrostatic Equation Barometric Formula Geopotential The First Law of Thermodynamics Specific Heat Enthalpy Adiabatic Process Air Parcels Dry Adiabatic Lapse Rate Static Stability 3

2 Basic Equations In this section it will be shown how the ideal gas law can be the foundation for showing how pressure, volume, and temperature are related. Next will be shown how the hydrostatic equation can explain the balancing forces acting on a thin slab of air in the atmosphere. Following, an expression will be derived for barometric pressure as a function of height and then solved. 2.1 Ideal Gas Law The first assumption to be made is that atmospheric gases, whether considered individually or as a mixture, obey the ideal gas law exactly, P V = nr T (1) where P is pressure with units Pascals, Pa, V is the volume with units m 3, T is the temperature with units Kelvin, K, and n is the number of moles of a gas; where a mole is a unit of measurement for the amount of substance. The weight of atoms and molecules are given in grams per mole. The number of molecules or particles in a mole was experimentally verified by Avagadro to be 6.2 10 23. R is the universal gas constant and has the value of 8.314 J mol 1 K 1. There are multiple forms of this law that are useful in meteorology; however, due to the extent of the topics discussed in this paper, only one other form is used. Examining the relationship of these physical properties in dry air (excluding H 2 O) one has, P d α d = R d T (2) Where P d is the pressure of dry air, α d is the specific volume of dry air or the volume occupied by 1 kg of dry gas. R d is the constant for dry air and is defined as 1000R /M d, where M d is 28.97 g mol 1, so R d = 287.0 J mol 1 kg 1. 2.2 Hydrostatic Equation The hydrostatic equation shows how forces acting on a thin slab of air in the atmosphere essentially balance so long as there is no accelerating forces acting on the slab other than gravity. This is due to the fact that pressure decreases with height in the atmosphere, so the air below with greater density, exerts forces between the molecules in the slab and the underlying air creating an upward force. This is actually attributed to Archimedes principle 4

for fluid dynamics, which states that a body immersed in a fluid experiences an upward force equal to the weight of the displaced fluid. This is counterbalanced by a downward force equal to the acceleration due to gravity times the density of the slab of air pushing down on it. Mathematically this can be expressed by using Newton s second law of motion which states ΣF (x, y) = ma In this case there are no horizontal forces and no acceleration. Plugging in the forces, the hydrostatic equation can be derived and solved as follows, ΣF (y) = 0 P gρ z = 0 The negative in front of P is there because pressure decreases with height which makes this a positive force. P = gρ z Letting z 0 gives dp = gρdz (3) P ( ) P (z) dp = Where P ( ) = 0, making the final expression, P (z) = z z gρdz gρdz This says that at height z in the atmosphere, the pressure acting on the slab is the weight of the vertical column of air above it. This equation allows one to show that the standard pressure at sea level z = 0 is 1.013 10 5 Pa. 2.3 Barometric Formula The goal here is to derive an ordinary differential equation which when solved, will show a closed form solution to how pressure changes in the atmosphere as a function of height. Some assumptions will be made in order to simplify the model: (i) the layer in the atmosphere is only composed of dry air, 5

(ii) the atmosphere is in hydrostatic balance, (iii) without having to say anything about temperature lapse rates which will be covered later, one will assume that the temperature throughout the layer is constant, or isothermal. Beginning with the ideal gas law (1), with n = m d /M d, recall that m d is the total mass of the dry air and M d is the molar mass of dry air (0.02896 kg/mol). Also ρ = m d /V, so making these substitutions puts the ideal gas law in the form, P = ρr T M d Again, assuming the atmosphere is in hydrostatic balance, dividing (3) by (1), dp P = gmd R T dz This is an autonomous, first order differential equation that says that pressure decreases (negative sign) as a function of height in the atmosphere. Since the rest of the terms are constants, one can simply integrate both sides to get, ln(p ) = gm d R T z + C where C is the constant of integration. Solving for pressure and simplifying, P (z) = Ae gm R T z where A = e C. Normally, when doing this algebraic maneuver, one would put absolute values around the P (z) since there are two possible results (positive and negative); however, since the initial condition has P (0) > 0 one can ignore this; that is P (z) will always be positive. In order to solve for A, an initial value problem or an initial condition must be established. In this case one can define pressure at altitude zero to be P 0. That is P (0) = P 0. Solving for A by setting z = 0 yields, P = A = P 0 So, the final expression called the barometric formula can be written as follows, P (z) = P 0 e gm d R T The figure shown below was made on Matlab using dfield8 to show a number of solutions to this differential equation given different initial conditions or 6

initial value problems. The red line is the solution to the barometric formula with an initial condition set at standard temperature and pressure (STP). Figure 1: Solutions to the barometric formula 2.4 Geopotential Begin with the notion that work is required to raise a mass of 1 kg from sea level to height z in the atmosphere. This work is called geopotential Φ with units of J kg 1 or m 2 /s 2. The force acting on this mass is approximately g, and the work required to lift the mass from z to z + dz is gdz, dφ = gdz = αdp = 1 dz (4) ρ Φ dφ = z 0 0 gdz 7

z Φ = gdz 0 This is important, because the geopotential only depends on height z in the atmosphere and is independent of the path the mass took to get to that level. 3 The First Law of Thermodynamics, Adiabatic Processes, Air Parcels, Dry Adiabatic Lapse Rate 3.1 First law of Thermodynamics The first law of thermodynamics is a statement about the energy of a system. First, there is internal energy due to the microscopic interaction of molecules in the system in the form of kinetic and potential energy. The increase of internal kinetic energy also causes the temperature of the system to rise, while the potential energy is affected by the relative positions of the molecules with each other and the forces between them. Suppose a closed system takes in heat q via conduction or radiation and consequently does external work w on the environment. The excess in energy of the system, i.e. the energy not used to do external work, increases by the difference q w. Due to the conservation of energy, the change in the internal energy from an initial state to a final state is path independent just like geopotential and can be written as follows, u 2 u 1 = q w In differential form, du = dq dw (5) Work is defined as force times displacement and has the sign convention as follows. If the final volume of the system is less then the initial volume then the environment has done work on the system and work is said to be negative, V 2 < V 1 w < 0 Adversely, if the final volume is more than the initial volume then the system has done work on the environment and work is said to be positive, V 1 < V 2 w > 0 8

Therefore, one can write an expression for work as follows, dw = F dx = P Adx = P dv (6) w = V2 V 1 P dv The first law can be rewritten by replacing P dv with P dα as du = dq P dα (7) ONLY IF one is dealing with a unit mass. This makes it possible to use (2) in further derivations. 3.1.1 Specific Heat Specific heat is a value used to show how a material changes temperature when heat is added to the material (system). The temperature change is T + dt and the specific heat at constant pressure or volume is, and, 3.1.2 Enthalpy c P = dq dt c V = dq dt = du dt (8) (9) Enthalpy is simply a preferred expression of a systems energy, because it simplifies certain descriptions of energy transfer. This is because a change in enthalpy takes into account the energy transferred to the environment through the expansion of the system. This will be very useful when discussing adiabatic lapse rates. Enthalpy can be derived as follows, q = u w q = (u 2 u 1 ) + P (α 2 α 1 ) q = (u 2 + P α 2 ) (u 1 + P α 1 ) q = h 2 h 1 9

Where h u + P α or in differential form, If volume is constant, dh = du + d(p α) Comparing (8) for constant pressure with (10), Integrating both sides, dq = dh αdp (10) h 0 dh = c p dt (11) h = T 0 h = c p T c p dt Using the concept of enthalpy, one can look at a layer of air in the atmosphere assuming it is in hydrostatic balance, and can say something about the enthalpy of the layer. As the layer receives heat in the form of solar radiation at constant pressure the enthalpy of the layer increases. This increase is commonly referred to in meteorology as sensible heat. Of the energy from solar radiation, part is used by heating up the layer and the rest is used to expand the layer at constant pressure, so P dα = RdT. (12) This is a statement that says the system (i.e. the layer of air) does work on the overlying air. 3.2 Adiabatic Process, Air Parcels 3.2.1 Adiabatic Process An adiabatic process is one in which the net heat energy of a system does not change (i.e. dq = 0). In an adiabatic process, pressure, volume, and temperature are free to change, so long as the dq = 0. Adiabatic compression is that in which the environment does work on the system. Therefore, the decrease in volume and the increase in pressure results in the heating of the system. Alternatively, adiabatic expansion is that in which the system does work on the environment. Therefore the increase in volume and the decrease in pressure results in the cooling of the system. The area under an adiabatic curve on a pressure-volume (P-V) diagram is defined as work and is shown below. 10

Figure 2: Adiabatic,P-V diagram 3.2.2 Air Parcels When thinking about a thermodynamic process in the atmosphere, it is useful to think of the thermodynamic system as an air parcel, or a dimensional piece of air that can range in size horizontally from millimeters, to the scale of the earth. For the purpose of this project, again it is only necessary to consider an air parcel with a unit mass of dry ideal gas, which has a volume of approximately 0.7734 m 3 at STP. Some assumptions should be made however to simplify the model. In reality, one or more of these assumptions can t be applied, but for the sake of this model one can say:(i) This parcel is insulated from its environment so its temperature changes adiabatically with vertical displacement, (ii) the parcel is always adjusting its pressure to match that of the surrounding environmental air at the same level, (iii) the atmosphere is assumed to be in hydrostatic balance and finally, (iv) the parcel is moving slowly enough that its macroscopic kinetic energy can be neglected. Utilizing (4), (10), and, (11), one can put together a more general expression for a parcel as it rises or sinks in the atmosphere, dq = dh + dφ = d(c p T + Φ) 3.3 Dry Adiabatic Lapse Rate, DALR Recall (2) is the ideal gas law when dealing with 1 kg of dry air. Differentiating this requires the chain rule remembering that R d is a constant, dp d α d + P d dα d = R d dt (13) 11

Utilizing (5) and knowing that in an adiabatic process dq = 0, one has du = dw = c v dt. From (12), So combining (14) with (13), dw = c v dt = P d dα d (14) c v dt + dp d α d = R d dt Rearranging the terms to get dt on the right hand side and doing some algebra dp d α d = dt (R d + c v ) Where R d = c p c v so, dp d α d = c p dt dt dp = α d c p Using the hydrostatic equation that says dp/dz = gρ where ρ = m d /V, dp = g m d dz α d, therefore, dt dz = dp d dt = g m d α d dz dp d α d c p = g m d c p Now we can define the dry adiabatic lapse rate, DALR, Γ d as, For a unit mass, Γ d dt dz = g m d c p Γ d = g c p The figure shown below was generated on Matlab using Dfield8 and the red highlighted line is the solution to the DALR with an initial condition set at STP. 12

Figure 3: Solutions to the DALR 4 Static Stability In this section, first an expression will be derived that shows how a dry air parcel accelerates upward in the atmosphere when the lapse rate Γ d is greater than the lapse rate of the surrounding (environmental) air Γ. This is due to the fact that the environmental lapse rate is for a stationary atmosphere, whereas the DALR is for an adiabatic process. Following the expression for upward acceleration will be the derivation of the subsequent vertical displacement that results by a restoring force acting on the parcel. This latter expression can be solved using Euler s formula which is explained throughout. 13

Figure 4: Static stability diagram and free body diagram of air parcel 4.1 Upward acceleration First, consider an unsaturated parcel with density ρ and temperature T where the density and temperature of the ambient (surrounding air) is ρ and T respectively. From the free body diagram, one can see there are two forces acting on the parcel. The force in the negative direction is the density of the dry air times the acceleration due to gravity. The force in the positive direction is the density of the underlying ambient air times the acceleration due to gravity; again, this is from Archimedes principle. From Newton s second law, one can sum the forces acting on the parcel like so, ΣF = ma ρg ρ g = ma Doing some algebra and making the substitutions m = ρ and a = d 2 z /dt 2, g(ρ ρ ) ρ = d2 z dt 2 (15) It is more efficient to have this expression in terms of T and T since rawindsonde (weather balloon) data provides temperature data. From the ideal gas 14

law in the form p = ρrt, it is apparent that ρ is inversely proportional to temperature, so making the substitutions ρ = 1/T and ρ = 1/T into (15) and doing some algebra, d 2 z dt 2 = g(t T T 4.2 Subsequent Vertical Displacement ) (16) Now, since the parcel displaced is more dense than the surrounding air because Γ d > Γ as explained earlier, a restoring force tries to return the parcel to it s original equilibrium position. The greater the difference between Γ d and Γ, the greater the restoring force. Begin by calling the equilibrium position z = z 0 and the distance displaced is z. Therefore z = z z 0. The surrounding air temperature will be called T 0 and the temperature of the parcel T after being lifted distance z is T = T 0 Γ d z. Since T 0 was the temperature of the surrounding air at z 0, one can say the the difference from T 0 to T (the new surrounding temperature) is proportional to the difference between Γ d and Γ. This can be written mathematically as, Substituting this into (16), T T = (Γ d Γ)z d 2 z dt 2 = g T (Γ d Γ)z (17) It is useful to make a substitution N = [ g T (Γ d Γ)z ] 1/2 N is called the Brunt- Vaisala frequency and if Γ d > Γ then N must be a real number, and N 2 must be greater than zero, hence the one half power in the expression for N. Therefore, substituting in N into (17), one has a homogeneous, autonomous, second order differential equation, d 2 z dt 2 + N 2 z = 0 (18) In order to solve (18) for z one must explore Euler s formula for solving second order differential equations. He begins with a very good guess for, in this case z. The guess is that z = e λt Taking first and second derivatives, dz dt = λeλt 15

d 2 z dt = 2 λ2 e λt Substituting these values into the original equation, ignoring the first derivative (since there is no first derivative in the original ODE), e λt (λ 2 + N 2 ) = 0 Since e λt can t ever equal zero, one has (λ 2 + N 2 ) = 0 This is a second degree polynomial and can be solved easily using the quadratic formula b2 4ac λ = b ± 2a Where a, b, c are the coefficients in the polynomial written in the form λ(t) = aλ 2 + bλ + c. Utilizing the quadratic formula and solving it, λ = ±Ni This gives two roots, λ 1 = Ni, λ 2 = Ni. From Euler s formula, e iθ = cos θ +i sin θ, one knows that in the case of having two complex roots, taking the real and imaginary parts as solutions to (18), one has z = c 1 cos(λ 1 t) + c 2 sin(λ 2 t) There are two initial conditions to solve for the constants c 1 and c 2. The first is that at time t = 0 z = z (0). Plugging in zero for t into the general solution, one gets z (0) = c 1 = z The second initial condition is for velocity, saying that dz = 0. Taking the dt derivative of the general solution yields, dz dt = c 1N sin(nt ) + c 2 N cos(nt ) Plugging in the initial condition and solving for c 2, dz dt (0) = c 2N = 0 16

So c 2 = 0. This makes the final closed form solution to the second order ODE, z (t) = z (0)cos(Nt) This says that when the parcel is displaced vertically, it s subsequent vertical displacement is an oscillatory motion called buoyancy oscillation about its equilibrium level z with an amplitude equal to its initial displacement z (0) with a frequency N. Again N is essentially looking at the difference between Γ d and Γ. The greater the restoring force which is proportional to this difference, the greater the frequency, and the greater the static stability. Figure 5 17

Figure 6 18

Figure 7 5 Conclusion To summarize, it has been shown how the knowledge of differential equations is essential to understanding even the most basic concepts in atmospheric thermodynamics. The processes introduced in this project had clear and consistent assumptions that helped simplify the models derived above. Although some of the assumptions cannot be applied to the actual atmosphere to make more accurate models, they are assumptions that enable one to look at these processes with knowledge limited to differential equations, basic chemistry, and Newtonian physics. Since all of the models used assumed that the atmosphere was only consisting of dry air (excluding H 2 O), they only describe a limited number of phenomena; however, the assumption serves as a good way of simplifying the models. Nonetheless, this project showed that the above stated knowledge makes it possible to study such a field with little instruction besides reference texts. The next step would be introducing other topics in atmospheric thermodynamics; most of which in- 19

clude an atmosphere with water vapor as well as saturated air. With more time, these further topics could be looked at using the same fundamental knowledge of differential equations. 6 Appendix 6.1 Matlab m-files %Defining parameters function y=z(t) global N global g global T global r_d global r global y_0 N=((g/T)*(r_d-r))^(1/2); g=9.8; T=273; r_d=9.8; r=6.49; y_0=2; y=y_0*cos(n*t); %System of equations function xprime=z xprime=zeros(2,1); xprime(1)=x(2); xprime(2)=-n^2*x(1); %Executing plots function ArlanODEsysproject [t,x]=ode45(@z,[0,100],[2,0]); plot(t,x(:,1), r,t,x(:,2), k ); legend( z, dz/dt ) 20

title( Position and Velocity vs. Time ) xlabel( t ) ylabel( z,dz/dt ) zlabel( t ) figure plot(x(:,1),x(:,2)) title( Velocity vs. Position ) xlabel( z ) ylabel( dz/dt ) figure plot3(t,x(:,2),x(:,1)) title( Time vs. Velocity vs. Position ) xlabel( t ) ylabel( dz/dt ) zlabel( z ) 21

References [1] John M. Wallace, Peter V. Hobbs, Atmospheric Science- An introductory survey. University of Washington, Seattle, 2nd Edition, 2006. [2] Robert G. Fleagle, Joost A. Businger, International Geophysics Series- An introduction to atmospheric physics. University of Washington, Seattle, 1963. [3] http://www.physics.umt.edu/borealis/environmetallapserate.pdf [4] http://www.wikipedia.org. Barometric formula, P-V diagram, enthalpy, first law of thermodynamics. [5] John Polking, Albert Boggess, David Arnold Differential Equations- With boundary value problems. 2nd Edition, 2006. 22