How to "Set" the partial pressure of a gas?

From wiki.olisystems.com
Revision as of 09:07, 14 April 2017 by Jberthold (talk | contribs)
Jump to: navigation, search

How do you set the partial pressure of a gas in OLI Studio?

The short is answer is that you cannot.

OK, now for the real answer. You can "Set" the partial pressure of a gas in OLI Studio via a series of calculations to get close to (sometimes very close to) the actual partial pressure that you want.

For this example, we wish to know the solubility of calcite (CaCO3) at 25 °C and 1.0 atmospheres partial pressure of carbon dioxide (PCO2)

With version 9.5.2 of OLI Studio, we have added partial pressures as a variable that you can report and plot (unfortunately not set). We will show you where these are located later on in this tutorial.

We have several methods in which to "set" the partial pressures, the easiest (and fastest) is to pick the value off a plot. Let's start by creating the OLI Studio stream we which to use.

Create an MSE stream with the following components:

2017-04-14 11-57-40.png

So far, so good...

We now need to add a survey. The default survey is temperature, we will change that to composition.

2017-04-14 11-59-32.png

To "set" the partial pressure of CO2 we need to adjust the amount of carbon dioxide we are entering into the survey. Use the Specs... button to set the composition component to CO2

2017-04-14 12-01-36.png

We need a range, let's try a range of 0 to 1 mole in 0.1 mole increments for CO2 (by the way, this is the default range for a composition survey):

2017-04-14 12-03-49.png

If we now run the simulation we will only get a simulation of the solubility of carbon dioxide in water at a constant temperature and pressure. This is not what we want. What we want is a solubility calculation for calcite and to keep the amount of carbon dioxide at a constant partial pressure.

We cannot do this exactly but we can make an approximation. What we will do is use a custom calculation. OLI does not naturally allow you to adjust two or three variables simultaneously in a survey. This can cause some confusion in the calculation. However, we need to do this for this simulation. To do this we need to enable custom calculations in a survey. Please see