Skip to content

Commit 518d47d

Browse files
Updated benzene tutorials.
1 parent 65cd46c commit 518d47d

3 files changed

Lines changed: 25 additions & 19 deletions

File tree

‎source/_sources/02turbogenius_tutorial/01Hydrogen_dimer/tutorial.rst‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ Now you can launch the VMC optimization:
261261
262262
where ``submit.sh`` is an appropriate job script that invokes the serial or parallel version of TurboRVB executables or TurboGenius interface.
263263

264+
.. note::
265+
266+
You can stop the optimization by writing ``0`` into ``stop.dat``.
264267

265268
Now, for post-processing, use:
266269

‎source/_sources/02turbogenius_tutorial/10Benzene/tutorial.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ Finally, run the postprocess:
338338
339339
We will get E at a = 0.30 bohr in `pip0_fn.d`.
340340

341+
.. _turbogeniustutorial_1001_10:
341342

342343
10 Summary
343344
----------------------------------------------------------------

‎source/_sources/02turbogenius_tutorial/98advanced/05Benzene/tutorial.rst‎

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ From the obtained wavefunction file ``fort.10``, we will construct the *hybrid o
2929
Based on physical considerations, assign **four** hybrid orbitals to each carbon and **one** hybrid orbital to each hydrogen using:
3030

3131
.. code-block:: bash
32-
32+
33+
cd 10_hybrid_orbitals
34+
cp ../04_vmc/fort.10 .
35+
cp ../04_vmc/pseudo.dat .
3336
turbogenius convertwf -to agps -nosym -hyb 4 1 4 1 4 1 4 1 4 1 4 1
3437
3538
This projects the wavefunction onto an **AGP** (Antisymmetrized Geminal Power) form **based on hybrid orbitals** rather than on atomic-orbital (AO) basis functions. You can visualize the generated hybrid orbitals with:
@@ -101,14 +104,16 @@ In the **Kekulé** picture of benzene, double and single bonds alternate around
101104

102105
- 2–7, 12–17, 22–27 → **optimize** (set flag to ``1``)
103106
- 7–12, 17–22, 27–2 → **fixed to 0** (ensure value is 0 and set flag to ``-1``)
107+
- all the other indices → **optimize** (set flag to ``1``)
104108

105-
Concretely, keep only the following **three** lines with flag ``1`` and set **all other** entries’ first column to ``-1``:
109+
Concretely, keep only the following **three** lines with flag ``-1`` and set **all other** entries’ first column to ``1``:
106110

107111
.. code-block:: text
108112
109-
1 2 7
110-
1 12 17
111-
1 22 27
113+
-1 2 27
114+
-1 7 12
115+
-1 17 22
116+
112117
113118
.. _turbogeniustutorial_9805_03:
114119

@@ -123,7 +128,7 @@ Once optimized, evaluate the energy with the optimized wavefunction:
123128
.. code-block:: bash
124129
125130
cd ../11_Kekule_vmcopt
126-
turbogenius vmcopt -g -opt_det_mat -optimizer lr -vmcoptsteps 50 -steps 400 -nw 128 -reg -0.005
131+
turbogenius vmcopt -g -opt_onebody -opt_twobody -opt_jas_mat -opt_det_mat -optimizer lr -vmcoptsteps 100 -steps 400 -nw 128 -reg -0.005 -num_opt_param 10
127132
128133
2. Run the VMC optimization, e,g, as follows:
129134

@@ -189,24 +194,21 @@ Now set up the **resonating** (fully delocalized) :math:`\pi`-bond picture by al
189194
.. code-block:: bash
190195
191196
cd ../13_Resonating_vmcopt
192-
cp ../10_hybrid_orbitals/fort.10 .
193-
cp ../10_hybrid_orbitals/pseudo.dat .
197+
cp ../12_Kekule_vmc/fort.10 .
198+
cp ../12_Kekule_vmc/pseudo.dat .
194199
vi fort.10
195200
196201
For the six :math:`p_z` indices (2, 7, 12, 17, 22, 27), enable optimization for **all** ring-adjacent pairs:
197202

198203
- 2–7, 7–12, 12–17, 17–22, 22–27, 27–2
199204

200-
Thus, in the ``# Grouped par.`` block, keep these **six** lines with flag ``1`` and set all other entries’ first column to ``-1``:
205+
Thus, in the ``# Grouped par.`` block, use flag ``1`` for all the lines. Specifically, you can change the flags of the following lines.
201206

202207
.. code-block:: text
203208
204-
1 2 7
205-
1 7 12
206-
1 12 17
207-
1 17 22
208-
1 22 27
209-
1 27 2
209+
-1 → 1 2 27
210+
-1 → 1 7 12
211+
-1 → 1 17 22
210212
211213
.. note::
212214

@@ -225,7 +227,7 @@ Optimize this resonating AGP wavefunction, then evaluate the energy as in the Ke
225227
.. code-block:: bash
226228
227229
cd ../13_Resonating_vmcopt
228-
turbogenius vmcopt -g -opt_det_mat -optimizer lr -vmcoptsteps 50 -steps 400 -nw 128 -reg -0.005
230+
turbogenius vmcopt -g -opt_onebody -opt_twobody -opt_jas_mat -opt_det_mat -optimizer lr -vmcoptsteps 100 -steps 400 -nw 128 -reg -0.005 -num_opt_param 10
229231
230232
2. Run the VMC optimization, e,g, as follows:
231233

@@ -288,14 +290,14 @@ Check the reblocked total energy and error in the file `pip0.d`.
288290

289291
With both **Kekulé** and **resonating** AGP wavefunctions optimized and their energies computed, compare the two total energies to obtain a schematic measure of the stabilization due to aromatic resonance in benzene.
290292

291-
- Kekule: -34.6293(75) Ha
292-
- Resonating: -34.7682(76) Ha
293+
- Kekule: -37.322... Ha
294+
- Resonating: -37.353... Ha
293295

294296
.. tip::
295297

296298
- Keep a clear record (e.g., a small table) of which :math:`\lambda` pairs are optimized vs. fixed for each case.
297299
- Verify that pairs set to zero in the Kekulé setup remain **exactly** zero during optimization (i.e., flagged ``-1``).
298300
- For reproducibility, retain the edited ``fort.10`` files (or diffs) in version control.
299-
301+
- Since the hybrid orbitals used here are smaller than the basis sets used in :ref:`previous chapter <turbogeniustutorial_1001_10>`, the obtained energy with the resonating wavefunction is slightly worse.
300302

301303
.. [#geo_ref] GEO hybrid-orbital construction reference: DOI: https://doi.org/10.1063/1.4938089

0 commit comments

Comments
 (0)