You are on page 1of 6

Calculate

Calculate
Vapor
Vapor
Fugacities
Fugacities

Calculate Calculate Calculate Calculate


Calculate
Saturation Calculate
Degassing Calculate Calculate
Saturation Degassing Isobars Vapor
Pressure Path Isobars Vapor
Pressure Path Isopleths
Isopleths

Rhyolite
Calculations

Calculate Calculate Calculate Calculate


Calculate Calculate Calculate Calculate
Saturation Degassing Isobars Vapor
Saturation Degassing Isobars Vapor
Pressure Path Isopleths
Pressure Path Isopleths

Basalt
Calculations

VOLATILECALC1.1
Solubility
Solubility
Versus
Versus
Pressure
Pressure

Solubility
Solubility
Versus
Versus
Pressure
Pressure
0 100
VolatileCalc is a set of macros written in Visual Basic for Applications (VBA) that o
Microsoft Excel (Office '98 or '2000). It allows you to calculate the following for R
BASALT-H2O-CO2 systems:

Saturation Pressures: Calculates the pressure at which a silicate melt would become saturated with a
the composition of the vapor in equilibrium with that melt. Required input: Wt%H2O dissolved in the melt and
melt (both relative to melt + dissolved volatiles, but not including crystals or excess vapor phase), Temperatu
basaltic compositions. Output: Pressure, H2O speciation(H2Om and OH), and vapor composition (mol% CO2

Degassing Path: Calculates the series of compositions (both melt and vapor) that a magma would follow durin
calculate one of two options:
Open-System Degassing... Magma is depressurized along a series of steps. At each step, the melt compositio
are re-calculated until they are in equilibrium with the vapor exsolved during that step.
Closed-System Degassing...Magma is depressurized along a series of steps. At each step, the melt compositio
are re-calculated until they are in equilibrium with the total vapor exsolved from the melt along all previous st
allow the user to specify EXSOLVED VAPOR that is present.
Required input: Wt%H2O in the melt and PPMCO2 in the melt as above, Temperature in C, Open- or Closed-Sy
Wt.% exsolved vapor relative to melt+dissolved volatiles+ exsolved vapor). Number of steps along degassing
What is exsolved vapor?: This is vapor that would be present in equilibrium with the inputted melt composition
The amount affects the closed-system degassing path by buffering the vapor composition. For example, you
had 4%H2O and 1000 ppm CO2 at 800C, and that the system was vapor saturated. This corresponds to a pr
closed-system degassing path of this melt would differ, depending on the amount of vapor present at this initi
amount of exsolved vapor, the user can model the buffering capacity of exsolved vapor on the dissolved volat
ascending magma. An alternative would be to add/force the H2O and CO2 back into the melt, and start the
pressure conditions.
Output: Wt%H2O, PPMCO2, H2O speciation (H2Om and OH), Vapor Composition (in mol% H2O and CO2) and P
the path.
BEWARE of the last step or two during the final stages of degassing, especially when the steps in CO2-loss are
re-doing the calculations for low pressure conditions to insure smaller steps.

Isobars: Calculates the locus of all melt compositions in equilibrium with CO2-H2O vapor for a given temperatu
curve yields a different melt composition, in terms of dissolved volatiles, and a different corresponding vapor.
bars, Temperature in C, and the number of points desired along the isobar. Output: Wt%H2O, PPMCO2, H2O
Vapor Composition (in mol% H2O and CO2).

Isopleths: The curve for all melt compositions in equilibrium with a fixed vapor composition at a set temperat
Temperature in C and Vapor Composition in Mol% H2O, amount to increment CO2, and number of points alon
%H2O, PPMCO2, H2O speciation(H2Om and OH), and Pressure for each point along the curve.

Vapor Fugacities: Calculates the fugacity of H2O and CO2 vapor for a given Temperature and Pressure. Requir
Temperature in C. Output: The fugacity (in bars) of endmember CO2 and H2O vapors at a given T and P. Mel
for this macro. This macro cannot be used at temperatures below 450C and pressures below 200 bars (thou
function at lower pressures when called by the other macros).

