Dr. Desai's Challenge on Martian Atmosphere Models.

HOME PAGE CONTENTS Mars Pressure Abstract & Links Pressure Estimate Mars PowerPoint MSL Weather Record Mars-Radio-Show Curiosity Geology MSL Summer Weather MSL-Chute-Flap REMS Wind MSL Pressures REMS Reports MSL Errors P1 MSL Errors P2 Daylight Math Relative Humidity Ashima Sols 15 to 111 Ashima Sol 112 to 226 Ashima Sol 227 on Weather Forecast Wind Booms MSL Credibility MSL Temp. Swings MSL Temperatures Sample Analysis at Mars (SAM) VL2 - MSL Ls Comparson Ashima MIT Mars GCM Dust Storms Mars Slideshow Moving Sand & Martian Wind 3 DEC12 Press Conf. MSL Press Conf. 15NOV2012 Sol Numbering MSL Pressure Graph to Ls 218.8 MSL Sky Color Mars Sky Color DATA DEBATE! Physics Degree Resume' (2013) Quant Finance Zubrin's Letter Phoenix Vaisala Flawed MSL REMS Parachutes&EDL MSL landing site Mars Report 1 Mars Report 2 Mars Report 3 Mars Report 4 Mars Report 5/ Occultation Mars Report 6 Mars Report 7 Mars Report. 8 Mars Report 9 Mars Landings Phobos Grunt Martian Air Supersaturation Martian Secrets? Mars & CH4 Mars and MSL Time Viking Pressure Audit Links Full Proof Mars Society 2008 Frontiers Home Front. Preface Frontiers Ch. 1 Frontiers Ch. 2 Antimatter Lightning Frontiers Ch. 3 Frontiers Ch. 4 Frontiers Ch. 5 Frontiers Ch. 6 Frontiers Ch. 7 Frontiers Ch. 8 Frontiers Ch. 9 Frontiers Ch 10 Frontiers Ch 11 Frontiers Ch 12 Frontiers Ch 13 Frontiers Ch 14 Frontiers Ch 15 Frontiers Ch 16 Frontiers Ch 17 Frontiers Ch 18 Frontiers Ch 19 Frontiers Ch 20 Frontiers Ch 21 Frontiers Ch 22 World Tour Spring-Break -13 Other Travels Asteroid Impact? Unit Issues Viking Pressures Tavis CADs Scale Heights Viking Pressures Tavis Report Tavis Failures Lander Altitude Martian Trees? Code Experiment Gedanken Report Mars Nuke? Martian Flares Mach Numbers MOLA (altitude) Original Mars Report Mariner 9 & Pressure Mars  Temps MSL Time Contact MPF Pressure Blog Debates Spring Pendulum Plasma Model Reporting Errors Orbital Parameters

Entry, Descent &Landing/Parachutes Issues Examined (This page under construction on 3/8/2012).

NASA'S DR. PRASUN DESAI'S ATMOSPHERIC MODEL QUESTION. Dr. Desai assumes that because the last four landers on Mars landed downrange, the atmospheric density profile must be less than predicted. This, of course, is the opposite of what all my research about the Martian atmosphere indicates.  Let's first examine his specific question, and then look at two components of the entry, descent and landing problem. My emphasis will be to address issues related to parachute size, and then to look to the issue of atmospheric density between 10 and 50 km in light of new evidence that there is 10 to 100 times more water vapor in the Martian atmosphere than envisioned when Dr. Desai posed his question. 

 THE SPECIFIC DESAI QUESTION (see his article summary): "Does the fact that every one of these entries encountered a lower atmospheric density profile than predicted indicate a random occurrence or is there a systemic bias in current Mars atmospheric models? As such, a question is posed to the atmospheric community to consider if the Mars modeling assumptions are appropriate or are there underlying modeling issues that need to be reexamined or reevaluated. Additionally, although the entire density profile is necessary for entry, descent, and landing design; nearly all deceleration during entry occurs between 10-50 km. As such, prediction of density within this altitude band is most critical for entry flight dynamics and design.”

SIZE OF PARACHUTES USED ON MARS.

