In this study, we introduce a new non-equilibrium molecular dynamics simulation method to perform simulations of concentration driven membrane permeation processes. The methodology is based on the application of a non-conservative bias force controlling the concentration of species at the inlet and outlet of a membrane. We demonstrate our method for pure methane, ethane and ethylene permeation and for ethane/ethylene separation through a flexible ZIF-8 membrane. Results show that a stationary concentration gradient is maintained across the membrane, realistically simulating an out-of-equilibrium diffusive process, and the computed permeabilities and selectivity are in good agreement with experimental results.

Introduction

Membrane separations of mixtures are economically significant processes widely used in petrochemical, pharmaceutical, biomedical, food and water treatment industries.1 Water desalination technology, for example, is one of the major application areas of industrial membranes. Worldwide water desalination plants process nearly 70 million cubic meters per day2 and membrane-based processes account for more than 60% of the entire water desalination market.3 Another application area for membranes is gas separation. Hydrogen recovery, air separation, CO2 separation, natural gas sweetening, alkane–alkene separation are examples of important industrial processes where membrane based separation technologies are eminently utilized.4,5 A significant example of commercial application of membranes in gas separation is an 830000 Nm3 h−1 system provided by Cynara-NATCO for the separation of CO2 from natural gas operating on an offshore platform located in the Gulf of Thailand.6

Polymers, carbon molecular sieves and zeolites are materials commonly used in commercial membranes.4,5 On the other hand, ongoing research in materials science and chemistry have provided new candidate materials to manufacture membranes; such as metal–organic frameworks (MOFs),7 carbon nanotubes8 (CNTs) and graphene oxide.9

Developing novel membranes for a specific separation is a challenging task and requires a detailed understanding of the complex transport mechanisms down at the nanometer scale. Molecular dynamics (MD) is a simulation method which can be used to understand such complexities with atomic resolution. Classical MD simulations unveils the interactions between molecules at the atomistic level by exploiting empirical force fields.10

Membrane separations are peculiarly a non-equilibrium process and this should be considered in membrane simulations. A variety of approaches have been used to impose non-equilibrium conditions in MD simulations to investigate membrane separations. In principle, an exact solution to impose non-equilibrium conditions during an MD simulation of a membrane process is the so-called dual control volume grand canonical molecular dynamics (DCV-GCMD) technique.11 This is a hybrid Monte-Carlo (MC) and MD method which defines two control volumes at the feed and permeate sides of the membrane and keeps the chemical potential in these control volumes fixed by employing insertion and deletion of the fluid molecules. This simulation technique was utilized in many studies of different membrane systems; such as simple slit-shaped micropore,12 porous silica membranes13 and carbon molecular sieve membranes.14 However, DCV-GCMD method doesn't work efficiently for dense fluids due to the extremely low acceptance rates for the insertion and deletion of the molecules. Moreover, according to Ható et al.15 coupling MC moves with MD can be problematic since the ratio of insertion/deletion steps vs. MD steps should be optimized in order to perform a reliable simulation.

Another common approach for imposing non-equilibrium conditions in MD simulations is placing impermeable moving walls in a simulation box and exerting a constant force on them to create a piston effect. For instance, Wang et al.16 studied water transport through CNT membranes by placing two moving walls at opposite ends of the simulation box. By applying two forces in opposite directions, a larger force on the feed side wall and a smaller force on the permeate side wall, they created a pressure gradient and pushed the water molecules through pores of the CNT membrane. The same authors applied a similar approach for polyamide membranes17 to study water transport. In another recent study, Shen et al.18 applied the moving wall approach to explore the potential of polymeric FT-30 membranes for reverse osmosis. Hu et al.19 and Gupta et al.20 used the moving wall approach to investigate water desalination in zeolitic imidazolate frameworks (ZIFs). In another study, Gupta et al.21 used a modified moving wall approach to investigate desalination in five different ZIFs in a pervaporation membrane setting. On the feed side, a force was applied on an impermeable wall to push the saline water through the membrane, and at the end of the permeate side of the simulation box a fixed wall was placed to create a vacuum effect which interacted with the fluid molecules through a strong attractive force. In non-equilibrium MD (NEMD) simulations which use one or more moving impermeable walls, a disadvantage is that the simulation length is limited by the number of molecules placed on the feed side. This is because the simulation practically generates no information once all the fluid molecules which can diffuse through the membrane are pushed to the permeate side by the moving wall. We will call this a “feed depletion” problem. Another shortcoming of using an impermeable wall to push fluid molecules through a membrane is that it is not possible to keep the concentration of species fixed if the simulation involves a mixture. This is because the concentration of the less diffusive species will increase on the feed side as the mixture is pushed towards the membrane by the impermeable wall. In order to address the feed depletion problem in an NEMD membrane simulation which uses impermeable walls, Cabrales-Navarro et al.22 considered deleting a certain number of molecules from the permeate side and adding them to the feed side at regular intervals (every 50 ps in their work). While this approach addressed the feed depletion issue, the transfer of molecules from one side to another side essentially precludes the possibility of running a steady state simulation.

