<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://sagacioushours.org.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Talk%3AMod%3AHunt_Research_Group%2Fwannier_centre</id>
	<title>Talk:Mod:Hunt Research Group/wannier centre - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://sagacioushours.org.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Talk%3AMod%3AHunt_Research_Group%2Fwannier_centre"/>
	<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/wannier_centre&amp;action=history"/>
	<updated>2026-05-27T11:29:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/wannier_centre&amp;diff=2432&amp;oldid=prev</id>
		<title>Wikiadmin: Created page with &quot;Characterising the electronic states of Cl- in 63 water molecules (research notes by Ling)  1. Wannier Centres  My results of [63 water + Cl-] at 1.32 ps.  Image:wannier.jpg...&quot;</title>
		<link rel="alternate" type="text/html" href="https://sagacioushours.org.uk/wiki/index.php?title=Talk:Mod:Hunt_Research_Group/wannier_centre&amp;diff=2432&amp;oldid=prev"/>
		<updated>2020-11-25T21:22:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Characterising the electronic states of Cl- in 63 water molecules (research notes by Ling)  1. Wannier Centres  My results of [63 water + Cl-] at 1.32 ps.  Image:wannier.jpg...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Characterising the electronic states of Cl- in 63 water molecules (research notes by Ling)&lt;br /&gt;
&lt;br /&gt;
1. Wannier Centres&lt;br /&gt;
&lt;br /&gt;
My results of [63 water + Cl-] at 1.32 ps.&lt;br /&gt;
&lt;br /&gt;
[[Image:wannier.jpg]]&lt;br /&gt;
&lt;br /&gt;
Fig. 1 Wannier centres of [63 water molecules + Cl-]. Blue - Wannier centers, Red - Oxygen, Grey - Hydrogen, Cyan - Chlorine ion. &lt;br /&gt;
&lt;br /&gt;
Each oxygen atom is in the centre of the Wannier center pyramid. Each Wannier centre on a water molecule correspond to a sp3 hybrid orbital. Two are the O-H bonds, and two the lonepairs. Cl- is also in the centre of the Wannier center pyramid as there are 4 occupied valence orbitals on Cl- (3s and 3 3p). Evidently they hybridise too, to give four sp3 orbitals, in a tetrahedral arrangement.&lt;br /&gt;
  &lt;br /&gt;
2. KS energies and DOS&lt;br /&gt;
&lt;br /&gt;
[[Image:W63cl-dos2_04ps.ps]]&lt;br /&gt;
&lt;br /&gt;
3. RDF&lt;br /&gt;
&lt;br /&gt;
[[Image:Cpmd_w63cl_rdf_2ps.ps]]&lt;br /&gt;
&lt;br /&gt;
Appendix:&lt;br /&gt;
&lt;br /&gt;
1. How to visualise Wannier Centres and atom coordinates&lt;br /&gt;
&lt;br /&gt;
Method A (I recommend): &lt;br /&gt;
&lt;br /&gt;
(1) Use the keyword 'WANNIER REFERENCE' followed by three parameters which are - half of cell size in bohr. E.g. &lt;br /&gt;
&lt;br /&gt;
  &amp;amp;CPMD&lt;br /&gt;
    PROPERTIES&lt;br /&gt;
    RESTART WAVEFUNCTION COORDINATES&lt;br /&gt;
    WANNIER REFERENCE&lt;br /&gt;
    -11.7352 -11.7352 -11.7352&lt;br /&gt;
  &amp;amp;END&lt;br /&gt;
  &amp;amp;PROP&lt;br /&gt;
   LOCALIZE&lt;br /&gt;
  &amp;amp;END&lt;br /&gt;
&lt;br /&gt;
  &amp;amp;DFT&lt;br /&gt;
    NEWCODE&lt;br /&gt;
    FUNCTIONAL BLYP&lt;br /&gt;
    GC-CUTOFF&lt;br /&gt;
    0.2D-06&lt;br /&gt;
  &amp;amp;END&lt;br /&gt;
&lt;br /&gt;
  &amp;amp;SYSTEM&lt;br /&gt;
    SYMMETRY&lt;br /&gt;
    1&lt;br /&gt;
    CELL&lt;br /&gt;
    23.4704  1.0  1.0  0  0  0&lt;br /&gt;
    CUTOFF&lt;br /&gt;
    70.0&lt;br /&gt;
    CHARGE&lt;br /&gt;
    -1&lt;br /&gt;
  &amp;amp;END&lt;br /&gt;
