Giter VIP home page Giter VIP logo

mychp443-introduction-to-microscopic-simulation's Introduction

Microscopic Simulation

The repository contains my version of the Microscopic Simulation project given by Michel Masella at CHPS master, UVSQ.

The code is written in zig. Please make sure you have the 0.12.0 release version of the compiler in order to build this project.

Compilation

$ zig build -Doptimize=ReleaseSafe

The executable is named simulation and located in zig-out/bin directory.

Usage

$ ./simulation [option] input_position_file [input_speed_file] [output_file]
options:
    -h, --help
            Display this help and exit

    -d, --delta-t <TIME>
            Choose delta t value (default: 1 fs)

    -t, --total-iterations <TIME>
            Number of iterations to do (default: 100)

    -s, --save-step <N>
            Save positions every N step (default: 10)

    -m, --thermostat-step <N>
            Frequency to update the temperature using Beredsen thermostat (default: 1)

The input files must be formatted as follow

first line
mass x y z
    .
    .
    .

For reference, please look at particule.xyz file.

Results

During execution, statistics about the simulated system are printed (Energies, Temperature, Sum of forces...). A color scheme is present to differentiate abnormal values from satisfying ones. At this end, a summary of the density observed during the simulation is printed (exam question).

Finally, the program outputs the system in a PDB format (default file: test.pdb) on a regular basis. This file can then be used to visualize the simulation with vmd for instance.

Credit

All the guidelines and tips to have a working simulation code were given by Michel Masella

mychp443-introduction-to-microscopic-simulation's People

Contributors

corentinbeaulieu 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.