Another way of imposing non-equilibrium conditions for an MD membrane simulation is to apply a continuous external force on the molecules (steered-molecular dynamics) along the direction perpendicular to the membrane and with periodic boundary conditions in all directions so that feed depletion can be avoided. Using this method Zhu et al.23 investigated the transport of water through a biological membrane. This ensured the circulation of molecules in the permeate side back to the feed side through the periodic boundary. Ding et al.24 used a similar approach to investigate the water desalination performance of a polyamide polymer membrane. On the other hand, this method does not provide a way for controlling the concentration of species in the case of a mixture simulation. Moreover, applying an external force all over the simulation box requires care because if the bias exceeds a critical level then thermostat or barostat algorithms can fail to do their job due to fictional increase of particle velocities.15 To address this concern, in their study of gas permeation through slit pores, Frentrup et al.25 restricted the external force in to a considerably small region in the simulation box (boundary-driven NEMD) in attribution to the position of the small force region placed at the boundary of the simulation box. The same authors extended their method to investigate single gas permeation of CO2 and He through a PIM-1 polymer membrane.26 Even though their methodology allows the circulation of fluid molecules between the permeate and feed sides to ensure a continuous simulation, it does not provide any control over the density of fluids at the inlet and outlet of the membrane. To address the shortcomings of previous methods Ható et al.15 proposed a methodology which was essentially a combination of the method of Frentrup et al.25 and of the DCV-GCMD method of Heffelfinger et al.,11 thus again requiring the coupling of MC and MD algorithms. All the methods we summarized above served to the purposes they were developed for and deserve credit; however, none of them provide a platform for running a steady state and continuous simulation for a mixture across a membrane without involving a hybrid MC and MD approach.

In this study, we present a new NEMD method which allows the simulation of permeation of a mixture kept at a fixed composition through a membrane and avoids the feed depletion issue without the need for coupling an MC scheme. The proposed method builds on CμMD, a recent technique developed to model crystal growth in solutions at constant chemical potential by using a nonconservative force.27 In our new NEMD method we use self-adjusting bias forces to control the mixture composition in selected regions of the simulation box in order to continuously enforce a concentration difference between the inlet and outlet of the membrane. This method has two main advantages over the previously implemented methodologies; first, it is completely deterministic since no stochastic move like particle insertion–deletion is needed, and second, it allows us to perform simulations of mixture permeation through membranes at fixed feed composition.

We first explain the new methodology and then demonstrate it by simulating permeation of pure methane (CH4), ethylene (C2H4) and ethane (C2H6) through a zeolitic imidazolate framework-8 (ZIF-8)28 membrane, and by applying it for the separation of an equimolar ethylene/ethane mixture, again in a ZIF-8 membrane. We chose the separation of ethylene from ethane due its paramount importance. Market data confirm the necessity of this separation; the demand of ethylene as feedstock in chemical industry for production of rubbers, plastics and other valuable chemical products is almost 25 trillion tons per annum and the biggest portion of ethylene comes as by-product of oil refineries in the form of a mixture of ethane/ethylene.29 On the other hand, this is an extremely difficult separation due to the fact that the kinetic diameters of ethylene (4.16 Å) and ethane (4.44 Å) are very close to each other.30

