File: grid_it.rst

package info (click to toggle)
openmolcas 25.02-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 170,204 kB
  • sloc: f90: 498,088; fortran: 139,779; python: 13,587; ansic: 5,745; sh: 745; javascript: 660; pascal: 460; perl: 325; makefile: 17
file content (491 lines) | stat: -rw-r--r-- 18,082 bytes parent folder | download | duplicates (3)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
.. index::
   single: Program; GRID_IT
   single: GRID_IT

.. _UG\:sec\:gridit:

:program:`GRID_IT`
==================

.. only:: html

  .. contents::
     :local:
     :backlinks: none

.. _UG\:sec\:gridit_description:

Description
-----------

.. xmldoc:: <MODULE NAME="GRID_IT" ONSCREEN="HF,HF-GEOMETRY,CAS,CAS-GEOMETRY">
            %%Description:
            <HELP>
            GRID_IT is an interface program for calculations of molecular
            orbitals and density in a set of Cartesian grid points.
            Calculated grid can be visualized by LUSCUS programs
            </HELP>

:program:`GRID_IT` is an interface program for calculations of molecular
orbitals and density in a set of Cartesian grid points. The calculated grid
can be visualized by :program:`LUSCUS` program.

.. _UG\:sec\:gridit_dependencies:

Dependencies
------------

The :program:`GRID_IT` program requires the communication file :file:`RUNFILE`,
produced by :program:`GATEWAY` and an orbital file :file:`INPORB`: :file:`SCFORB`,
:file:`RASORB`, :file:`PT2ORB`, generated by program :program:`SCF` (calculated with RHF or UHF hamiltonian), :program:`RASSCF`,
or :program:`CASPT2`, respectively.

.. index::
   pair: Files; GRID_IT

.. _UG\:sec\:gridit_files:

Files
-----

Below is a list of the files that are used/created by the program
:program:`GRID_IT`.

Input files
...........

.. class:: filelist

:file:`RUNFILE`
  File for communication of auxiliary information generated by the program
  :program:`GATEWAY`.

:file:`INPORB`
  :file:`SCFORB` or another orbitals file (:file:`RASORB`, :file:`CIORB`,
  :file:`CPFORB`, :file:`SIORB`, :file:`PT2ORB`) containing calculated orbitals.
  If used after :program:`SCF` run, the information about one-electron
  energies is also retrieved.

Output files
............

.. class:: filelist

:file:`LUS`
  Output file in LUSCUS format, with default extension :file:`.lus` --- the only file needed
  for drawing program. In the case of
  UHF calculation, :program:`GRID_IT` produces two files: :file:`a.lus` and
  :file:`b.lus` with grids for alpha and beta electrons.
  :program:`LUSCUS` code could be used to combine grid files
  for visualization of total or spin density.

:file:`GRID`
  Obsolete format of the grid file, can be converted to Cube files using
  the :program:`grid2cube` tool. In order to generate a file with data
  written in grid format, keyword :kword:`NOLUSCUS` should be used.

.. index::
   pair: Input; GRID_IT

.. _UG\:sec\:gridit_input:

Input
-----

Normally, it is no reason to change any default setting of calculated
grid --- the choice of appropriate grid size, net frequency, as well as
choice of MO can be done automatically.

If user did not specified the selection of orbitals, :program:`GRID_IT`
makes a decision based on information in the :file:`InpOrb` file. For example,
if :file:`InpOrb` contains data after SCF calculation, a set of orbitals
around HOMO--LUMO gap will be used. If :file:`InpOrb` contains active orbitals,
they will be used as a default set.

Below follows a description of the input to :program:`GRID_IT`. The keywords
are always significant to four characters, but in order to make the
input more transparent, it is recommended to use the full keywords.
The :program:`GRID_IT` program section of the |molcas| input starts with the
standard reference to the code: ::

  &GRID_IT

Argument(s) to a keyword are always supplied on the next line of the
input file, except when explicitly stated otherwise.

Optional general keywords
.........................

.. class:: keywordlist

:kword:`TITLe`
  One line following this one is regarded as title.

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="TITLE" KIND="STRING" LEVEL="BASIC">
              %%Keyword: Title <basic>
              %%Tested: NONE
              <HELP>
              One line following this one is regarded as title.
              </HELP>
              </KEYWORD>

:kword:`NAME`
  One line following this one is used for generation of
  grid filename in the form: "Project.Name.lus".

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="NAME" KIND="STRING" LEVEL="ADVANCED">
              %%Keyword: Name <basic>
              %%Tested: NONE
              <HELP>
              One line following this one is used for generation of
              grid filename in the form: "Project.Name.lus".
              </HELP>
              </KEYWORD>

