INTRODUCTION

Mathematical modeling is a powerful tool in the development, study, and optimization of real technological processes. There are a large number of available software products for the simulation of technological processes that make it possible to build and explore various process flow diagrams. Today, the Aspen Plus software (developed by AspenTech©) is a leader in the field of modeling technological processes of various industries.

Currently observed tightening of requirements for the quality of substances produced by the chemical industry creates a trend towards the development of new technologies and the optimization of existing technologies [1]. In the field of gas separation, especially in the production of high-purity gases, a technology based on membrane gas separation can be considered as an attractive alternative to conventional, energy-intensive processes [2]. The separation of gas mixtures with the use of membranes is provided by the physicochemical properties of the material, the process conditions, and the technological parameters. This process can be carried out at room temperature in the absence of phase transitions, and the hardware design is characterized by simplicity and easy scalability. A variety of studies devoted to the development of new materials and processes have been reported, which show the promise held by this approach to solution of the problems of natural gas purification [3], ammonia recovery [4], and deep gas purification [5] and to invention of new nonstationary membrane separation processes [6]. In recent years, membranes have also been used in the developing area of recovery of bioalcohols (bioethanol, biobutanol). The energy-saving membrane vapor separation method provides concentration of bioalcohols to a high level from dilute aqueous alcohol solutions formed in the fermentation process [7]. In this regard, the implementation of a multiparameter mathematical model that takes into account the engineering and physicochemical aspects of the process is an important task.

To fulfill the task, the Aspen Plus software package was chosen, which has broad functionality and is capable to simulate various chemical engineering schemes and complex technological processes, as well as to calculate energy costs and carry out economic calculations. Aspen Plus contains a voluminous database of physicochemical properties and thermodynamic models, which allow prediction of properties for both gaseous mixtures and liquids. With the use of the latest versions of Aspen Plus, it is possible to integrate design schemes created by the user in Excel [8], thereby greatly expanding the possibilities of modeling nonstandard blocks of the process scheme. Also, custom models made in other software products can be integrated into Aspen Plus. There are examples in the literature of using the software platforms MATLAB [9] and FORTRAN [10] to create a custom model with its subsequent export to Aspen Plus.

Currently, Aspen Plus does not contain a ready solution for modeling mass transport processes in membrane gas separation devices; however, the software company (AspenTech©) provides, among other things, the Aspen Custom Modeler (ACM) modeling tool that focused on creating mathematical models of its own, which can be used to design a custom membrane block. The advantage of the model created in ACM is the ease of exporting and binding it to Aspen Plus, after which it can be used in the same way as other models already available in the Aspen Plus library.

In this study, a gas separation membrane module was created in the ACM program and exported to Aspen Plus for further work. The created block can simulate the operation of a gas separation membrane apparatus in three modes: crossflow, direct flow, and countercurrent flow. For each of the modes, a mathematical model of its own is used. The membrane block is connected to all Aspen Plus thermodynamic packages and can be used not only to calculate the membrane process, but also to work in combination with other processes.

MATHEMATICAL MODEL OF MEMBRANE MODULE

The transfer of gases and vapors through nonporous polymeric materials is described in terms of the solution–diffusion mechanism [11]. To calculate mass transport in the membrane module (Fig. 1), the following equations were used:

Fig. 1.
figure 1

Schematic of mass transport in a membrane module for the countercurrent mode.

—change in a component flux upstream of the membrane:

$${{J}_{i}}(x + \Delta x) = {{J}_{i}}(x) - J_{i}^{M}(x),$$
((1))

—change in a component flux downstream the membrane:

$$J_{i}^{'}(x + \Delta x) = J_{i}^{'}(x) - J_{i}^{M}(x),$$
((2))

—component flux through the membrane:

$$J_{i}^{M}(x) = {{Q}_{i}}B\Delta x\Delta {{p}_{i}}(x),$$
((3))

driving force for the transport of a component across the membrane:

$$\Delta {{p}_{i}}(x) = p{{c}_{i}}(x) - p{\text{'}}c_{i}^{'}(x),$$
((4))

—mole fraction of the component upstream of the membrane:

$${{c}_{i}}(x) = \frac{{{{J}_{i}}(x)}}{{\sum\limits_i {{{J}_{i}}(x)} }},$$
((5))

—mole fraction of the component downstream of the membrane:

$$c_{i}^{'}(x) = \frac{{J_{i}^{'}(x)}}{{\sum\limits_i {J_{i}^{'}(x)} }},$$
((6))

—boundary conditions:

$${{J}_{i}}(0) = {{J}^{F}}c_{i}^{F},$$
((7))
$$J_{i}^{'}(L) = 0,$$
((8))

—outlet fluxes:

$${{J}^{R}} = \sum\limits_i {{{J}_{i}}(L)} ,$$
((9))
$${{J}^{P}} = \sum\limits_i {J_{i}^{'}(0)} .$$
((10))

In this study, a plate-and-frame membrane module was chosen as the object of simulation. This type of module was designed by Stern [12] and was intended for the recovery of helium from natural gas on an industrial scale. The design of the module is similar in configuration to that with flat sheet membranes, which are often used in laboratory experiments in primary research. The module consists of flat sheet membranes sandwiching a spacer made from drainage material [13]. With this design of the module and the feed stream composition, the crossflow rate becomes the main parameter that determines the mass transport in the module.

In the study we considered three operating modes of the membrane module: direct flow, countercurrent flow, and crossflow. Mathematical models of mass transport for all operation modes are based on the following assumptions: isothermal conditions, the absence of a pressure gradient in the channel along the membrane, ideal gas behavior of components, and constancy of membrane permeability. In the cases of direct and countercurrent flows, the plug-flow mode is realized in the feed and permeate channels; whereas the plug-flow mode for crossflow operation is realized in the feed channel and the flow direction is perpendicular to the membrane in the permeate channel.

CREATING A MODEL OF MEMBRANE GAS SEPARATION BLOCK IN ASPEN CUSTOM MODELER

The principle of building a model in ACM is based on writing equations describing the behavior of components or their characteristics in the system under consideration, for example, material balance equations, and any necessary additional conditions (for example, boundary conditions). In the course of building a model, a certain sequence of actions is observed. Work on model building begins with the definition of all parameters and variables involved in the model. Aspen Custom Modeler has its own extensive database of parameters and variables that can be selected in the user interface. Next, mathematical equations are written, which, as a rule, describe the material and heat balances. The order of the description of a variable or parameter can be studied in the ACM assistant. To solve the equations, ACM uses metric units (basic units of measurement); therefore, the user must ensure that the variables, parameters, and coefficients in the model equations are written in basic units. However, the user can select the units for the variables that are displayed in the graphical user interface. This means that the values displayed in graphs and tables are automatically displayed in the current unit of measurement, and the values input into forms are automatically converted to basic units of measurement. After entering the information about the parameters and variables and spelling out mathematical equations, streams are connected to the model; in the given case, the block has three streams: feed stream as the inlet stream and the retentate and permeate as outlet streams. In ACM, streams are denoted through ports in which parameters and variables that carry information, such as flow temperature, pressure, stream component composition, and energy characteristics (not considered in this paper), are built. After the complete information is defined, the model can be tested. To do this, the compiler built into ACM is run, which starts the calculation according to the described model. At this stage, ACM can identify errors resulting from building the model. Table 1 lists the parameters necessary for the calculation of the custom model.

Table 1.   Parameters necessary for calculating the model

To build a process flowchart using the created block, the user must have the ACM file in which the model was created. To export a model from ACM to Aspen Plus, it is also necessary to have a C++ compiler (Visual C ++ package from Visual Studio©) [14]. In order to add the custom block (Fig. 2) to the Aspen Plus library, it is necessary to enable the option of export to ACM and then run the import option for this model in Aspen Plus. Further, the custom model can be used in the same way as any other elements already available in the Aspen Plus library.

Fig. 2.
figure 2

Scheme of operation of the ACM user block in Aspen Plus.

COMPARISON OF CALCULATION RESULTS IN ASPEN PLUS WITH EXPERIMENTAL RESULTS

The calculation block developed was tested on the basis of comparison of the calculated separation characteristics with available experimental data for the following two cases:

—comparison of the calculation results with the experimental data obtained upon the separation of the ternary H2O/EtOH/N2 (13.3/5.5/81.2 mol %) vapor–gas mixture [15] simulating the stream from the stripping column used in ethanol recovery from fermentation broth by membrane vapor permeation in a laboratory plate-and-frame membrane module, with the module operating in the countercurrent mode (the experimental part is detailed in [16]);

—comparison of the calculation results with experimental data obtained upon the separation of a binary N2/CH4 (99/1 mol %) [6] gas mixture simulating a stream with a low concentration of easily penetrating impurity component using a radial membrane module, with the module operating in the countercurrent mode.

The comparison showed that in the case of separation of the ternary vapor–gas mixture, the calculated values for the concentrations of the components in the retentate and permeate streams are basically close to the experimental values (Table 2). However, a noticeable deviation is observed for some of them, which can primarily be due to the influence of longitudinal mixing in the membrane module channels (due to the presence of the net spacer) and is not taken into account in mathematical models used for calculation.

Table 2.   Comparison of experimental with calculated results

In the case of the removal of the easily permeable impurity component from the binary gas mixture, it was found that the calculated CH4 concentration in the retentate is noticeably lower than the experimental one, especially at low feed flow rates (high stage cuts, Figs. 3, 4). This is apparently due to the influence of the longitudinal mixing of components in the membrane module channels because of a long residence time of the feed upstream of the membrane (tens of seconds), since the diffusion reduces the separation characteristics of the membrane apparatus, a change that is especially noticeable upon the removal of impurities and is not taken into account in mathematical models used for the calculation.

Fig. 3.
figure 3

Dependence of the CH4 concentration in the retentate on the feed flow rate.

Fig. 4.
figure 4

Dependence of the stage cut on the feed flow rate.

In general, the obtained give evidence for the adequacy of the mathematical models used in the gas separation membrane block developed; the block can be used to build process flowcharts and analyze the characteristics of separation processes.

CONCLUSIONS

A membrane gas separation unit operating in various modes has been developed in the Aspen Plus environment for calculating membrane gas separation processes. The model built is convenient to export to the Aspen Plus library, thereby greatly expanding the capabilities for modeling various processes. The developed unit makes it possible to perform calculations on both gas separation and vapor separation membrane processes. The user is given the opportunity to select the module operation mode for solving a particular separation task. A comparison of the results has shown that the calculated data are close to the experimental data, confirming that the block can be used for modeling membrane gas separation processes.

LIST OF SYMBOLS

B membrane module width, m

J flow rate upstream of membrane, mol/s

J ' flow rate downstream of membrane, mol/s

L membrane module length, m

p pressure upstream of membrane, kPa

p' pressure downstream of membrane, kPa

Q permeability, mol/(m2 s kPa)

с mole fraction

x longitudinal coordinate

SUB/SUPERSCRIPTS

F feed

i component

M membrane

P permeate

R retentate