Models & computational details

Concentration gradient driven molecular dynamics

The diffusive transport of fluids across membranes is an intrinsically non-equilibrium process. To faithfully reproduce this fact in our modelling, we aim to carry out simulations in which a steady state concentration gradient is maintained between the two sides of the membrane surrounded by a fluid, pure or a mixture. To this aim here we introduce two separate control regions, inlet control region (ICR), located on the feed side of the membrane, and the outlet control region (OCR), on the permeate side of the membrane (Fig. 1). The control regions and the membrane are separated by two transitions regions; inlet transition region (ITR) and the outlet transition region (OTR). The concentrations in the ICR and OCR are controlled by applying on the fluid molecules two separate external forces which are localized in two regions, the inlet force region (IFR) and outlet force region (OFR), which are adjacent to ICR and OCR, respectively. The external forces are perpendicular to the membrane surface and regulate the flux of molecules across the IFR (and OFR) in order to restrain the concentration in the ICR (and OCR) to a selected target value. This makes it possible to impose two different concentrations in the inlet and outlet control region, where the forces are defined by the following equations:

FIi = kIi(nT,Ii − nICRi)GI(z − ZIF,w)

(1)

FOi = kOi(nT,Oi − nOCRi)GO(z − ZOF,w)

(2)

where i indicates the fluid species subject to F, the superscripts I and O refer to inlet and outlet, respectively, kIi and kOi are force constants, nT,Ii and nT,Oi are target concentration on the feed and permeate side of the membrane, and nICRi, nOCRi are the instantaneous concentrations in the ICR and OCR respectively. GI and GO are two bell-shaped functions of width w, centred in ZIF and ZOF respectively, these latter indicating the z coordinate of the IFR and OFR. Therefore GI and GO serve the purpose of localising the application of the bias force within the IFR and OFR, respectively. nICRi and nOCRi are calculated as:

(3)

where VCR is the volume of control region, Ni is the total number of molecules of species i in the simulation box and θ(zj) is a selection function defined as:

(4)

where zj is the z coordinate of a fluid molecule. We note that the direction (sign) of the force, Fi, in eqn (1) changes in such a way that if the number of molecules in a control region is larger than the target value then the force repels molecules from the control region towards the bulk, and if it is smaller, then the force attracts the molecules from the bulk to the control region. The value of the force constant, ki, is instrumental in achieving the target density in the control regions and needs to be tuned (see Table S1 and Fig. S1†). We underline that, in order to establish a steady state concentration gradient, the use of periodic boundary conditions (PBCs) along the z direction is crucial. Indeed, as the molecules permeate through the membrane, they can flow from the outlet of the membrane back to the inlet region, establishing a stationary flux. A detailed discussion of eqn (1) & (2), as well as the definition of G, can be found in the work of Perego et al.27

Fig. 1 Conceptual representation of the concentration gradient driven MD method. Red line demonstrates an arbitrary concentration profile. Dashed line shows the boundaries of the simulation box. Fluid molecules return to feed side from the permeate side through the periodic boundary (shown with the two-way arrows).

Simulation details

In order to demonstrate our method ZIF-8 was chosen to construct the membrane model in our simulations. ZIF-8 is formed by the assembly of Zn metal atoms and methyl imidazole bridging ligands. It has a sodalite topology with unit cell dimensions a = b = c = 16.991 Å, a pore diameter of 11.6 Å, and a pore aperture of 3.4 Å. The membrane was constructed by replicating the ZIF-8 unit cell by 2 × 2 × 5 in the x, y, and z directions, respectively. Zinc atoms at both ends of the membrane were removed and dangling nitrogen atoms were terminated by hydrogens. The dimensions of the resulting membrane were Lx = Ly = 3.3982 and Lz = 8.4955 nm (Fig. 2). The membrane was placed in the centre of a simulation box which is 28.4955 nm in the z directions and with dimensions equal to the membrane in the x and y directions.