:kword:`FILE`
  On the following line user can specify the filename, which will be
  used instead of INPORB (default). For example: :kword:`FileOrb=$CurrDir/$Project.ScfOrb`.

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="FILE" APPEAR="INPORB file" KIND="STRING" LEVEL="BASIC">
              %%Keyword: File <basic>
              %%Tested: NONE
              <HELP>
              On the following line user can specify the filename, which will be
              used instead of INPORB (default).
              </HELP>
              </KEYWORD>

:kword:`SPARse`
  Set up sparse Cartesian net with 1 grid point per a.u.
  Note that quality of the grid can be poor.
  Default (without :kword:`Sparse` or :kword:`Dense`) is 3 points per a.u.

  .. xmldoc:: <SELECT MODULE="GRID_IT" NAME="QUALITY" APPEAR="Grid Quality" LEVEL="BASIC" CONTAINS="DEFAULT,SPARSE,DENSE">

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="SPARSE" APPEAR="Sparse" KIND="SINGLE" LEVEL="BASIC" EXCLUSIVE="DENSE">
              %%Keyword: Sparse <basic>
              %%Tested: ##013
              <HELP>
              Set up sparse Cartesian net with 1 grid point per a.u.
              Note that quality of the grid can be poor.
              Default is 3 points per a.u.
              </HELP>
              </KEYWORD>

:kword:`DENSe`
  Set up net with 10 grid points per a.u. Note that using this option
  without choice of orbitals to draw you can produce very large output file.

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="DENSE" APPEAR="Dense" KIND="SINGLE" LEVEL="BASIC" EXCLUSIVE="SPARSE">
              %%Keyword: Dense <basic>
              %%Tested: ##219
              <HELP>
              Set up dense Cartesian net with 10 grid point per a.u.
              </HELP>
              </KEYWORD>

  .. xmldoc:: </SELECT>

  .. --- not clear - do we need packing at all ---

     :kword:`PACK`
       Use packing of data, to create a lower quality, but smaller output files.

  ..   .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="PACK" KIND="SINGLE" LEVEL="ADVANCED" EXCLUSIVE="NOPACK">
                   %%Keyword: Pack <basic>
                   <HELP>
                   Use packing of data, to create a lower quality, but smaller output files.
                   </HELP>
                   </KEYWORD>

     :kword:`NOPACK`
       Do not use packing of data. By default, unless Dense grid is used,
       the data is packed, so the picture has lower (screen) quality.

   ..  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="NOPACK" KIND="SINGLE" LEVEL="ADVANCED" EXCLUSIVE="PACK">
                   %%Keyword: NoPack <basic>
                   <HELP>
                   Do not use packing of data. By default, unless Dense grid is used,
                   the data is packed, so the picture has lower (screen) quality.
                   </HELP
                   </KEYWORD>

:kword:`GAP`
  Keyword, followed by real equals to distance between
  the atomic nuclei in the molecule and the border of grid.
  Default value is 4.0 a.u.

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="GAP" KIND="REAL" LEVEL="ADVANCED">
              %%Keyword: Gap <advanced>
              %%Tested: NONE
              <HELP>
              Keyword, followed by real equals to distance between
              the atomic nuclei in the molecule and the border of grid.
              Default value is 4.0 a.u.
              </HELP>
              </KEYWORD>

:kword:`ORBItal`
  Direct specification of orbitals to show. Next line set up
  number of calculated grids. And at next line(s) pairs of integers --- symmetry
  and orbital within this symmetry is given.

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="ORBITAL" KIND="INTS_COMPUTED" SIZE="2" MIN_VALUE="1" LEVEL="ADVANCED" EXCLUSIVE="SELECT">
              %%Keyword: Orbital <advanced>
              %%Tested: NONE
              <HELP>
              Direct specification of orbitals to show. Follows by
              number of calculated grids, and pairs of integers -- symmetry
              and orbital within this symmetry.
              </HELP>
              </KEYWORD>

:kword:`SELEct`
  Direct specification of orbitals to show. Follows by one line
  in the format: symmetry:first_orbital-last_orbital
  (Ex: 1:2-7 2:5-8)

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="SELECT" KIND="STRING" LEVEL="ADVANCED" EXCLUSIVE="ORBITAL">
              %%Keyword: Select <advanced>
              %%Tested: NONE
              <HELP>
              Direct specification of orbitals to show. Follows by one line
              in the format: symmetry:FirstOrbital-LastOrbital
              (Ex: 1:2-7 2:5-8)
              </HELP>
              </KEYWORD>

