Giter Club home page Giter Club logo

rims's Introduction

Randomised Initial Molecular System (RIMS)

To compile: g++ random_struc.cpp -o executable To run: ./executable

This code generates a periodic liquid structure in a box for Molecular Dynamics (MD) simulations. It is capable of generating a pure liquid (with only one type of molecule) OR a binary liquid with 2 molecule types. Params.txt file can be used to set various relevant parameters for generating the structure. Unit : Angstrom Ovito can be used to visualize the system generated by this code.

Params.txt

Quick help is also printed in the params.txt file. Here is a slightly detailed description of each parameter.

  1. density : This is the number density of the liquid sturcture and corresponds to the number of molecules per unit volume. E.g., if the box_dim is 10 Ang, and the number density is set to be 0.003 then a total of 3 molecules will be generated in the system. This is the total number of molecules (solvent + solute).
  2. percent_solute : percentage of final structure that should contain solute molecules. The number of molecules of solvent and solute in the final structure is based on this parameter.
  3. box_dim : The system creates a cube of side length specified here (in Angstroms).
  4. min_dist : This is the minimum distance between 2 molecules (float value).
  5. seed : This program uses a random number generator (RNG) and the seed for this RNG can be set from 0 to 4,294,967,295. This parameter is included for reproducibility of the initial structure.
  6. out_file : The name of the output file for the generated structure can be given here. Remember to give the name with the .xyz extension.
  7. dimensions : USE 3 for a 3d system
  8. inp_mols : This parameter is used to decide whether the system will be a pure liquid or binary (with solute molecules). It can be 1 or 2.
  9. solute_filename : Provide the generator with a solute molecule in .xyz format
  10. solvent_filename : Provide the generator with a solvent molecule in .xyz format

random_struc.cpp

Main code to generate the specified molecular system

CNT.cpp

Generates Carbon Nanotubes (CNT) for a given diameter and length

rims's People

Contributors

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