ZIF-8 membrane was modelled as a flexible structure using the force field recently developed by Krokidas et al.31 Since in their work a continuous periodic structure of ZIF-8 was studied partial atomic charges for surface atoms were not present. We calculated the charges for the dangling nitrogen atoms and the hydrogens used for terminations by performing quantum chemical calculations on a cluster isolated from ZIF-8 and scaling the charges reported by Krokidas et al.31 accordingly. Bond stretching, bond bending and torsional energy parameters for these surface atoms were taken from GAFF32 force field. In order to prevent drifting of membrane in the z direction due to the concentration gradient, membrane atoms within the first 4 Å of the membrane at both ends were tethered to their initial positions.

Methane, ethylene and ethane were modelled using the TraPPE force field.33 In this force field a carbon atom and the hydrogens bonded are treated as a united atom. Hence, methane was represented as a single united atom (CH4), ethylene consisted two CH2 united atoms and ethane two CH3 united atoms. The bond between the united atoms in ethylene and the ethane were rigid as defined in the TraPPE force field. Lorentz–Berthelot mixing rules were applied between unlike atoms. The cut-off distance for Lenard-Jones interactions was set at 12 Å. The electrostatic interactions were computed using the particle mesh Ewald (PME) method and for the real part of the Ewald sum the cut-off distance was set to 12 Å.

The permeations of 4 different systems through the ZIF-8 membrane were simulated. These were pure methane, ethylene and ethane, and an equimolar mixture of ethylene and ethane. MD simulations were performed with GROMACS 5.1.2 software34 in the NVT ensemble. Temperature was kept constant at 300 K using a Nose–Hoover thermostat. A time step of 1 fs was used and PBCs were applied in all directions. Simulations were first equilibrated for at least 10 ns followed by 40 ns production runs. Simulation data including the trajectory were saved every 500 steps (0.5 ps). Standard deviations of the ensemble averages were computed by breaking the production runs into 5 blocks.

A private version of PLUMED 2.2.2 plugin35 was used to apply the bias forces, FIi and FOi, in order to control concentrations in ICR and OCR. Target concentration in the ICR was set to a molecular density which corresponds to the total feed pressure (which varied between 2 to 40 bars in our simulations) based on the pressure/density data from the NIST database.36 The target concentration in the OCR was set to 0 to create a vacuum effect on the permeate side in all simulations. Here we note that in MD simulations of membranes creating a vacuum effect is a challenging task as also mentioned by others.15,21 To create the vacuum effect, a larger outlet force constant, kOi, was used compared to the inlet force constant, kIi. The values of parameters used in eqn (1) & (2) and the locations of the force and control regions are given in Table S2.†

The flux due to concentration difference in the z direction, Jz, was calculated by counting the number of molecules which passed through a plane at the centre of the membrane and dividing that by the production simulation time, t, and the cross sectional area of the membrane, Axy,25

(5)

where Ni+ and Ni− denote the number of molecule species i that have passed the plane in positive and negative directions, respectively. Permeability, Π, was calculated according to the following formula

(6)

where lmem is the membrane thickness in the z direction and ΔP is the difference in the pressures of the fluid in ICR and OCR which can be estimated from pressure/density data.36

In order to generate initial configurations of the fluid molecules in the simulation box, prior to an MD run we simulated the adsorption of fluid molecules by performing grand canonical Monte Carlo (GCMC) simulations using RASPA37 molecular simulation package. In the grand canonical ensemble temperature, volume and chemical potential of the species are fixed. GCMC simulations were performed at 300 K and at a total pressure which is the average of pressures corresponding to the target densities of the fluid in the ICR and OCR of the MD simulation box. For instance, for 40 bar feed pressure and 0 bar permeate pressure GCMC simulation was performed at 20 bar. We found that this provides a good starting configuration for MD simulations to reach steady state quickly (Fig. S2†). GCMC simulations included 105 cycles for initialization and 105 cycles for production, where each cycle is N steps. N is equal to the number of molecules present in the system. For single component methane GCMC simulations, swap moves (insertion/deletion) between the bulk and adsorbed phases, translation and reinsertion moves were sampled. For ethylene and ethane simulations a rotation move was added to the above list. For the ethylene–ethane mixture simulation an identity exchange move between the species was also sampled. All moves were sampled with equal probability.

