Giter Site home page Giter Site logo

demgpu's Introduction

discrete_elementGPU

This code simulates the discrete element method for a predifined number of motile discs, which are called cells. Each cell can respond to an external signalling gradient and the parallel code is implemented over the cells. The code was originally developed to run on an NVIDIA Tesla C1060

DEMCode is a CUDA implementation of the discrete element method that can be used to model collective cell migration.

The code implements a group of cells that migrate through a corridor.

The code can be compiled with nvcc and a choice of c++ compiler with the Makefile specified. Important note: System paths must be changed to make the executable.

To compile for unix based operating systems try:

make Makefile.

The executable will be created.

Running the code and files

Once the code is compiled, the model can be simulated by running main:

./main run=1

The executable can take two arguments. run=1 specifies that this is a new instance of the model and data will be returned at the end of the simulation. run=2 specifies that data can be imported and the model will be initialised with the imported data.

Positions of the cells and velocities are written to a file particle_data.dat.

This data can be imported into the open source visualisation software PARAVIEW http://www.paraview.org/. To convert particle_data.dat to VTK file format for visualisation see Discrete-element-method-visualisation

demgpu's People

Contributors

maewoods avatar

Stargazers

Qingxiang Meng (孟庆祥) avatar Danial Amini Baghbadorani avatar

Watchers

 avatar

Forkers

ahlemred

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.