WikiEnglish

Version 1 (Emmanuel Quemener, 14/03/2011 16:39)

1 1 Emmanuel Quemener
h1. Porting Path under Open Source
2 1 Emmanuel Quemener
3 1 Emmanuel Quemener
Following elements came from official page project of CBP  [[http://www.cbp.ens-lyon.fr/tiki-index.php?page=CarteOpenSource&bl=y]]
4 1 Emmanuel Quemener
5 1 Emmanuel Quemener
*Keywords:* 
6 1 Emmanuel Quemener
7 1 Emmanuel Quemener
h2. Introduction
8 1 Emmanuel Quemener
9 1 Emmanuel Quemener
h2. Downloading OpenPath software
10 1 Emmanuel Quemener
11 1 Emmanuel Quemener
Following link to download OpenPath archive source : http://forge.cbp.ens-lyon.fr/redmine/attachments/download/4/openpath-1.0.tgz
12 1 Emmanuel Quemener
13 1 Emmanuel Quemener
The @path@ folder contains, in the repository, all sources of software.
14 1 Emmanuel Quemener
15 1 Emmanuel Quemener
A @subversion@ client can also be used to download the sources.
16 1 Emmanuel Quemener
17 1 Emmanuel Quemener
<pre>
18 1 Emmanuel Quemener
svn checkout http://forge.cbp.ens-lyon.fr/svn/openpath
19 1 Emmanuel Quemener
</pre>
20 1 Emmanuel Quemener
21 1 Emmanuel Quemener
h2. Compilation
22 1 Emmanuel Quemener
23 1 Emmanuel Quemener
h3. Sur architecture Open Source
24 1 Emmanuel Quemener
25 1 Emmanuel Quemener
<pre>
26 1 Emmanuel Quemener
# Change path to openpath
27 1 Emmanuel Quemener
cd openpath/src
28 1 Emmanuel Quemener
# Launch compilation
29 1 Emmanuel Quemener
make
30 1 Emmanuel Quemener
</pre>
31 1 Emmanuel Quemener
32 1 Emmanuel Quemener
La compilation démarre sous GFortran par défaut et présente les sorties (partielles) suivantes
33 1 Emmanuel Quemener
<pre>
34 1 Emmanuel Quemener
...
35 1 Emmanuel Quemener
Path.exe has been created.
36 1 Emmanuel Quemener
gfortran -g  -Wall -fbounds-check -o ../utils/xyz2scan ../utils/Xyz2Scan.f
37 1 Emmanuel Quemener
gfortran -g  -Wall -fbounds-check -o ../utils/xyz2path ../utils/Xyz2Path.f
38 1 Emmanuel Quemener
39 1 Emmanuel Quemener
Utilities have been created.
40 1 Emmanuel Quemener
Make sure that they are in your PATH environment
41 1 Emmanuel Quemener
rm m_mrgrnk.mod
42 1 Emmanuel Quemener
</pre>
43 1 Emmanuel Quemener
44 1 Emmanuel Quemener
h2. Execution
45 1 Emmanuel Quemener
46 1 Emmanuel Quemener
h3. Alone, to retrieve online documentation
47 1 Emmanuel Quemener
48 1 Emmanuel Quemener
Launch the command : 
49 1 Emmanuel Quemener
<pre>
50 1 Emmanuel Quemener
# In compilation folder
51 1 Emmanuel Quemener
./Path.exe -help
52 1 Emmanuel Quemener
</pre>
53 1 Emmanuel Quemener
54 1 Emmanuel Quemener
Output prints _shell_ :
55 1 Emmanuel Quemener
<pre>
56 1 Emmanuel Quemener
 Path mini-help
57 1 Emmanuel Quemener
 --------------
58 1 Emmanuel Quemener
 
59 1 Emmanuel Quemener
 Use: Path Input_file Output_file
60 1 Emmanuel Quemener
 Input_file starts with a Namelist called path
61 1 Emmanuel Quemener
 
62 1 Emmanuel Quemener
 Compulsory variables are:
63 1 Emmanuel Quemener
 NGeomi: Number of geometries defining the Initial path
64 1 Emmanuel Quemener
 NGeomf: Number of geometries defining the Final path
65 1 Emmanuel Quemener
 Nat   : Number of atoms
66 1 Emmanuel Quemener
 
67 1 Emmanuel Quemener
 Other options
68 1 Emmanuel Quemener
 Input: string that indicates the type of the input geometries.
69 1 Emmanuel Quemener
 Accepted values are: Cart (or Xmol or Xyz) or Vasp
70 1 Emmanuel Quemener
 Prog: string that indicates the program that will be used for energy and gradient calculations.
71 1 Emmanuel Quemener
       Accepted values are: Gaussian, Vasp, Mopac or Ext
72 1 Emmanuel Quemener
       In case of a Gaussian or Mopac calculations, input must be set to Cart.
73 1 Emmanuel Quemener
       One example of a gaussian/mopac input should be added at the end of the
74 1 Emmanuel Quemener
       input file.See example file Test_G03.path or Test_Mopac.path
75 1 Emmanuel Quemener
       In the case of a VASP calculation, if input is set to Cart, then
76 1 Emmanuel Quemener
     the preamble of a VASP calculation should be added at the end of
77 1 Emmanuel Quemener
     the input file. See example file Test_VASP_cart.path
78 1 Emmanuel Quemener
     In the case of a VASP calculation, one should also give value of the 
79 1 Emmanuel Quemener
     Runmode variable
80 1 Emmanuel Quemener
 Runmode: This indicates wether one should use VASP routine to calculate the energy
81 1 Emmanuel Quemener
        and gradient of the whole path or not. If one wants to use VASP,
82 1 Emmanuel Quemener
        Runmode must be set to PARA.
83 1 Emmanuel Quemener
 PathName: Prefix used to save the path. Default is Path
84 1 Emmanuel Quemener
 Poscar: string that will be used as the prefix for the different 
85 1 Emmanuel Quemener
         POSCAR files in a VASP calculations. Usefull only if PathOnly=.TRUE.,
86 1 Emmanuel Quemener
         not used for internal calculations.
87 1 Emmanuel Quemener
  CalcName: Prefix for the files used for the energy and gradient calculations
88 1 Emmanuel Quemener
  ISuffix: Suffix for the input file.
89 1 Emmanuel Quemener
  OSuffix: suffix for the output file.
90 1 Emmanuel Quemener
 IGeomRef: Index of the geometry used to construct the internal coordinates.
91 1 Emmanuel Quemener
       Valid only for Coord=Zmat, Hybrid or Mixed
92 1 Emmanuel Quemener
 Fact: REAL used to define if two atoms are linked.
93 1 Emmanuel Quemener
       If d(A,B)<=fact*(rcov(A)+rcov(B)), then A and B are considered Linked.
94 1 Emmanuel Quemener
 debugFile: Name of the file that indicates which subroutine should print debug info.
95 1 Emmanuel Quemener
 Coord: System of coordinates to use. Possible choices are:
96 1 Emmanuel Quemener
        - CART (or Xyz): works in cartesian
97 1 Emmanuel Quemener
        - Zmat: works in internal coordinates (Zmat)
98 1 Emmanuel Quemener
        - Mixed: frozen atoms, as well as atoms defined by the 
99 1 Emmanuel Quemener
        'cart' array(see below) are describe in CARTESIAN, whereas the
100 1 Emmanuel Quemener
        others are described in Zmat
101 1 Emmanuel Quemener
        - Baker: use of Baker coordinates, also called delocalized internal coordinates
102 1 Emmanuel Quemener
        - Hybrid: geometries are described in zmat, but the gradient are used in cartesian
103 1 Emmanuel Quemener
 Step_method: method to compute the step for optimizing a geometry; choices are:
104 1 Emmanuel Quemener
        - RFO: Rational function optimization
105 1 Emmanuel Quemener
        - GDIIS: Geometry optimization using direct inversion in the iterative supspace
106 1 Emmanuel Quemener
  HesUpd: method to update the hessian. By default, it is Murtagh-Sargent
107 1 Emmanuel Quemener
       Except for geometry optimization where it is BFGS.
108 1 Emmanuel Quemener
 MaxCyc: maximum number of iterations for the path optimization
109 1 Emmanuel Quemener
 Smax: Maximum length of a step during path optimization
110 1 Emmanuel Quemener
 SThresh: Step Threshold to consider that the path is stationary
111 1 Emmanuel Quemener
 GThresh: Gradient Threshold to consider that the path is stationary, only orthogonal part is taken
112 1 Emmanuel Quemener
 FTan: We moving the path, this gives the proportion of the displacement tangent to the path
113 1 Emmanuel Quemener
       that is kept. FTan=1. corresponds to the full displacement, 
114 1 Emmanuel Quemener
       whereas FTan=0. gives a displacement orthogonal to the path.
115 1 Emmanuel Quemener
 IReparam: The path is not reparameterised at each iteration. This gives the frequency of reparameterization.
116 1 Emmanuel Quemener
 ISpline: By default, a linear interpolation is used to generate the path.
117 1 Emmanuel Quemener
          This option indicates the first step where spline interpolation is used.
118 1 Emmanuel Quemener
 
119 1 Emmanuel Quemener
 Arrays:
120 1 Emmanuel Quemener
 Rcov: Array containing the covalent radii of the first 80 elements.
121 1 Emmanuel Quemener
       You can modify it using, rcov(6)=0.8.
122 1 Emmanuel Quemener
 Mass: Array containing the atomic mass of the first 80 elements.
123 1 Emmanuel Quemener
 AtTypes: Name of the different atoms used in a VASP calculations.
124 1 Emmanuel Quemener
 If not given, Path will read the POTCAR file.
125 1 Emmanuel Quemener
 
126 1 Emmanuel Quemener
 Flags:
127 1 Emmanuel Quemener
 MW:  Flag. True if one wants to work in Mass Weighted coordinates. Default=.TRUE.
128 1 Emmanuel Quemener
 Renum: Flag. True if one wants to reoder the atoms in the initial order. default is .TRUE. most of the time.
129 1 Emmanuel Quemener
 OptProd: True if one wants to optimize the geometry of the products.
130 1 Emmanuel Quemener
 OptReac: True if one wants to optimize the geometry of the reactants.
131 1 Emmanuel Quemener
 PathOnly:TRUE if one wants to generate the initial path, and stops.
132 1 Emmanuel Quemener
 Hinv: if True, then Hessian inversed is used.
133 1 Emmanuel Quemener
 IniHup: if True, then Hessian inverse is extrapolated using the initial path calculations.
134 1 Emmanuel Quemener
 HupNeighbour: if True, then Hessian inverse is extrapolated using the neighbouring points of the path.
135 1 Emmanuel Quemener
 FFrozen: True if one wants to freeze the positions of some atoms.
136 1 Emmanuel Quemener
          If True, a &frozenlist namelist containing the list of frozen atoms must be given.
137 1 Emmanuel Quemener
           If VASP is used, and frozen is not given
138 1 Emmanuel Quemener
  here, the program will use the F flags of the input geometry
139 1 Emmanuel Quemener
 FCart:  True if one wants to describe some atoms using cartesian coordinates. 
140 1 Emmanuel Quemener
         *** Only used in 'mixed' calculations. ***
141 1 Emmanuel Quemener
       If True, a &cartlist namelist containing the list of cart atoms must be given.
142 1 Emmanuel Quemener
       By default, only frozen atoms are described in cartesian coordinates.
143 1 Emmanuel Quemener
 
144 1 Emmanuel Quemener
 DynMaxStep: if TRUE, the maximum allowed step is updated at each step, for each geometry.
145 1 Emmanuel Quemener
         If energy goes up, Smax=Smax*0.8, if not Smax=Smax*1.2. 
146 1 Emmanuel Quemener
        It is ensured that the dynamical Smax is within [0.5*SMax_0,2*Smax_0]
147 1 Emmanuel Quemener
 Autocart: True if you want to let the program choosing the cartesian atoms.
148 1 Emmanuel Quemener
 VMD: TRUE if you want to use VMD to look at the Path. Used only for VASP for now
149 1 Emmanuel Quemener
 WriteVASP: TRUE if you want to print the images coordinates in POSCAR files.
150 1 Emmanuel Quemener
 See also the POSCAR option. This can be used only if prog or input=VASP.
151 1 Emmanuel Quemener
</pre> 
152 1 Emmanuel Quemener
153 1 Emmanuel Quemener
h3. Execution of a complete example Test_HCN_zmat_test
154 1 Emmanuel Quemener
155 1 Emmanuel Quemener
<pre>
156 1 Emmanuel Quemener
# Change folder
157 1 Emmanuel Quemener
cd ../examples/Test/Zmat
158 1 Emmanuel Quemener
# Launch path on HCN_zmat.path with HCN_zmat.out
159 1 Emmanuel Quemener
../../../src/Path.exe HCN_zmat.path HCN_zmat.out
160 1 Emmanuel Quemener
</pre>
161 1 Emmanuel Quemener
162 1 Emmanuel Quemener
Output prints @Test_HCN_zmat_test.out@ (available in @Files@) starts and ends with following lines :
163 1 Emmanuel Quemener
<pre>
164 1 Emmanuel Quemener
 Path v4.1793 (c) PFL/PD 2007-2010
165 1 Emmanuel Quemener
 Input has been set to the default: XYZ                             
166 1 Emmanuel Quemener
 Working in MW coordinates
167 1 Emmanuel Quemener
 Prog=TEST
168 1 Emmanuel Quemener
 EGrad.f90, L73, IOpt=           0
169 1 Emmanuel Quemener
 EGrad.f90, L73, IOpt=           0
170 1 Emmanuel Quemener
 EGrad.f90, L73, IOpt=           0
171 1 Emmanuel Quemener
 EGrad.f90, L73, IOpt=           0
172 1 Emmanuel Quemener
 EGrad.f90, L73, IOpt=           0
173 1 Emmanuel Quemener
 EGrad.f90, L73, IOpt=           0
174 1 Emmanuel Quemener
 EGrad.f90, L73, IOpt=           0
175 1 Emmanuel Quemener
 EGrad.f90, L73, IOpt=           0
176 1 Emmanuel Quemener
 EGrad.f90, L73, IOpt=           0
177 1 Emmanuel Quemener
 EGrad.f90, L73, IOpt=           0
178 1 Emmanuel Quemener
 GeomTmp=
179 1 Emmanuel Quemener
  1.053  1.113  2.832
180 1 Emmanuel Quemener
 GeomCart=
181 1 Emmanuel Quemener
  0.000  0.000  0.000  0.000  0.000  0.000  0.000  0.000  0.000
182 1 Emmanuel Quemener
--- snip snip ---
183 1 Emmanuel Quemener
 Extrapol_int u,xgeom(NGeomI),s,dist,s-dist   11.000000000000000        11.000000000000000        1.3530023123052950        1.3530023123053081      -1.31006316905768472E-014
184 1 Emmanuel Quemener
</pre>