Results and discussion

Permeation of pure methane, ethylene and ethane

In Fig. 3 we report the variation of concentrations in ICR and OCR for pure methane, ethylene and ethane as a function of simulation time. In these simulations the target concentrations in ICR were set to the molecular density of the fluid at 40 bar (feed pressure). In all cases concentration of the species are stable and fluctuate around an average value. The average concentrations calculated for ICR and OCR are given in Table 1 for each fluid. For the inlet the standard deviations are very small in comparison to the average concentrations, which demonstrate excellent control of the concentration in ICR. The relatively high fluctuations in OCR with respect to the average values indicates the difficulty of controlling the concentration at very low target values (see Fig. S3† for OCR concentration data plotted on a smaller scale). However, such fluctuations are actually insignificant because the number of molecules present in the OCR at any time is extremely small due to the vacuum effect. For instance, for methane, 14.7 mol m−3 (Table 1) corresponds to only 0.26 molecules in the whole ICR volume (28.9 nm3).

Fig. 3 The variation of inlet (black lines) and outlet (red lines) concentrations for (a) methane, (b) ethylene and (c) ethane as a function of simulation time in production runs. The instantaneous values are represented with faded colour, while the full-colour curves are moving averages obtained with a characteristic smoothing time of 0.5 ns.

Table 1The average concentrations in ICR and OCR for methane, ethylene and ethane

aFeed pressures corresponding to the average ICR concentrations from simulations are 40.0 bar for methane, 40.2 bar for ethylene and 39.9 bar for ethane.

Methane

1716 ± 1

14.7 ± 0.3

Ethylene

2202 ± 1

15.2 ± 0.4

Ethane

2810 ± 3

12.2 ± 0.7

The number densities of methane, ethylene and ethane are plotted against the z coordinate of the simulation box in Fig. 4 and it demonstrates how the concentration gradient works along the membrane. These density profiles were obtained by averaging data over the 40 ns production runs. The density of fluid molecules decreases through membrane in an almost linear fashion. Density is higher at the entrance of the membrane (molecules adsorbed by ZIF-8) and it decreases along the z direction of membrane (molecules inhaled by vacuum).

Fig. 4 Concentration profiles of (a) methane, (b) ethylene and (c) ethane molecules along the z coordinate of the simulation box. Dashed lines show entrance and exit points of the membrane (see Fig. S5† for larger figures and the location of FRs, CRs and TRs).

Overall, data for single component permeation simulations shows that our methodology controls the concentration of fluid molecules around a targeted value in specified regions to remarkable accuracy (Fig. 3). We highlight that the bias force acts in a localized region out of the membrane. Permeation is purely due to the diffusive transfer of molecules, driven by the steady difference in concentration maintained across the two sides of the membrane (Fig. 4). It is also apparent from the variation of temperature data that the bias forces applied do not overwhelm the thermostat during the course of the simulations (Fig. S4†).24

In Fig. 5, we show the variation of methane flux (Jz) with respect to concentration difference across the membrane. This was obtained by performing additional MD simulations of methane permeation at 300 K where target concentrations in the ICR were set to molecular densities corresponding to 36 bar, 30 bar, 24 bar, 14 bar, 10 bar, 5 bar, 4 bar and 2 bar, and in the OCR was set to 0. Again the initial positions for the methane molecules were obtained from GCMC simulations which were performed at half of the pressure values given above. The flux initially increases rapidly with increasing concentration difference but then starts levelling-off after about 500 mol m−3 and then reaches a plateau. The initial part is known as the pressure/concentration difference controlled region and the final part where a plateau is observed is known as the mass transfer controlled region.1 Such behaviour was reported experimentally for propane and propylene permeation in ZIF-8 based membranes.38,39