:kword:`MULLiken`
  Compute Mulliken charges separately for each occupied MO specified in
  the GRID_IT input. "LONG print" is an optional argument for more
  detailed printout.

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="MULLIKEN" KIND="STRING" LEVEL="ADVANCED">
              %%Keyword: Mulliken <advanced>
              %%Tested: NONE
              <HELP>
              Compute Mulliken charges separately for each occupied MO specified in
              the GRID_IT input. "LONG print" is an optional argument for more
              detailed printout.
              </HELP>
              </KEYWORD>

:kword:`NoSort`
  Do not sort orbitals by occupation numbers and orbital energies

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="NOSORT" APPEAR="NoSort" KIND="SINGLE" LEVEL="ADVANCED">
              %%Keyword: NoSort <advanced>
              %%Tested: NONE
              <HELP>
              Do not sort orbitals by occupation numbers and orbital energies
              </HELP>
              </KEYWORD>

:kword:`ORANge`
  Followed by 2 numbers, to limit the interval of
  orbitals by occupation numbers.

  .. xmldoc:: <SELECT MODULE="GRID_IT" NAME="SELECTION" APPEAR="Orbital Selection" LEVEL="ADVANCED" CONTAINS="DEFAULT,ERANGE,ORANGE,ALL">

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="ORANGE" APPEAR="oRange" KIND="REALS" SIZE="2" MIN_VALUE="0" MAX_VALUE="2" LEVEL="ADVANCED" EXCLUSIVE="ERANGE,ALL">
              %%Keyword: ORANge <advanced>
              %%Tested: ##205
              <HELP>
              Followed by 2 numbers to limit the interval of
              orbitals by occupation numbers
              </HELP>
              </KEYWORD>

:kword:`ERANge`
  Followed by 2 numbers, to limit the interval of
  orbitals by one-electron energies

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="ERANGE" APPEAR="eRange" KIND="REALS" SIZE="2" LEVEL="ADVANCED" EXCLUSIVE="ORANGE,ALL">
              %%Keyword: ERANge <advanced>
              %%Tested: NONE
              <HELP>
              Followed by 2 numbers to limit the interval of
              orbitals by one-electron energies
              </HELP>
              </KEYWORD>

:kword:`ALL`
  Calculate grids for all molecular orbitals. Using this keyword you can produce a
  huge output file!

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="ALL" APPEAR="ALL Orbitals" KIND="SINGLE" LEVEL="ADVANCED" EXCLUSIVE="ORANGE,ERANGE">
              %%Keyword: All <advanced>
              %%Tested: ##219
              <HELP>
              Calculate grids for all molecular orbitals.
              </HELP>
              </KEYWORD>

  .. xmldoc:: </SELECT>

  .. :kword:`NODEnsity`
       Keyword to suppress calculation of grid for density

       .. .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="NODENSITY" APPEAR="No Density" KIND="SINGLE" LEVEL="ADVANCED" EXCLUSIVE="TOTAL">
                      %%Keyword: NoDensity <advanced>
                      <HELP>
                      Keyword to suppress calculation of grid for density
                      </HELP>
                      </KEYWORD>

:kword:`TOTAl`
  Request to calculate a grid for the (correct) total
  density computed from contributions of all orbitals, instead of (default)
  just from the orbitals chosen by user.

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="TOTAL" APPEAR="Total Density" KIND="SINGLE" LEVEL="ADVANCED" EXCLUSIVE="NODENSITY">
              %%Keyword: Total <advanced>
              %%Tested: ##071
              <HELP>
              Request to calculate a grid for the (correct) total
              density computed
              from contributions of all orbitals, instead of (default)
              just from the orbitals chosen by user.
              </HELP>
              </KEYWORD>

:kword:`VB`
  This keyword enables plotting of the orbitals from the latest :program:`CASVB` orbitals.
  Note that the appropriate :file:`RASORB` orbitals must be available in the :file:`INPORB` file.

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="VB" KIND="SINGLE" LEVEL="ADVANCED">
              %%Keyword: VB <advanced>
              %%Tested: NONE
              <HELP>
              Plots orbitals from the latest CASVB calculation.
              </HELP>
              </KEYWORD>

