Git Product home page Git Product logo

dem's Introduction

dem

master badge

A simple 2D discrete element method implementation.

Contents

This DEM code includes:

  • Nearest-neighbor algorithm
  • Hertz collision model
  • Verlet time integration
  • Core routines deferred to Numba

As of today, rolling movement is not implemented

Examples

Running a specific case requires to write an application in dem/app, and then to register it in dem/app/app.py. You can than call it from root directory doing python start.py <app_name>. Multiple app examples are provided in the dedicated directory, to be copied and adapted. Below are some simple sanity checks and a bit more advanced examples of what is possible with this small library.

gravity gravity-tilted obstacle
gif gif gif
dam-break silo mill
gif gif gif
silo-open turek ?
gif gif gif

dem's People

Contributors

jviquerat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dem's Issues

types

check if using float32 and smaller ints helps

test bouncing ball

add a test for single bouncing ball with different values of restitution coefficient

add/remove particles

add the possibility to let particles enter/leave the domain by adding/removing them from the list of particles

verlet

add verlet time-stepping and see if it helps using larger time-steps

domain

add circular domain and tilted rectangle to make a silo

hertz parameters

how to handle particles of different restitution coefficients ?
is v the relative speed of particles ?

silo

make a silo test case

coulomb force

check how and why the coulomb model should be incorporated

normal and tangent

becareful with normal and tangent vectors passed in collision, they must be oriented from 0 to 1 or 1 to 0 (see how it works with domain collision)

vstack

fix slow vstack for history

gravity

gravity should be defined by the applications

forces domain/particle

write a force computation such that particle/particle and domain/particle are handled the same ?

testing

add yaml file for github actions testing

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.