QuestionQuestion

Reservoir Engineering I
Generate a robust programming to solve the problem below. The program can be wrote by using any computer language, e.g., Matlab, C, VB, Julia, Python.
Problem:
Use the Peng-Robinson equation of state to calculate the compositions and densities of the equilibrium liquid and gas of the mixture given below at 160°F and 2000 psia. Use binary interaction coefficients of 0.02 for methane-n-butane, 0.035 for methane-n-decane, and 0.0 for n-butane-n-decane.
Component Composition, mole fraction
Methane                0.5532
n-Butane                0.2630
n-Decane               0.1838
                               1.0000
Compare your answer with experimental results shown below.
Component Composition, mole fraction
                                  liquid          gas
Methane                   0.458         0.856
n-Butane                   0.304          0.130
n-Decane                  0.238          0.0136
                                  1.000          0.9996

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

Project 1
%}

%% Information
clear; close all; clc;
global nc R
nc = 3;                         % numbers of components

%    C1   C4    C10
Tc = [343 765.3 1111.7];       % Critical temperature, R
Pc = [666.4 550.6 305.2];       % Critical pressure, psia
Omega = [0.0104 0.1995 0.4898]; % Acentric factor, dimensionless
R = 10.732;                     % Universal gas constant, ft3 psia/R/lbmol

% Matrix of binary interaction coefficients
delta = [0.000 0.020 0.035
         0.020 0.000 0.000
         0.035 0.000 0.000];...

By purchasing this solution you'll be able to access the following files:
Solution.zip.

$25.00
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Petroleum Engineering Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats