Adding a Second Component to a Fixed-Volume Container

A constant-volume tank initially contains one component in the vapor phase (either -octane or -hexane), and you can add the other component at constant temperature using a slider. Change the temperature with another slider. Select the component to be added with buttons. The pressure-composition diagram has a blue line for the bubble pressure and an orange curve for the dew-point pressure. The black dot is located at the overall composition and the pressure. When two phases are present, the -hexane mole fractions of the liquid phase (, blue dot) and the vapor phase (, orange dot) are displayed. The bar graph represents the number of moles of each component in the liquid and vapor phase; purple is for -hexane and green is for -octane.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


The saturation pressures are calculated using the Antoine equation:
where is the saturation pressure (bar) of component ; , and are Antoine constants; and is temperature (K).
Raoult's law for a binary mixture is used to calculate the bubble and dew pressures:
where and are the liquid mole fractions of each component and and are the vapor mole fractions .
The overall mole fraction of component 1 is , where and are the total moles of each component.
When only vapor is present,
where is pressure (bar), is the gas constant ([L bar]/[mol K]), is volume (L) and are moles of vapor.
The following five equations are solved for , , , , and liquid moles when both liquid and vapor are present.
From Raoult's law:
From overall and species mole balances:
From a volume balance:
where is the molar density of the mixture (mol/L).
The screencast video at [1] explains how to use this Demonstration.
[1] Adding a Second Component to a Fixed-Volume Container [Video]. (Aug 31, 2016) www.colorado.edu/learncheme/thermodynamics/AddingSecondComponentFixedVolume.xhtml.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+