Coder Social home page Coder Social logo

compphys_project_1's Introduction

Project 1: Molecular dynamics simulation of Argon atoms

last updated: 27/02/2021

This is the first project for Computational Physics (AP3082) year 2020/2021, T-course of the master Applied Physics at the Delft University of Technology. The code is written for Python 3.8.6 using JupyterLab v2.2.9 web-based userinterface.

This program plots the relative distance, force and energy of 2 and 32 argon particles with 3 dimensions. The potential of the argon atoms is based on the Lennard-Jones potential and thus, so is the force. Simulation should take a maximum of 15 minutes.


To run the program: Import all files in the directory and run main.py
optional:
-edit parameters
allowed parameters with full functionality:
- sim.verlet
- sim.box_dim
- sim.num_atoms
- sim.rescaling
- sim.temp

run main.py (for supported versions of Python please see Installation)


functionality

  • Non-dimensional SI units
    • All inputs and outputs are non-dimensional
  • Periodic or non-periodic boundary conditions
  • Initial random locations
    • Only inside predefined box size
  • Initial 'random' velocities
    • Based, but not exact, on 3D equipartiton theorem, changing dimensions in parameters does not change random velocity algorithm
  • Plots of total energy
  • Plots of kinetic energy
  • Plots of potential energy
  • Choice of Euler method numerical approximation or Verlet algorithm
  • Potential (and thus force) based on Lennard-Jones potential
  • Rescaling of velocities based on target temperature

Installation

Usage of JupyterLab v2.2.9 is recommended, different versions might have reduced functionability/performance. For an installation manual please visit the Jupyterlab documentation. Since this code is written using Python 3.8.6, it is likely that most features will work for various IDE's running Python 3.8.6.

Acknowledgements

The following persons are the instructors of the course and supplied theoretical material:

  • Dr. Michael Wimmer
  • Dr. Anton Akhmerov
The following persons are the technical assistants of this course and are available for intermittent grading, feedback and questions:
  • Helene Spring
  • Marta Pita Vidal
  • André Melo
  • Anastasiia Varentcoval
  • David van Driel
A public forum is available during this course where anyone related to this course can ask questions, and provide insights.
JupyterHub has been supplied by the Delft University of Technology to allow cloud computing, without the installment of any software.

Authors

  • Abi Kanagaratnam
  • Jim Koning

compphys_project_1's People

Stargazers

 avatar

Watchers

 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.