Coder Social home page Coder Social logo

fuulish / canal Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 7.04 MB

calculate electrical conductivity from molecular dynamics simulation data and possibly split into different contributions

License: GNU General Public License v3.0

C 90.00% C++ 6.20% Makefile 3.80%
md conductivity analysis

canal's Introduction

canal

Calculates electrical conductivity from molecular simulations using root-mean square displacements and optionally splits it into contributions from the individual species, and/or decomposes it spatially.

This is similar to what has been described here: http://aip.scitation.org/doi/abs/10.1063/1.4890741

Those guys were, to the best of my knowledge, the first ones who did a spatial decomposition analysis of the electrical conductivity.

There is not much documentation. The directory data contains three example inputs that cover what is possible with canal at the moment

Compilation

All necessary files are in the src subdirectory, including a makefile that might need changing depending on what compiler you prefer For gcc you should be fine by simple typing make.

Input options

You need to create an input file that contains a couple of keywords and values in the style:

keyword = value1 value2

The location of the input file has to be passed as first command-line argument.

All keywords only take one value, except for 'spatial', which takes one to three values. The keywords are:

mandatory:
    - xcom/ycom/zcom:   x,y,z coordinate files for all fragments' centers of mass (in Angstrom)
                        the format is one line per snapshot, with values for each fragment separated by spaces
    - chgs:             charges of the fragments
                        the format is one line per fragment

optional:
    - cell:             cell dimensions (if a spatial decomposition is what you're looking for)
    - nrestart:         number of restart points along the trajectory
    - fitoffset:        where to start linear fit (fraction of data, default 0.1)
    - fitlength:        length of data for linear fit (fraction of data, default 0.9)
                        fitoffset + fitlength should not exceed 1.0, otherwise accessing unallocated memory

    needed for correct conductivty calculation:
        - temp:         temperature (in K)
        - timestep:     timestep (in fs)
        - avvol:        average volume (in Angstrom^3)

    needed for splitting conductivity into parts from anion-anion, anion-cation, cation-cation:
        - split         1 number, turned on if != 0

    needed for spatial decomposition:
        - spatial:      3 numbers:
                        number of distance bins <-- if > 1 analysis turned on
                        starting distance
                        bin width

canal's People

Contributors

fuulish avatar

Stargazers

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