Giter VIP home page Giter VIP logo

hoomd-simple-force's Introduction

simple_force

This repository is the simplest example of a hoomd plugin computing a force. It does nothing other than check the number of particles in the group passed to it are no larger than the total number of particles in a simulation. Currently this fails on linux, with the groups having an absurdly large number of molecules on the order of 2 billion.

Install and Setup

This install procedure assumes you have conda or miniconda installed on your system, see the conda user guide for installation instructions.

To install and setup this module first clone this repository

$ git clone https://github.com/malramsay64/hoomd-simple-force

then to setup the conda environment run

$ conda env update

which will install all the prerequisites for compiling the plugin as well as installing hoomd. Once this is completed the environment needs to be activated

$ conda activate hoomd-plugins

followed by the installation of the plugin with the command

$ make install

A demonstration of the failure can be run with

$ make test

which will result in the following error message

**ERROR**: More particles in Group than in Simulation, group_size: 1318697904
Traceback (most recent call last):
  File "test/test_group.py", line 50, in <module>
    force = hoomd.simple_force.SimpleForce(rc)
  File "/home/malcolm/.miniconda/envs/hoomd-plugins/lib/python3.6/site-packages/hoomd/simple_force/force.py", line 47, in __init__
    hoomd.context.current.system_definition, group.cpp_group
RuntimeError: Error initializing SimpleForce

hoomd-simple-force's People

Contributors

malramsay64 avatar

Watchers

James Cloos avatar  avatar

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.