Code Monkey home page Code Monkey logo

vicsek's People

Contributors

jmarshrossney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vicsek's Issues

Main loop is too slow

At the moment this project is fine for making fun little animations of small systems (which was what it was originally made for!), but it's useless to anyone who might want to do some quantitative work.

The reason is that the main loop vicsek.model.VicsekModel.step, via scipy.spatial.distance.squareform, calculates the distances between all particle pairs at every timestep, which is a colossal waste.

I should really try to improve this before even thinking about adding any new models, which means looking into efficient implementations of molecular dynamics...something I have zero familiarity with. I assume particle neighbour lists will be required. Other possibilities are:

  • Write the interaction calculation in C/C++ and use e.g. SWIG to make a Python wrapper. Pros: could be fun.
  • Use Numba. Pros: don't have to leave Python.
  • Another implementation uses this package for 'scalable' neighbour lists.

[envoronment.yml] for windows

Is the file named environment.yml from the Linux system? I use the "conda env create -f environment.yml" for windows, but it raised error .

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.