GithubHelp home page GithubHelp logo

boncar's Introduction

bonCar

A Fortran code of converting bond lengths to Cartersian coordinates.

Introduction

Converting Cartesian coordinates to bond lengths is simpler than the inverse convert. The bond-Cart transformation is intuitively straight-forward but hard to realize.

Difficulty

The first difficulty I met is how to solve the fourth coordinates if we knew three coordinates and three lengths, which confused me for many days. Actually this is a common transformation in GIS called trilateration.

The second difficulty I didn't solve is how to deal with the colinear condition. If three or more atoms are in one line, there will not be a solution for the fourth point, although the condition is rare.

Converting Procedure

  1. The first atom was placed at the origin.
  2. The second atom was placed at the x axis.
  3. The third atom was placed at the xOy plane.
  4. The fourth was placed at the positive half Z axis.
  5. Then other atoms was solved one by one.

Usage

The core subroutine is bonCar. The number of bond lengths, bond lengths, the number of atoms are required.

Intel Fortran Compiler is needed. No more prerequisite.

  1. Clone this repository.
  2. make

boncar's People

Contributors

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