Solubility versus Pressure: Calculates the solubility of either CO2 or H2O as a function of pressure up to 5000 b
Required input: Desired volatile (H2O or CO2), Temperature in C, and desired step increase (default calculate
Output: Wt%H2O, PPMCO2, H2O speciation(H2Om and OH), pressure and vapor composition (either 100 mol%

All Macros: Simply press on the desired macro button and VolatileCalc will start. Degassing, Isobar, Isopleth a
calculations can be plotted automatically. If results and/or plots must be saved, they should be copied and pa
or another workbook. If the Output sheet is deleted, another with the same name must be created.

Caveats: The program works for rhyolitic and basaltic melt compositions. The code may not apply to strongly
rhyolites. However, because many andesites and dacites contain rhyolitic interstitial melt, VolatileCalc may b
compositions. The basalt algorithms are written for tholeiitic basalts and alkali basalts. The program queries
basalts, with the assumption that alkalinity has an inverse correlation with Wt.%SiO2, according to the model
368-378).
Keep in mind that there are several solubility models for rhyolites and basalts. The results obtained with Vol
significantly from these other models, but will typically be within 10% relative for pressure calculations. Agre
All Macros: Simply press on the desired macro button and VolatileCalc will start. Degassing, Isobar, Isopleth a
calculations can be plotted automatically. If results and/or plots must be saved, they should be copied and pa
or another workbook. If the Output sheet is deleted, another with the same name must be created.

Caveats: The program works for rhyolitic and basaltic melt compositions. The code may not apply to strongly
rhyolites. However, because many andesites and dacites contain rhyolitic interstitial melt, VolatileCalc may b
compositions. The basalt algorithms are written for tholeiitic basalts and alkali basalts. The program queries
basalts, with the assumption that alkalinity has an inverse correlation with Wt.%SiO2, according to the model
368-378).
Keep in mind that there are several solubility models for rhyolites and basalts. The results obtained with Vol
significantly from these other models, but will typically be within 10% relative for pressure calculations. Agre
and the experimental data on which it is based (see manuscript) should be close, but not exact.

Errors: The macros are designed to stop calculations when there are errors in input, division by zero, infinite
occasion, calculations will continue without cessation. The user can stop VolatileCalc by typing COMMAND+pe
(PC) and then clicking on the option END.
0
Applications (VBA) that operate within
culate the following for RHYOLITE-H2O-CO2 or

t would become saturated with a vapor phase. Calculates


Wt%H2O dissolved in the melt and PPM CO2 dissolved in the
r excess vapor phase), Temperature in C. Wt.% SiO2 for
nd vapor composition (mol% CO2 and H2O).

that a magma would follow during depressurization. Can

At each step, the melt composition and vapor compositions


g that step.
At each step, the melt composition and vapor compositions
rom the melt along all previous steps. Closed-system runs

perature in C, Open- or Closed-System Degassing (if closed:


Number of steps along degassing path (default=25).
with the inputted melt composition at the INPUT CONDITIONS.
or composition. For example, you might know that a rhyolite
turated. This corresponds to a pressure of ~2500 bars. The
mount of vapor present at this initial pressure. By varying the
olved vapor on the dissolved volatiles remaining within an
back into the melt, and start the degassing run from higher

tion (in mol% H2O and CO2) and Pressure at each step along

lly when the steps in CO2-loss are large. It may it be worth

2-H2O vapor for a given temperature. Each point on the


d a different corresponding vapor. Required input: Pressure in
Output: Wt%H2O, PPMCO2, H2O speciation (H2Om and OH),

por composition at a set temperature. Required input:


nt CO2, and number of points along the isopleth. Output: Wt
t along the curve.

Temperature and Pressure. Required input: Pressure in bars,


2O vapors at a given T and P. Melt composition is irrelevant
d pressures below 200 bars (though the subroutine does

a function of pressure up to 5000 bars. Plots the results.


d step increase (default calculates results every 200 bars).
por composition (either 100 mol% CO2 or H2O).

art. Degassing, Isobar, Isopleth and Pressure vs. Solubility


ved, they should be copied and pasted to another worksheet
name must be created.

he code may not apply to strongly peralkaline or peraluminous


nterstitial melt, VolatileCalc may be applicable to these
kali basalts. The program queries the user for Wt.%SiO2 of
Wt.%SiO2, according to the model of Dixon (Am. Mineral. 82:

alts. The results obtained with VolatileCalc may differ


e for pressure calculations. Agreement between VolatileCalc
art. Degassing, Isobar, Isopleth and Pressure vs. Solubility
ved, they should be copied and pasted to another worksheet
name must be created.

he code may not apply to strongly peralkaline or peraluminous


nterstitial melt, VolatileCalc may be applicable to these
kali basalts. The program queries the user for Wt.%SiO2 of
Wt.%SiO2, according to the model of Dixon (Am. Mineral. 82:

alts. The results obtained with VolatileCalc may differ


e for pressure calculations. Agreement between VolatileCalc
close, but not exact.

in input, division by zero, infinite iterations, etc. However, on


atileCalc by typing COMMAND+period (Macintosh) or ESCAPE

You might also like