Giter VIP home page Giter VIP logo

phasicflow's Introduction

PhasicFlow is a parallel C++ code for performing DEM simulations. It can run on shared-memory multi-core computational units such as multi-core CPUs or GPUs (for now it works on CUDA-enabled GPUs). The parallelization method mainly relies on loop-level parallelization on a shared-memory computational unit. You can build and run PhasicFlow in serial mode on regular PCs, in parallel mode for multi-core CPUs, or build it for a GPU device to off-load computations to a GPU. In its current statues you can simulate millions of particles (up to 80M particles tested) on a single desktop computer. You can see the performance tests of PhasicFlow in the wiki page.

MPI parallelization with dynamic load balancing is under development. With this level of parallelization, PhasicFlow can leverage the computational power of multi-gpu workstations or clusters with distributed memory CPUs. In summary PhasicFlow can have 6 execution modes:

  1. Serial on a single CPU core,
  2. Parallel on a multi-core computer/node (using OpenMP),
  3. Parallel on an nvidia-GPU (using Cuda),
  4. Parallel on distributed memory workstation (Using MPI)
  5. Parallel on distributed memory workstations with multi-core nodes (using MPI+OpenMP)
  6. Parallel on workstations with multiple GPUs (using MPI+Cuda).

How to build?

You can build PhasicFlow for CPU and GPU executions. The latest release of PhasicFlow is v-0.1. Here is a complete step-by-step procedure for building phasicFlow-v-0.1..

Online code documentation

You can find a full documentation of the code, its features, and other related materials on online documentation of the code

How to use PhasicFlow?

You can navigate into tutorials folder in the phasicFlow folder to see some simulation case setups. If you need more detailed discription, visit our wiki page tutorials.

PhasicFlowPlus is and extension to PhasicFlow for simulating particle-fluid systems using resolved and unresolved CFD-DEM. See the repository of this package.

Supporting packages

  • Kokkos from National Technology & Engineering Solutions of Sandia, LLC (NTESS)
  • CLI11 1.8 from University of Cincinnati.

How to cite PhasicFlow

If you are using PhasicFlow in your research or industrial work, cite the following article:

@article{NOROUZI2023108821,
title = {PhasicFlow: A parallel, multi-architecture open-source code for DEM simulations},
journal = {Computer Physics Communications},
volume = {291},
pages = {108821},
year = {2023},
issn = {0010-4655},
doi = {https://doi.org/10.1016/j.cpc.2023.108821},
url = {https://www.sciencedirect.com/science/article/pii/S0010465523001662},
author = {H.R. Norouzi},
keywords = {Discrete element method, Parallel computing, CUDA, GPU, OpenMP, Granular flow}
}

phasicflow's People

Contributors

engineering-fluid-dynamics avatar hamidrezanorouzi avatar omid-khosravi avatar pedramyousefi avatar phasicflow avatar saharsiahtiri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

phasicflow's Issues

Geometry_Visualization

After running cases that consist of multiple surfaces and geometries, the whole geometry has been considered as one object in ParaView. This can leads to some possible issues for the visualization. For instance, opacity should have reduced to follow the particles inside the geometry. On top of that, reducing the opacity of some surfaces causes problems for visualization.
Surfaces and geometries can be considered separately for a better visualization.

Rotary Air-Lock Valve Bug report

When command $sphereGranFlow is executed in the program from a time other than 0 seconds, an error is displayed with the title that it could not enter some of the particles.

run_An_Uncompleted_Case

Computer may crash sometime. phasicFlow can continue to run, but there is a minor problem. Assume your base case run is for 120 s and the computer crashes in the 5 s. The starTime in the settingsDict must change to the last time of the previous run (in this case the last time is 5). However this change cannot run the simulation. An additional adjustment should be considered. The startTime in the particleInsertion must change to the last time of the previous run to continue running (in this example 5 s).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.