-
Notifications
You must be signed in to change notification settings - Fork 0
/
RI.hpp
56 lines (49 loc) · 3.06 KB
/
RI.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/** *************************************************************** **/
/** regidx C++ code - 2016 **/
/** **/
/** ** Registry Index for Bilayer Carbon Based Systems ** **/
/** **/
/** Written by Pedro Brandimarte ([email protected]) **/
/** **/
/** Copyright (c), All Rights Reserved **/
/** **/
/** This program is free software. You can redistribute it and/or **/
/** modify it under the terms of the GNU General Public License **/
/** (version 3 or later) as published by the Free Software **/
/** Foundation <http://fsf.org/>. **/
/** **/
/** This program is distributed in the hope that it will be useful, **/
/** but WITHOUT ANY WARRANTY, without even the implied warranty of **/
/** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **/
/** GNU General Public License for more details (file 'LICENSE_GPL' **/
/** distributed along with this program or at **/
/** <http://www.gnu.org/licenses/gpl.html>). **/
/** *************************************************************** **/
/** File: RI.hpp **/
/** **/
/** Description: Interface of registry index computation **/
/** **/
/** - reads the coordinates from bottom and top structures from **/
/** two given xyz input files; **/
/** **/
/** Written by Pedro Brandimarte, Feb 2016. **/
/** Centro de Fisica de Materiales - CFM **/
/** Donostia - San Sebastian, Spain **/
/** e-mail: [email protected] **/
/** ***************************** HISTORY ************************* **/
/** Original version: February 2016 **/
/** *************************************************************** **/
typedef struct Atom *atm;
struct Atom { double x; double y; atm next; };
/* Collect required informations from coordinate 'XYZ' input files. */
void RIinit (char *exec, char *bot, char *top);
/* Read coordinate 'XYZ' file. */
void RIreadXYZ (char *workDir, char *xyzName, atm head);
/* Compute the total overlap. */
void RIoverlap (char *rad);
/* Euclidiam distance between two vectors in R2. */
double RIdist (atm b, atm t);
/* Compute the registry index. */
void RI (int nAA = 131, int nAB = 65);
/* Free memory. */
void RIfree ();