:kword:`ATOM`
  Calculate density at the position of atoms.

  .. xmldoc:: <SELECT MODULE="GRID_IT" NAME="FORMAT" APPEAR="Output Format" LEVEL="ADVANCED" CONTAINS="DEFAULT,ASCII,ATOM,CUBE">

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="ATOM" KIND="SINGLE" LEVEL="ADVANCED" EXCLUSIVE="ASCII">
              %%Keyword: ATOM <advanced>
              %%Tested: ##071 ##219
              <HELP>
              Calculate density in the position of atoms
              </HELP>
              </KEYWORD>

:kword:`ASCII`
  Obsolete keyword for ASCII format of output file. This option can only
  be used in combination with :kword:`NOLUSCUS`.
  This keyword is useful if a calculation
  of the grid file and visualization should be done on computers with
  different architectures.

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="ASCII" KIND="SINGLE" LEVEL="ADVANCED" EXCLUSIVE="ATOM">
              %%Keyword: ASCII <advanced>
              %%Tested: NONE
              <HELP>
              Obsolete keyword for ASCII format of output file. This option can only
              be used in combination with NOLUSCUS
              </HELP>
              </KEYWORD>

  .. xmldoc:: </SELECT>

:kword:`NPOInts`
  Keyword, followed by 3 integers equal to number of grid points
  in x, y, z directions. Using for non-automatic choice of grid network.

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="NPOINTS" APPEAR="nPoints" KIND="INTS" SIZE="3" LEVEL="ADVANCED" EXCLUSIVE="GRID">
              %%Keyword: Npoints <advanced>
              %%Tested: NONE
              <HELP>
              Keyword, followed by 3 integers equal to number of grid points
              in x, y, z directions
              </HELP>
              </KEYWORD>

:kword:`GRID`
  Keyword to set manually coordinates of a grid. Followed by number of
  Cartesian coordinates, and on next lines --- x y z coordinates of
  a grid (in a.u.)

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="GRID" KIND="REALS_COMPUTED" SIZE="3" LEVEL="ADVANCED" EXCLUSIVE="NPOINTS">
              %%Keyword: GRID <advanced>
              %%Tested: NONE
              <HELP>
              Keyword to set manually coordinates of a grid. Followed by number of
              Cartesian coordinates, and on next lines -- x y z coordinates of
              a grid (in a.u.)
              </HELP>
              </KEYWORD>

:kword:`GORI`
  Keyword to set manually the parallelepiped spanning a grid.
  Followed by four lines of three columns each.
  The first line defines the x y z location of the origin,
  the next three lines are three linearly independent vectors
  that span the parallelepiped of the grid.
  This keyword requires :kword:`NPOINTS` to build up the lattice of gridpoints.

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="GORI" KIND="REALS" SIZE="12" LEVEL="ADVANCED" EXCLUSIVE="GRID" REQUIRE="NPOINTS">
              %%Keyword: GORI <advanced>
              %%Tested: NONE
              <HELP>
              Keyword to set manually the parallelepiped spanning a grid.
              Followed by four lines of three columns each.
              The first line defines the x y z location of the origin,
              the next three lines are three linearly independent vectors
              that span the parallelepiped of the grid.
              This keyword requires NPOINTS to build up the lattice of gridpoints.
              </HELP>
              </KEYWORD>

:kword:`NOLUSCUS`
  Produce data file in obsolete format (which can be read by old
  (before 2015) versions of :program:`GV`).

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="NOLUSCUS" APPEAR="Old grid format" KIND="SINGLE" LEVEL="ADVANCED">
              %%Keyword: NOLUSCUS <advanced>
              %%Tested: NONE
              <HELP>
              Produce data file in obsolete format (which can be read by old
              (before 2015) versions of GV)
              </HELP>
              </KEYWORD>

:kword:`XFIELD`
  Use :program:`Grid_It` in a special mode (to produce the grid for non-cartesian points).

  .. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="XFIELD" KIND="SINGLE" LEVEL="ADVANCED">
              %%Keyword: XFIELD <advanced>
              %%Tested: NONE
              <HELP>
              Use Grid_It in a special mode (to produce the grid for non-cartesian points).
              </HELP>
              </KEYWORD>

Input example
.............

An example for high quality picture, containing selected orbitals (from symmetry 1 and 4): ::

  &GRID_IT
  Dense
  Select
  1:10-20,4:3-7

An example for screen quality picture, containing all orbitals: ::

  &GRID_IT
  SPARSE; PACK
  ALL

An example for selection orbitals with partial occupation: ::

  &GRID_IT
  ORange = 0.01 1.99

.. xmldoc:: <KEYWORD MODULE="GRID_IT" NAME="ONE" KIND="REALS" SIZE="7" LEVEL="UNDOCUMENTED" />

.. xmldoc:: </MODULE>