&lt;br /&gt;
Note: During visualisation, make sure there are no bonds between Wannier centers and hydrogen atoms. &lt;br /&gt;
&lt;br /&gt;
(2) Visualise (using VMD) the second set of coordinates in IONS+CENTERS.xyz, which include the coordinates of Wannier centers after localisation.&lt;br /&gt;
&lt;br /&gt;
Method B: &lt;br /&gt;
&lt;br /&gt;
I used coordinates of both atoms and Wannier centres from output, and put them back to the same cell.&lt;br /&gt;
&lt;br /&gt;
(1) Use the coordinates of Wannier Centres after the optimisation in the output file (e.g. log.w63Cl-wanorb). Note: the coordinates in the output file are in bohr, need to convert to angstrom by  1 Bohr =  0.52917720859 Angstrom, using 'awk', e.g. &lt;br /&gt;
  awk '{printf &amp;quot;%.12f %.12f %.12f \n&amp;quot;, $1*0.5291772108, $2*0.5291772108, $3*0.5291772108}' w63Cl-wannier_center.xyz &amp;gt; 1.xyz&lt;br /&gt;
&lt;br /&gt;
(2) Use the coordinates of atoms in the output file (e.g. log.w63Cl-wanorb). Note: the coordinates in the output file are in bohr, need to convert to angstrom by  1 Bohr =  0.52917720859 Angstrom. Put both sets of coordinates in a file called w63Cl-wannier_center_atoms.xyz&lt;br /&gt;
&lt;br /&gt;
(3) Code to put Wannier Centres and atoms to the same cell (convert.f90). Use ./a.out &amp;lt; w63Cl-wannier_center_atoms.xyz, then I would get a file called output.xyz which can be visualised by VMD (please refer to my VMD notes on how to visualise and change the colour of atoms). &lt;br /&gt;
&lt;br /&gt;
  PROGRAM COORDINATES&lt;br /&gt;
&lt;br /&gt;
   implicit none&lt;br /&gt;
   integer, parameter :: NumAtoms=446&lt;br /&gt;
   real, dimension(3) :: atoms&lt;br /&gt;
   character*2 :: symbols&lt;br /&gt;
   integer :: i, j&lt;br /&gt;
   real :: l&lt;br /&gt;
   character*30 :: ch&lt;br /&gt;
&lt;br /&gt;
   !cell size = 23.4704 Angstrom&lt;br /&gt;
   l = 23.4704&lt;br /&gt;
&lt;br /&gt;
   open(unit=7,file=&amp;quot;output.xyz&amp;quot;)&lt;br /&gt;
   read(5,*) ch&lt;br /&gt;
   write(7,*) ch&lt;br /&gt;
   read(5,*) ch&lt;br /&gt;
   write(7,*) ch&lt;br /&gt;
&lt;br /&gt;
   !The coordinates are in Angstrom&lt;br /&gt;
   do i = 1, NumAtoms&lt;br /&gt;
     read(5,*) symbols, atoms&lt;br /&gt;
     atoms = atoms&lt;br /&gt;
     if (trim(symbols)==&amp;quot;D&amp;quot;) then&lt;br /&gt;
       atoms = atoms + l/2.&lt;br /&gt;
     end if&lt;br /&gt;
     write(7,'(a,3f20.6)') symbols, atoms&lt;br /&gt;
   end do&lt;br /&gt;
   close(7)&lt;br /&gt;
&lt;br /&gt;
  END PROGRAM COORDINATES&lt;br /&gt;