In Table 2, permeabilities of methane, ethane and ethylene from simulations, in which target concentration in ICR for each fluid was set to a density corresponding to 4 bar, are compared against experimental data. Simulated permeabilities are about one or two orders of magnitude larger than those reported by Pan et al.,40 who reported the permeabilities for all three fluids, and those reported by Bux et al.,41,42 in two different studies. But most importantly simulated permeabilities match with the order of experimentally measured permeabilities, that is, Πethylene> Πmethane> Πethane, which is the most important outcome in a computational screening study. Given the simulations were conducted in the molecular scale; the agreement with the order of the experimental results is remarkable.

Equimolar ethylene/ethane mixture separation

We studied the separation of an equimolar ethylene/ethane mixture with a ZIF-8 membrane in order to demonstrate the applicability of the new method for mixture simulations. Besides, to the best of our knowledge, present work is the first simulation study reporting the separation of ethylene/ethane mixture in a flexible ZIF-8 membrane. The target concentrations of ethylene and ethane in the ICR were set to molecular densities so that the corresponding total pressure is 2 bar. Fig. 6 shows the variation of the concentrations of ethylene and ethane in ICR and OCR. Similar to the single component simulations, the concentrations fluctuates around the target values. The average concentrations are given in Table 3. For the inlet side, these correspond to ethylene and ethane mole fractions of 0.48 and 0.52, respectively. Despite the difficulty in controlling concentrations at low target values our method successfully keeps the mixture very close to the equimolar target composition (see Fig. S6† for histogram analyses of instantaneous concentration of ethylene and ethane molecules). Furthermore, we calculated the permeation selectivity, S, for the equimolar ethylene/ethane separation simulation as follows

(7)

where Πi and Πk are permeability of species i and k, and was found to be 2, which compares very well with the experimental selectivity, 2.6, reported by Bux et al.41 at 3.5 bar total feed pressure.

Fig. 6 Variation of inlet (black lines) and outlet (red lines) concentrations for (a) ethylene and (b) ethane for the equimolar mixture as a function of simulation time in the production run. The instantaneous values are represented with faded colour, while the full-colour curves are moving averages obtained with a characteristic smoothing time of 0.5 ns.

Table 3The average concentrations in ICR and OCR for ethylene and ethane in the equimolar mixture simulation

aTotal feed pressure corresponding to the average ICR concentration of the mixture from simulation is 3.15 bar.

Ethylene

61 ± 4

2.9± 0.4

Ethane

66.7 ± 0.8

7.0± 0.2

Conclusions

In this study, we presented a new non-equilibrium MD method, concentration gradient driven MD (CGD-MD), in order to simulate the permeation of pure fluids and mixtures through membranes. The new method works by using bias forces to fix the concentration of fluids at target values at the inlet and outlet of a membrane. This in turn creates a concentration gradient which drives the diffusion of the molecules through the membrane. CGD-MD addresses two main shortcomings of previous NEMD methods used for simulating membrane separation processes in the molecular scale. First, it avoids the feed depletion issue and allows running, in principal, an infinitely long simulation. Second, it maintains the feed composition without the need of any complex MC-MD coupling. We successfully demonstrated our new method for the permeation of pure methane, ethylene and ethane and for the separation of an equimolar ethylene/ethane mixture in a ZIF-8 membrane by predicting the methane, ethylene and ethane permeabilities, and the ethylene/ethane selectivity in very good agreement with the experimental data. Given its predictive success, CGD-MD can be an invaluable tool to computationally screen new and existing materials for membrane separation processes.

In our simulations, pure or mixture, CGD-MD maintained the concentration of species at their target values in the denser feed side to a remarkable accuracy. Based on this, we expect that CGD-MD will perform very well for dense phases. Indeed, a preliminary simulation of pure liquid water permeation through the ZIF-8 membrane clearly demonstrates that our method works for such systems with a great accuracy (Fig. S7, Table S4†). Therefore, our future work will include separations in liquid phase where DCV-GCMD method is known to struggle.

Acknowledgements

A. O. has been supported by the Scientific and Technological Research Council of Turkey (TUBITAK). The authors acknowledge the use of the University College London Legion High Performance Computing Facility (Legion@UCL), and associated support services, in the completion of this work. M. P. and C. P. acknowledge the VARMET European Union Grant ERC-2014-ADG-670227 and the National Centre of Competence in Research MARVEL.