Difference between revisions of "How to "Set" the partial pressure of a gas?"
(Created page with "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 ga...") |
|||
Line 28: | Line 28: | ||
[[File:2017-04-14 12-03-49.png]] | [[File: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 |
Revision as of 09:07, 14 April 2017
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:
So far, so good...
We now need to add a survey. The default survey is temperature, we will change that to composition.
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
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):
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