What is the Most Useful Software in Chemical Engineering? The List of Most Important Calculation Tools
The field of chemical engineering is in constant change, so are available calculation tools and software packages. In fast everyday life, it is a considerable challenge for a chemical engineer to know which tool can serve best for solving a certain problem.
The different packages can be applied to solve typical problems in mass and energy balance, fluid mechanics, heat and mass transfer, unit operations, reactor engineering, and process and equipment design and control.
In this article, we highlight the most important tools and packages with their capabilities, based on the available professional experience of an author, available literature and discussions.
The Figure below summarizes the most useful software packages in chemical engineering:
So, let's start from the beginning...
General Software for Mathematical Modeling
Python programming language
Despite starting out as a hobby project named after Monty Python, Python is now one of the most popular and widely used programming languages in the world. Besides web and software development, Python is used for data analytics, machine learning, and even design.
Python is an object-oriented (based around data), high-level (easier for humans to understand) programming language. First launched in 1992, it’s built in a way that it’s relatively intuitive to write and understand. As such, it’s an ideal coding language for those who want rapid development.
Python is a popular and in-demand skill to learn.
MS Excel^{®}
It is a known fact that Microsoft Office Excel is a spreadsheet application that features calculation, graphing tools, tables, and a macro programming language - Visual Basic. The main advantage of Excel is that it is available and is widely used in industry and academia. Thus, it is a perfect tool or interface not only to perform calculations but also to connect different software so that the end user can interact with Excel, and behind the scenes, other software such as CHEMCAD, MATLAB etc. is running and reporting the results back to Excel.
It is best used for:
- Built-In functions & formulas – there are a large number of built-in functions defined, such as statistics (MEAN, AVERAGE, t-test), algebraic (SUM, ROUND, LOG, LOG10), logical (IF, FALSE, etc.), reference, database, and information. Those are easy to use in different kinds of formulas.
- Operations with columns and rows – it is easy to find & sort data and use them in replicated formulas etc.
- Plotting – there is a large number of options depending on the needs
- Solver - It is the tool to use within Excel to solve numerically a set of equations, problem optimization including fitting a set of data to a given linear and nonlinear equation and more. Solver is an add-in that needs to be activated to be used.
- Building functions in Visual Basic for Applications - Excel has built-in capability to generate customized functions using Visual Basic for Applications (VBA). This is a powerful tool that can save time for you without becoming an expert in programming as it opens the possibilities to run loops and conditionals on the background. This capability also allows the user to build relatively large equations that are used in several areas of the worksheet (e.g., polynomials for the esti¬mation of specific heat of components) and allows the user to read the calculations easily when looking at the formulas in the cells.
- Link Excel with other software - Excel has become a standard package so that a number of other specialized software use it as a source of information to report data since it is more user-friendly. Therefore, we can use the information in Excel to be loaded in MATLAB, Hysys or CHEMCAD or transferred back to Excel.
Mathworks MATLAB^{®}
MATLAB is one of the most used software packages in engineering in general and also in chemical engineering. Much has been written about this popular software, more than 1500 books serving more than 1 million users.
MATLAB is a programming language. Its operation is based on the use of .m files that can be divided in two classes, scripts and functions. A script is basically a number of operations that we want to perform in a certain sequence. Functions are a particular type of scripts that must begin with the word “function” at the top of them. Functions can be user-defined or typical operations such as equation solving or differential equations. Within MATLAB, we have all the algebraic, statistical functions predefined along with plotting capabilities.
MATLAB has a number of functions that allow solving linear and nonlinear equations (fzero: for one variable alone, fsolve), optimizing a function (fmincon: constrained optimization, linprog: linear programming; fminin or fminsearch: unconstrained optimization; bintprog: binary and integer optimization), and solving differential equations (ode__) or partial differential equations (pdepe).
Some examples of how MATLAB can be used in chemical engineering include:
- Momentum, Mass, and Energy Transfer - There are a number of examples in the transport phenomena field that, even though represent different phenomena, they can be mathematically described using a partial differential equation, the “pdepe” toolbox.
- Distillation Column Operation - McCabeMethod - typical shortcut approach for the initial conceptual estimation of the operation of binary distillation columns
- Modeling of different kinds of process equipment – heat exchangers, pumps, valves, evaporators, columns, reactors etc.
- Reactor design - The models are based on explicit algebraic equations and differential equations. Thus, we use ODEXX function in MATLAB to solve the concentration, temperature, and/or pressure profiles along the operation of such equipment.
- Control loops analysis, control design and tuning.
Mathworks Simulink^{®}
Simulink® (Simulation and Link ) is a software add-on to MATLAB based on the concept of block diagrams that are common in the control engineering areas. It is an environment for dynamic simulation and process control. Each of the blocks can contain a subsystem inside, which is helpful for big problems. We only need to select a number of blocks and with the right button of the mouse, click and select create subsystem.
Simulink is easier to used for engineers because it does not require any programming skills, therefore models can be build using blocks instead of defining functions.
Process Simulators
The simulation, design, and optimization of a chemical process plant, which comprises several processing units interconnected by process streams, are the core activities in process engineering. These tasks require performing material and energy balancing, equipment sizing, and costing calculation. A computer package that can accomplish these duties is known as a computer-aided process design package or simply a process simulator.
The process simulation market underwent severe transformations in the 1985–1995 decade. Relatively few systems have survived and they inclide: CHEMCAD, Aspen Plus, Aspen HYSYS, PRO/II, ProSimPlus, SuperPro Designer, and gPROMS.
Chemstations CHEMCAD
CHEMCAD is Chemstations’ software suite for process simulation. Features include process development, equipment design, equipment sizing, thermophysical property calculations, dynamic simulations, process intensification studies, energy efficiency/optimization, data reconciliation, process economics, troubleshooting/process improvement, Microsoft Visual Basic etc.
The CHEMCAD suite includes six products that can be purchased individually or bundled as needed for specific industries, projects, and processes.
- CC - steady state simulations of continuous chemical processes, features libraries of chemical components, thermodynamic methods, and unit operations, enabling you to simulate processes from lab scale to full scale. Ideal for Users who want to design processes, or rate existing processes, in steady state.
- CC – dynamics is used to conduct dynamic flowsheet analysis, operability check-out, PID loop tuning, operator training, online process control and soft sensor functionality. Ideal for users who want to design or rate dynamic processes.
- CC-THERM is used for sizing heat exchangers, covers shell-and-tube, plate-and-frame, air-cooled, and double-pipe exchangers. Rigorous designs are based on physical property and phase equilibria data.
- CC-BATCH allows you to design or rate a batch distillation column.
- CC-SAFETY NET - used for analysis of any pipe network with the piping and safety relief network simulation software.
- CC – FLASH – Used to calculate physical properties and phase equilibria (VLE, LLE, VLLE) for pure components and mixtures with incredible accuracy. All products within the CHEMCAD suite feature CC-FLASH capabilities.
ASPEN HYSYS & ASPEN PLUS
Two similar software packages with all the functionalities that process simulator should have are also the most widespread among chemical engineers. AspenTech has a wide portfolio of modeling tools, among them most important and most known are process simulation tools Aspen Hysys and Aspen Plus.
Aspen HYSYS (or simply HYSYS) is a chemical process simulator used to mathematically model chemical processes, from unit operations to full chemical plants and refineries. HYSYS is able to perform many of the core calculations of chemical engineering, including those concerned with mass balance, energy balance, vapor-liquid equilibrium, heat transfer, mass transfer, chemical kinetics, fractionation, and pressure drop. HYSYS is used extensively in industry and academia for steady-state and dynamic simulation, process design, performance modeling, and optimization.
Aspen Plus is a process modeling tool for conceptual design, optimization, and performance monitoring for the chemical, polymer, specialty chemical, metals and minerals, and coal power industries. It can also be used for mass and energy balances, physical chemistry, thermodynamics, chemical reaction engineering, unit operations, process design and process control.
In general, it can be said that Aspen Plus is better tool for chemical process design such as fine chemistry, chemicals, pharma, etc., whilst HYSYS is best for hydrocarbon, petrochemical, petroleum operations such as natural gas, liquified gases, crude oil etc…
DWSIM - an open source process simulator
DWSIM is an open-source CAPE-OPEN compliant chemical process simulator for Windows, Linux and macOS. DWSIM is built on top of the Microsoft .NET and Mono Platforms and features a Graphical User Interface (GUI), advanced thermodynamics calculations, reactions support and petroleum characterization / hypothetical component generation tools.
DWSIM is able to simulate steady-state, vapor–liquid, vapor–liquid-liquid, solid–liquid and aqueous electrolyte equilibrium processes with the following Thermodynamic Models and all mojor Unit Operations.
For an open sourse tool, it is a quite advanced and great support for engineers.
Specialized Software
Computational Fluid Dynamics
Computational fluid dynamics, known as CFD, is the numerical method of solving mass, momentum, energy, and species conservation equations and related phenomena on computers by using programming languages.
CFD and multiphysics modeling and simulation can be applied to many science and engineering disciplines. The main areas in chemical engineering are the following:
- Combustion processes,
- Food process engineering,
- Fuel cells, batteries, and supercapacitors,
- Microfluidic flows and devices,
- Pipe flows and mixing,
- Reaction engineering.
The basics of CFD are partial differential equations and thus knowledge of numerical mathematics is essential to solve them with appropriate numerical technique.
Since these conservation equations are designed and solved on computers, knowledge of programming languages, such as FORTRAN, C++, Java, or MATLAB is equally important.
CFD-based software modeling tools, popular in scientific and engineering communities, are ANSYS CFX, ANSYS Fluent, ANSYS Multiphysics, COMSOL Multiphysics, FLOW-3D, STAR-CD and STAR-CCM+, and an open-source software tool OpenFOAM. Other CFD-based software tools, such as AVL FIRE or ANSYS Polyflow, are also available on the market, but they are specialized for particular physical systems, such as internal combustion engines, power trains, polymers, glass, metals, and cement process technologies.
The most widely used commercial software tools, such as ANSYS Fluent, STAR-CD, and STAR-CCM+, are based on finite volume method, whereas ANSYS CFX uses finite element-based control volume method. On the other hand, COMSOL Multiphysics is based on finite element method.