### Write a program to calculate the results of isothermal flash

Assignment Help MATLAB Programming
##### Reference no: EM132234440

Assignment - Programming flash calculations

A stream of hydrocarbons is to be separated in single-stage vapor-liquid flash process. The feed stream is a bubble point liquid at 600 kPa with the following flow rates, in kmol/h:

propane: 2.21

n-butane: 3.18

i-butane: 3.65

n-pentane: 4.96

i-pentane: 2.30

n-hexane: 1.11

Write a program to calculate the results of an isothermal flash at a given temperature and a pressure of 305 kPa. Find the flow rates and the compositions of the product streams at a flash temperature of 320 K. Find the heat, in units of kJ/h, that must be added to the feed stream at a given temperature and plot heat versus flash temperature in the range of 305 < T < 330. Estimate the temperature at which the flash is adiabatic.

The materials you turn in on Blackboard with this assignment should include:

• The computer code that you wrote. The better your code is commented, the more partial credit we'll be able to give you.
• A 1-2 page description of the methods you implemented in your program.
• The results (output) from your program.

Note: Using the GetEnthalpy.m function

You can find the function file GetEnthalpy.m in the 'resources' section of the course Piazza page. It returns the molar enthalpy of a stream in units of J/mol given the pressure, temperature, composition, and phase of that stream. You should copy it into the same folder or directory as the GetKValues function. The use is as follows: enthalpy = GetEnthalpy(p, T, component_numbers, compositions, ph)

Note - Follow the instructions on the pdf using Kvalue zip drive to obtain the values from the interactive code and the rest of the process from the GetEnthalpy script. The 1-2 page report is not needed.

Attachment:- Assignment Files.rar

#### Directional antennas in a stationary environment

Consider a point-to-point radio link between two highly directional antennas in a stationary environment. The antennas have antenna gains of 30 dB, distance attenuation is 1

#### Prepare a program in matlab

Prepare a program in Matlab to add two numbers from two arrays using try catch construct. Initialize two arrays of different size, and then prompt the user to input indexes

#### Find the mean value and standard deviation of total gravity

plot the total gravity effect of the 5 cylinders by summing their effects at each observation point on the profile.   What is the mean value and standard deviation of the tota

#### Where the two arrays are the coefficients of two polynomials

Compute the step response. This should be done analytically, but you can use Matlab commands like conv and residue to help you in the calculations. Where the two arrays are

#### Write a computer program to implement a discrete hopfield

Write a computer program to implement a heteroassociative neural net using the Hebb rule to set the weights (by outer products). The program should read an x vector from a 9

#### Least squares

For homework consider the points (0,0), (1,2), (2,3), (3,9), ( 4,17), (5,24), (6,37). (1) Use Matlab to find the least squares best fit with a line.  Turn in A, y and c and a

#### Calculate natural frequency and damping ratio

Set up the quasi-steady equations of motion for a pitching and plunging 2D flat plate. Calculate natural frequency and damping ratio. Plot the variation of the natural frequen

#### Generate a sample of the exponential distribution

MS455/MS555 Project - Simulation in Finance. Use the inverse transforms method to generate a sample of the exponential distribution with parameter θ, which is given by its de