Obviously, a parachute could not be used to slow a rocket landing on the Moon.  There would be no air for the parachute to catch.  One would think that the low atmospheric pressures on Mars would require an enormous parachute to land there.  The actual landers on Mars cut the parachutes loose before landing, going to retrorockets or air bags, but the parachutes used are actually not very large.  In fact, the one used for Phoenix was reduced to 39 feet (see Figure 1 upper left Idaho test insert below) from the 42 feet used for Pathfinder. However, the rest of Figure 1 appears to show a considerably smaller parachute that Wikipedia describes as having an apparent diameter of only 10 meters (~33 feet).

I asked Dr. Desai about the parachute.  His response was:

 

As for parachute size, we all would like to use larger parachutes. However, as the volume of these landers is small, there just is not sufficient room to fit a larger parachute. We have to make tradeoffs on various systems in order to arrive at a design that meets overall requirements. That is also why there typically is some sort of a retro-rockets system prior to landing to decrease the velocity further prior to landing. It all comes down to systems design of the lander and the tradeoffs that are necessary. The other aspect of the parachutes is that their impact is an integrated effect. As such, throughout the descent after they are open, the length of time is what makes their use worthwhile even with the low atmospheric

      What would happen in terms of the parachute if the air was less dense than planned for by the NASA EDL team? If less dense all the way down, the parachute would be less effective, and the probe would come in faster and possibly crash.  However, we have seen above that Desai admits the density is higher down low when it is lower up high.  Somehow the normal scale height ratios are not holding on Mars, but this begs the question of why they do not hold?  Are there radical alterations of density profiles that are causing probes to land long or crash?

      If the atmosphere was more dense than planned for down low, the parachute would work, but the probe would take longer to reach the surface, perhaps drifting for more time in the Martian winds.  It would land long, as was the case with Pathfinder, Spirit, Opportunity, and Phoenix.

PROBLEMS IN IDENTIFYING PARACHUTE SIZE. If there seems to be some confusion about which parachute diameter to use for Phoenix calculations, consider the article entitled Mars Exploration Entry, Descent and Landing Challenges by Dr. Robert D. Braun of the Georgia Institute of Technology and Robert M. Manning of the Jet Propulsion Laboratory at the California Institute of Technology. Table 1 of their 2005 paper lists the (planned) diameter of the Phoenix DGB (Disk-Gap-Band) Parachute as 11.5 meters (37.73 feet). The same table lists the DGB parachute diameter of the Viking 1 and Viking 2 as 16 m, but on Figure 12 the diameter shown is only 11.7 m. For Mars Pathfinder Table 1 lists the DGB parachute diameter as 12.5 m, but Figure 12 shows its diameter as 7.9 m. Table 1 further lists the DGB parachute diameter for Mars Exploration Rovers A (Spirit) and B (Opportunity) as 14 m, but Figure 12 shows just 8.9m. It looks like the different diameters may be due to differences in how the diameters are measured. Probably the larger figures represent the diameter of the 2D parachute when spread out on the floor, while the smaller diameters represents the size seen when the edges are pulled in due to the attached suspension lines, riser and payload and below the canopy and skirt.

       The Braun and Manning paper indicates that all parachutes used for Mars landings including that planned for the Mars Science Lab (currently enroute to Mars) were flight tested only in the 1960s. Due to great expense, these tests were not ever repeated. To see one such test of a 40-foot (12.192 m) parachute, click here

FIGURE 1 ABOVE: The insert on the upper left is misleading as the actual landing for Phoenix occurred after parachute separation and terminal descent thruster firing. The rest of figure 1 is devoted to photos of the Phoenix descending to Mars.............................................................................................................................. FIGURE 2 BELOW: When the 2.65m diameter Phoenix lander is shown with its parachute, the parachute diameter appears to be well under 10m, but certainly not as large as 11.882m.

Original Caption Released with Figure 1 Image (minus Idaho test insert):

Mars Reconnaissance Orbiter's High Resolution Imaging Science Experiment (HiRISE) camera acquired this image of Phoenix hanging from its parachute as it descended to the Martian surface. Shown here is a 10 kilometer (6 mile) diameter crater informally called "Heimdall," and an improved full-resolution image of the parachute and lander. Although it appears that Phoenix is descending into the crater, it is actually about 20 kilometers (about 12 miles) in front of the crater.

The Phoenix Mission is led by the University of Arizona, Tucson, on behalf of NASA. Project management of the mission is by NASA's Jet Propulsion Laboratory, Pasadena, Calif. Spacecraft development is by Lockheed Martin Space Systems, Denver.

Image Credit:

NASA/JPL-Caltech/University of Arizona

Image Addition Date:

2008-05-27

 

CHECKING NASA'S MATH. There were several problems with the math offered by NASA for the EDL. One is that there are different diameters offered online for the parachute, another is that the HIRISE photo seems to suggest even an lower diameter, and finally there is the issue of the late parachute deployment.          

       I first calculated an estimate of the velocity of the Phoenix Lander during the parachute deployment phase using the largest parachute diameter published (39 feet = 11.8872 m).  Because NASA published certain numbers (given below) I wanted to test them. So I solved the following equations numerically:

d2z/dt2 = -g + ρ(z)*(dz/dt)2*A*sin(θ)/m

and

d2x/dt2 = ρ(z)*(dz/dt)2*A*cos(θ)/m

 

Where the density ρ is given by: ρ = ρ0*exp(-z/H).  H, the scale height is 10.8 km.  The surface air density ρ0 is .02 kg/m3.  “A” is the area of the parachute, which is 110.9811 m2.  The angle is the initial entry angle and is assumed constant (13.3 degrees).  The Martian gravity “g” is 3.711 m/s2 and the initial altitude and velocity were 13.3 km and 89.029 m/s (downward component) respectively.  The lander mass “m” was 350 kg.  With other components it was a bit heavier, but this is a good estimate.  I assumed the only drag is due to the ram pressure caused by the cross-section of the parachute.  This problem was broken into two ODE’s (Ordinary Differential Equations) and solved as initial value problems with error in the second order (I used a time step of .005 s to attempt to compensate). 

       It appears that at the end of the simulation, where the altitude was 925 m, the velocity was -53.605 m/s.  This agrees with the 52-54 m/s given in the Statistical Entry, Descent and Landing Performance Reconstruction of the Mars Phoenix Lander paper by Dutta et al.  If the surface air density is increased by a factor of 10, the velocity at the point where the parachute is ditched is -16.6733 m/s instead.  The reason for this test is to see what effect higher air density would have on the velocity profile.  Why a factor of 10?  There was a recent article about there being 10 times more water vapor in the atmosphere than previously known.  If this refers to a partial pressure I should multiply the surface pressure by this factor.  There is a linear relationship between pressure and density of a gas at a constant temperature.  So as a rough estimated the density was multiplied by a factor of 10. 

WHICH PARACHUTE DIAMETER IS CORRECT? The parachute diameter is uncertain by about 1.882 m because different NASA sources put it at different numbers. Most sources listed the diameter as 39 feet (11.882 m), while a few used 10 m (32.8 feet). There was a 6.6 second delay in the parachute deployment; therefore I will have to solve the 20-50 km part of the trajectory later.  I believe this is due to activity in this part of the atmosphere or an engineering flaw. Dr. Desai states that  most deceleration occurs below 50 km, but he uses different altitudes at different times for where this deceleration largely decreases.  The middle atmospheric part will have varying scale heights as the distance traveled is larger and there is supposed to be an inversion layer somewhere.  This means the density profile will be piecewise. Note that this parachute program is a 2-D model, but I don't predict how far downrange a craft will go.  The MATLAB code is below.

clc
clear
dt = .005;
rho0 = .02;
H = 10800;
A = pi*(5.9437)^2; %5.9437
m = 350;
z0 = 13300;
g = 3.71;
theta0 = 4.9*pi/180; %13.3
v0z = -387.6*sin(theta0);
v0x = -387.6*cos(theta0);
velocityz = [];
velocityx = [];
velocity = [];
altitude = [];
iter = 0;
while z0 > 925
    rho = rho0*exp(-z0/H); %Scale Height gives density
    z = z0 + v0z*dt; %Vertical position
    vz = dt*(-g + (rho*v0z^2*A/m)*sin(theta0)) + v0z; %Vertical velocity
    z0 = z;
    v0z = vz;
    vx = dt*(rho*v0x^2*A/m)*cos(theta0) + v0x; %Horizontal velocity
    v0x = vx;
    altitude = [altitude,z];
    velocityz = [velocityz,vz];
    velocityx = [velocityx,vx];
    iter = iter + 1;
    velocity = [velocity, sqrt(velocityz(iter)^2 + velocityx(iter)^2)];
    disp(z)
end
plot(velocity,altitude)

The Two Plots Below Deal With Vertical Velocity

