Smoothed Dissipative Particle Dynamics (SDPD) model for multiphase and thixotropic fluids implemented in LAMMPS.
An extended version of the standard SDPD model in LAMMPS (Jalalvand et al. 2021), including:
a) Update non-slip in flat wall: This update included the option for a non-slip boundary condition in a flat wall as described in Bian and Ellero 2012. The correction can be turned on and off using the variable slip[k][l], where the index corresponds to the type of particles k and l. Thus, a fluid particle type k can interact with a non-slip bc with a wall particle type l.
b) Update MF: This updated multiphase (mf) version is based on the description presented in Lei et al. 2016 (10.1103/PhysRevE.94.023304), including a pair-force contribution between particles.
c) Transient viscosity model: This update includes a thixotropic (viscosity transient) model to simulate complex multiphase flows
This SDPD extension must be compiled in the 21-Nov-2023 release of the open source LAMMPS (Large-scale Atomic/Molecular Massively Parallel Simulator).
The installation process and build flags are detailed step by step below.
-
Download and unzip the .tar.gz file “lammps-21Nov23.tar.gz” found in this repository.
-
Replace the following files with the files from the .tar
atom.cpp
atom.h
atom_vec.cpp
atom_vec.h
fix_sph.cpp
fix_sph.h
-
Copy the files pair_sdpd_taitwater_isothermal_mf.cpp and pair_sdpd_taitwater_isothermal_mf.h in the folder "DPD-SMOOTH"
-
In the same folder, locate the “Install.sh” file. Include these two lines to indicate that you are going to install a new dependency:
action pair_sdpd_taitwater_isothermal_mf.h
action pair_sdpd_taitwater_isothermal_mf.cpp
-
LAMMPS must be compiled with the SPH and SDPD package enabled. To activate it, located in the “src” folder type:
make yes-SPH
make yes-DPD-SMOOTH
-
LAMMPS must be compiled using MPI support. Located in the “src” folder type:
make pu
make mpi
-
Run a numerical example to verify the installation. Copy any example to your local folder and, once located in the case folder, type:
lmp_mpi <in.sdpd_phase.2d
In the folder called “Numerical examples” you will find a collection of all the numerical cases covered in this research. Detailed information on each case and how to run them can be found in the README file in each example folder. The complete list of cases studied is detailed below:
- Surface tension of a droplet - Used for static validation - See Figure 1_(a)
- Retraction of a stretched droplet - Used for static validation - See Figure 1_(b)
- Static contact angle between droplet and solid wall - Used for static validation - See Figure 1_(c)
- Triple contact angle between three diferents droplets - Used for static validation - See detail in Figure 1_(c)
- Poiseuille flow for one phase - Used for dynamic validation - See Figure A.14_(a) and A.14_(d)
- Reverse Poiseuille flow for one phase - Used for dynamic validation - See Figure A.14_(b) and A.14_(e)
- Flow around a cylinder - Used for dynamic validation - See Figure A.14_(c) and A.14_(f)
- Poiseuille flow for two phases - Used for dynamic validation - See Figure 2_(a)
- Taylor deformation vs capillary number - Used for dynamic validation - See Figure 2_(b)
- Droplet break-up - Used for dynamic validation - See Figure 2_(c)
- Thixotropic shear flow in a channel - Used for thixotropic validation - See Figure 3_(a) and 3_(b)
- Liquid-Liquid Phase Separation (LLPS) - First exploratory case - See Figure 6 and 7
- Poiseuille flow for two phases with one thixotropic phase - Second exploratory case - See Figure 8
- Emulsion with thixotropic continuous phase and newtonian droplets - Second exploratory case - See Figure 9
- Emulsion with newtonian continuous phase and thixotropic droplets - Second exploratory case - See Figure 10
- Droplet dynamics in a periodically constricted channel - Third exploratory case - See Figure 11 and 12
- Droplet merging using micro-devices - fourth exploratory case - See Figure 13
