Giter Club home page Giter Club logo

flash-separation's Introduction

flash-separation

Flash distillation is a process where a mixture of liquids is partially vaporized by a reduction in pressure. Volatile components will be preferentially vaporized, allowing the mixture to be separated. (Flash distillation is analogous to a single tray of a distillation tower.)

Simple diagram of flash distillation

This tool calculates the composition of the output streams of a flash distillation, using either the ideal gas law or the Peng-Robinson equation of state. The composition of the inlet streams, as well as the desired temperature and pressure of the outlet, are input, with the outlet compositions output:

Simulator output

Background

The simulator was written as a project for the course CHG 4343 (Computer-Aided Design in Chemical Engineering) by Nick Boileau, Stephanie Lanctot, Joshua Rico, David Schlachter, and Natalie Woszewska. Detailed thermodynamics calculations are implemented, and results have been validated against external implementations.

Simulator output

To run: download 'flash-separation.jar' from Releases tab, and open with Java Runtime at a command line (e.g. java -jar flash-separation.jar).

Development environment: download the project and open 'flash-separation.drjava' in the Dr. Java IDE using 'Project' > 'Open...'. Compile the project, and press 'Run Project' to start the simulation.

Many test cases have been included. These are the classes starting with 'Test_', and their 'test' methods are run when by pressing 'Test Project' in the Dr. Java menubar. If all the tests pass (i.e. assertTrue boolean statements return true), then all the tests will appear in green in the 'Test Output' tab. Test cases cover all aspects of the program, including validated solutions to the thermodynamics equations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.