WHICH ALTITUDES ARE IS CORRECT FOR MAXIMUM DECELERATION? The Desai quote shown earlier on this page was from his publication which stated, "nearly all deceleration during entry occurs between 10-50 km." However, in an e-mail to me dated March 22, 2010, Dr. Desai stated that:
 

“Another important aspect to the atmospheric density is in what altitude region is the density lower. The most important altitude band for entry and descent is between 20-50 km, prior to the parachute being deployed. That is where almost all of the deceleration occurs (~90% of the velocity is reduced), and therefore the downrange distance traveled. Above and below this altitude band, the downrange distance traveled is minimally affected by mis-prediction of density”... “Also, the density just doesn’t disappear in the entire column of air (actually CO2). “If the density is lower in this mid-altitude band, then the density is higher at lower altitudes 0-20 km. Basically, more of the column of CO2 moves lower (the CO2 just doesn’t disappear). As such, a little of the effect of the lower density at higher altitude is made up by the higher density at lower altitudes, although far from all."

 
       So which is it, a bottom concern of 20 km - prior to parachute deployment, or the published bottom of 10 km - after parachute deployment? I will return to this issue later, but first let's examine how descent velocities change if the diameter of the parachute is reduced from 11.882 m down to 10m. 
       When the entering argument was a surface air density ρ0 of .02 kg/m3, I found that at the end of the simulation, where the altitude was 925 m, the velocity was -53.605 m/s. However, If the surface air density is increased by a factor of 10, the velocity at the point where the smaller parachute is ditched is increase from -16.6733 m/s to -19.8343 m/s. 

The Two Plots Below Deal With Vertical Velocity

WRONG ASSUMPTION ABOUT DUST CONTENT AND DENSITY: The article by Braun and Manning (Mars Exploration Entry, Descent and Landing Challenges) states, "Atmospheric variability across a Martian year limits our ability to develop a common EDL system. In addition, significant atmospheric dust (a random occurrence) increases the temperature, reducing density and requiring conservatism in the selection of landing site elevation. I strongly disagree with their conclusion.
       J. D. Parsons  addresses the compressibility of dust storms and positive feedback for their formation (Are fast-growing Martian dust storms compressible?, Geophysical Research Letters, August 1, 2001).  Pre-dust storm density values are around 9.4 g/m3.  A sample dust storm given in Parsons paper would have additional densities of 17g/m3 in order to even be created.  This is an order of magnitude greater than terrestrial storms.  It also constitutes an increase of at least several hundred percent over previously accepted values.  In the Sahara, pressures have been observed to increase during dust storms.  Likewise, on July 5 2011, a huge dust storm hit Phoenix, Arizona. At nearby Luke Air Force Base in Glendale, pressure rose by 6.6 mbar (more than accepted average pressure at Mars areoid) between the storm’s arrival at 0255 Z (pressure 1004.7 mbar) and 0555 Z when the pressure was up to 1011.3 mbar. Pressure dropped as visibility cleared at 0655 Z (personal phone to Luke AFB meteorology, July 6, 2011).
 

MORE DENSITY CONCERNS ARISING FROM MATLAB CALCULATIONS.

After noticing a problem with my aero-shell density profile I went back to just to get the densities.  A more accurate model using scale height and temperature profiles yielded an odd answer.  Using the given 56 km high air density (10-4 kg/m3) provided in the Dutta et al. paper I arrived at a surface pressure of 23-24 mb.  This is answer was obtained by using the official numbers.  The density was computed at each data point using the baseline density as that at the previous data point.  This increases accuracy.  I neglected the contribution of any atmosphere above 56 km to surface pressure because it should be negligible.  If this answer is correct, then the higher air pressure is 3-4 higher than expected by NASA/JPL.  This difference, however, would help explain the missing landers though.  NASA cites a figure where surface pressure is 20 mb from the 1969 Mariner mission at http://history.nasa.gov/SP-4212/ch8.html . 

Here is the procedure that I used to derive the surface pressure of 23-24 mb:

 

1.    Define starting parameters: density at 56 km, gravity, mass of CO2, and starting height parameters.  Chose the step size for the simulation to advance (I choose 10 m).  A smaller step size will only change the answer by about 0.01 mb.  Note that z and z0 are used in combination to keep track of height and densities.  All units are SI units.  Define an empty vector that will keep track of the contribution to pressure at each data point.

 

2. Run “while” loops to iteratively solve for density.  The empty pressure vector (P) is being appending during this time.

 

3.  After all the loops have run the computer displays the surface pressure in mb (which is not SI).  The variable rho stores the surface air density (obviously at the end this will equal rho0). The temperature at the end was about 223K which is in between the 200 and 240 K measured at the Phoenix lander.

 

See the MATLAB code below.

clc

clear

format 'long'

dz = 10; %Height Increment

M = 44*(1.66*10^-27);

k = 1.38*10^-23;

g = 3.71;

rho0 = 10^-4;

z0 = 56000-dz;

z = 56000; %Used to compute height difference

P = []; %Stores Pressures.  Pressure is due to the weight of the atmosphere

%above.

while z0 > 50000

    T = 2.25*10^-3*(54000-z0) + 145; %Compute Temperature

    H = k*T/(M*g); %Compute Scale Height

    rho = rho0*exp((z-z0)/H); %Compute Density using z as baseline height

    %and z0 as the current height.  This way dz is always the height

    %difference used in the calculation.

    z = z0; %Set the upper bound of altitude as the current lower bound

    z0 = z0 - dz; %Set the lower bound of altitude as current minus dz.

    rho0 = rho; %Set the current density as the baseline density

    P = [P,rho*g*dz];

end

 

while 50000 >= z0 && z0 > 35000

    T = 153;

    H = k*T/(M*g);

    rho = rho0*exp((z-z0)/H);

    z = z0;

    z0 = z0 - dz;

    rho0 = rho;

    P = [P,rho*g*dz];

end

 

while 35000 >= z0 && z0 > 0

    T = 2*10^-3*(35000-z0) + 153;

    H = k*T/(M*g);

    rho = rho0*exp((z-z0)/H);

    z = z0;

    z0 = z0 - dz;

    rho0 = rho;

    P = [P,rho*g*dz];

end

disp(sum(P)/100) %Sum all pressure intervals to get surface pressure (mb)

 

FIGURE 7: Change in density vs. altitude for Phoenix.

PROBLEM: The parachute deployed 6.6 seconds late. The next invesitgation will examine the issue  of whether 10 to 100 times more water vapor in the atmosphere than expected accounts for this delay via increased buoyancy in the atmosphere. I first calculate an estimate of the velocity profile from 13 to 50 km of the Phoenix lander (later I will focus on the 13 to 40 km fragment which I believe will most closely explain the 6.6 second delay).       

       Once again the forces were due to gravity and ram pressure that is a function of density. Varying scale height profiles were used to attempt to best mimic the actual atmospheric density profile.  So the equation is once again:

d2z/dt2 = -g + ρ(z)*(dz/dt)2*A*sin(θ)/m

       Where the density ρ is given by: ρ = ρ0*exp(-z/H).  The surface air density ρ0 is .02 kg/m3.  Since “H” is a function of temperature, a temperature profile was used.  “A” is the cross-section of the space craft, which is 5.47 m2.  The angle is the initial entry angle and is assumed constant (13.3 degrees).  The Martian gravity “g” is 3.711 m/s2 and the initial altitude and velocity were 50 km and 1180 m/s (downward component) respectively.  As for the total velocity, it is 5450 m/s, which was taken from a paper by Withers and Catling (2010).  The lander mass “m” was 582 kg.  This problem was broken into two ODE’s (Ordinary Differential Equations) and solved as initial value problems with error in the second order (I used a time step of .0005 s to attempt to compensate). 

       The first run assumed the density at 56 km was the given 10^-4 kg/m3 (see Figure 7).  When run like this, the downward velocity at 13.3 km altitude was 448 m/s and it took 44.03s to transverse this distance.  However, using this offical figures yielded a surface pressure of  23-24 mb.  The next test asked what density at an altitude of 56 km causes the surface pressure to be ~8-9 mb.  When run like this, the downward velocity at 13.3 km altitude was 880 m/s and it took 37.22s to transverse this distance.  This velocity is not the ~387 m/s measured on the craft, but it does account for the ~6.6 s.  Note the code below can be altered by changing rho0 before the loops.  While it appears the code works, it may be changed later if I find bugs.

 