&lt;br /&gt;
2. How to find which KS energies are ion HOMO and which ones are water band?&lt;br /&gt;
&lt;br /&gt;
First look at the density of states, and find the Fermi energy. Most likely the Cl- states will be just below the Fermi energy, in the water gap. Once we know the possible ion states (can visualise the corresponding orbitals), and see if they are localised on the ion.&lt;br /&gt;
&lt;br /&gt;
Note: In ab inition MD we are using the Born-Oppenheimer approximation, so whether the atoms are thermodynamically in equilibrium or not does not make any difference for the electronic problem. Because the electron always see the nuclei as frozen in some fixed configuration. &lt;br /&gt;
&lt;br /&gt;
It might well be that there are many empty states at zero energy. But take into account that the absolute values of the eigenvalues have no meaning, because the system is infinite. So all the eigenvalues need first to be referred to the Fermi energy.&lt;br /&gt;
&lt;br /&gt;
If you compute a density of states, and then compare to some published results, you will see immediately if everything is OK.&lt;br /&gt;
&lt;br /&gt;
My results at 1.32ps: &lt;br /&gt;
&lt;br /&gt;
   251     -2.4813154       2.00000000      252     -2.3225673       2.00000000&lt;br /&gt;
   253     -2.2307503       2.00000000      254     -2.1896318       2.00000000&lt;br /&gt;
   255     -2.1063431       2.00000000      256     -1.9922699       2.00000000&lt;br /&gt;
   257      0.2844580       0.00000000      258      0.4295585       0.00000000&lt;br /&gt;
   259      0.9961278       0.00000000      260      1.9684643       0.00000000&lt;br /&gt;
   261      3.1466093       0.00000000      262      3.2006318       0.00000000&lt;br /&gt;
   263      3.3180696       0.00000000      264      3.3661100       0.00000000&lt;br /&gt;
   265      3.5236525       0.00000000      266      3.5883758       0.00000000&lt;br /&gt;
   267      4.0884711       0.00000000      268      4.1854061       0.00000000&lt;br /&gt;
   269      4.2129189       0.00000000      270      4.3560058       0.00000000&lt;br /&gt;
   271      4.3683808       0.00000000      272      4.3995624       0.00000000&lt;br /&gt;
   273      4.5195778       0.00000000      274      4.5428412       0.00000000&lt;br /&gt;
   275      4.5786353       0.00000000      276      4.6169247       0.00000000&lt;br /&gt;
   277      4.6728144       0.00000000      278      4.8055353       0.00000000&lt;br /&gt;
   279      5.0279848       0.00000000      280      5.1143694       0.00000000&lt;br /&gt;
   281      5.2572429       0.00000000      282      5.3395347       0.00000000&lt;br /&gt;
   283      5.3693926       0.00000000      284      5.4557988       0.00000000&lt;br /&gt;
   285      5.5166133       0.00000000      286      5.5705186       0.00000000&lt;br /&gt;
   287      5.7131019       0.00000000      288      5.8420968       0.00000000&lt;br /&gt;
   289      5.9221986       0.00000000      290      5.9497781       0.00000000&lt;br /&gt;
   291      6.0387123       0.00000000      292      6.0945736       0.00000000&lt;br /&gt;
   293      6.1667204       0.00000000      294      6.2048787       0.00000000&lt;br /&gt;
   295      6.2851450       0.00000000      296      6.3167766       0.00000000&lt;br /&gt;
   CHEMICAL POTENTIAL =                            -1.9922706859 EV&lt;br /&gt;
&lt;br /&gt;
256 -  highest occupied state. The chemical potential here is taken to be the energy of the HOMO. In general, the Fermi energy is the midway between the HOMO and the LUMO (i.e. at the centre of the gap).&lt;br /&gt;
 &lt;br /&gt;
The values make sense. &lt;br /&gt;
&lt;br /&gt;
I have computed 40 empty states, to get a reasonable description of the conduction band of water as well.&lt;br /&gt;
&lt;br /&gt;
To do: compute DOS. (Manual P182: KPERT, P185 LDOS, P219 WANNIER DOS).&lt;br /&gt;
&lt;br /&gt;
Note: Manual P245&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Q: I have a problem with visualising unoccupied orbitals. When I use RHOOUT BANDS or&lt;br /&gt;
CUBEFILE ORBITALS after the wavefunction optimization I get only occupied orbitals. If I&lt;br /&gt;
add one empty state when optimizing wavefunction the program never reaches convergence.&lt;br /&gt;
&lt;br /&gt;
A: The most efficient way to calculate unoccupied orbitals is to firrst optimize the occupied orbitals and then restart the calculation using the run option&lt;br /&gt;
  KOHN-SHAM ENERGIES&lt;br /&gt;
  n&lt;br /&gt;
where n ist the number of unoccupied orbitals. This will diagonalize the Kohn-Sham Potential (defined by the occupied orbitals alone).&lt;br /&gt;
&lt;br /&gt;
To test if everything goes fine, you can check the total energy printed at the beginning of this job, it should be exactly the one at the end of the optimization. In addition, if you don't change the default convergence criteria, the number of converged Kohn-Sham states should be equal to the number of occupied states in the first step.&amp;quot;&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
</feed>