Skip to content

Fluid-particle coupling for multiphase flow based on PhasicFlow and OpenFOAM

License

Notifications You must be signed in to change notification settings

PhasicFlow/PhasicFlowPlus

Repository files navigation

.

PhasicFlowPlus is a software package for simulating fluid-particle flows. It is a combination of computational fluid dynamics (CFD) and discrete element method (DEM). The fluid is assumed as a continuum phase and the particles as discrete bodies.

Here, DEM calculations are handled using features of PhasicFlow. It is a parallel DEM package that can be run on multi-core CPUs or GPUs. The equations for the fluid phase are discritized based on finite volume (FV) and solved using OpenFOAM. OpenFOAM is parallelized based on MPI for being executed on multicore CPUs. The fluid-particle coupling (PhasicFlowPlus) uses both parallelization methods, shared-memory and MPI, to leverage the maximum computational resoureces.

Based on the above configuration, PhasicFlowPlus can use the computational resources of a multi-core CPU or use the computational resource of both CPU and GPU.

How to build

You need to first install PhasicFlow and OpenFoam (For now, it is only tested with OpenFOAM-v9) on your computer. After that, clone/copy PhasicFlowPlus on your computer. The PhasicFlowPlus folder shoule be located beside phasicFlow folder on your computer (in ~/PhasicFlow/ folder). Navigate to the root directory of the code and enter the following command to install the code.

cd ~/PhasicFlow/PhasicFlowPlus/ 
./Allwmake