clc
clear
format 'long'
dt = .0005;
A = pi*(2.64/2)^2;
m = 582;
M = 44*(1.66*10^-27);
k = 1.38*10^-23;
Al = 56000;
z0 = 56000;
g = 3.71;
B = 70;
Cd = m/(B*A);
theta0 = 12.5*pi/180;
v0 = -5450*sin(theta0); %with angle included
velocity = [];
altitude = [];
iter = 0;
rho0 = 3.598154449165283*10^-5;
P = []; %Stores Presures.  Pressure is due to the weight of the atmosphere
%above.
while z0 > 50000
    T = 2.25*10^-3*(54000-z0) + 145; %Compute Temperature
    H = k*T/(M*g); %Compute Scale Height
    rho = rho0*exp((Al-z0)/H); %Compute Density using Al as baseline height
    %and z0 as the current height.  This way dz is alway the height
    %difference used in the calculation.
    Al = z0;
    z = z0 + v0*dt;
    v = dt*(-g + (rho*v0^2*A*Cd/(2*m))) + v0;
    z0 = z;
    v0 = v;
    altitude = [altitude,z];
    velocity = [velocity,v];
    iter = iter + 1;
    rho0 = rho; %Set the current density as the baseline density
    P = [P,rho*g*(Al-z0)];
    disp(z)
end

while 50000 >= z0 && z0 > 35000
    T = 153;
    H = k*T/(M*g);
    rho = rho0*exp((Al-z0)/H); %Compute Density using Al as baseline height
    %and z0 as the current height.  This way dz is alway the height
    %difference used in the calculation.
    Al = z0;
    z = z0 + v0*dt;
    v = dt*(-g + (rho*v0^2*A*Cd/(2*m))) + v0;
    z0 = z;
    v0 = v;
    altitude = [altitude,z];
    velocity = [velocity,v];
    iter = iter + 1;
    rho0 = rho; %Set the current density as the baseline density
    P = [P,rho*g*(Al-z0)];
    disp(z)
end

while 35000 >= z0 && z0 > 0
    T = 2*10^-3*(35000-z0) + 153;
    H = k*T/(M*g);
    rho = rho0*exp((Al-z0)/H); %Compute Density using Al as baseline height
    %and z0 as the current height.  This way dz is alway the height
    %difference used in the calculation.
    Al = z0;
    z = z0 + v0*dt;
    v = dt*(-g + (rho*v0^2*A*Cd/(2*m))) + v0;
    z0 = z;
    v0 = v;
    altitude = [altitude,z];
    velocity = [velocity,v];
    iter = iter + 1;
    rho0 = rho; %Set the current density as the baseline density
    P = [P,rho*g*(Al-z0)];
    disp(z)
end
disp(sum(P)/100) %Sum all pressure intervals to get surface pressure (mb)
plot(velocity,altitude)

NOTE: FIGURES 8 AND 9 ARE STILL UNCERTAIN! MORE VELOCITY DATA IS NEEDED.

format 'long'

dz = 10; %Height Increment

M = 44*(1.66*10^-27);

k = 1.38*10^-23;

g = 3.71;

rho0 = 10^-4;

z0 = 56000-dz;

z = 56000; %Used to compute height difference

P = []; %Stores Pressures.  Pressure is due to the weight of the atmosphere

%above.

while z0 > 50000

    T = 2.25*10^-3*(54000-z0) + 145; %Compute Temperature

    H = k*T/(M*g); %Compute Scale Height

    rho = rho0*exp((z-z0)/H); %Compute Density using z as baseline height

    %and z0 as the current height.  This way dz is always the height

    %difference used in the calculation.

    z = z0; %Set the upper bound of altitude as the current lower bound

    z0 = z0 - dz; %Set the lower bound of altitude as current minus dz.

    rho0 = rho; %Set the current density as the baseline density

    P = [P,rho*g*dz];

end

 

while 50000 >= z0 && z0 > 35000

    T = 153;

    H = k*T/(M*g);

    rho = rho0*exp((z-z0)/H);

    z = z0;

    z0 = z0 - dz;

    rho0 = rho;

    P = [P,rho*g*dz];

end

 

while 35000 >= z0 && z0 > 0

    T = 2*10^-3*(35000-z0) + 153;

    H = k*T/(M*g);

    rho = rho0*exp((z-z0)/H);

    z = z0;

    z0 = z0 - dz;

    rho0 = rho;

    P = [P,rho*g*dz];

end

disp(sum(P)/100) %Sum all pressure intervals to get surface pressure (mb)

FIGURE 10: Phoenix EDL Overview.