Skip to main content

Orbital viewer for OpenMolcas

Project description

Pegamoid

Pegamoid is an orbital viewer especially suited for use with OpenMolcas. It can be used to view orbitals and quickly select active spaces for use in CASSCF or RASSCF calculations.

Features

The following formats can be opened:

  • HDF5 files, as generated by some (Open)Molcas modules like SCF or RASSCF, if compiled with HDF5 support.

  • InpOrb files, generated by some (Open)Molcas modules like SCF or RASSCF, provided an HDF5 file for the same system was opened first.

  • Molden files.

  • Luscus files, generated by the GRID_IT module.

  • Grid files (ASCII), generated by the GRID_IT module.

  • Cube files (formatted).

For HDF5, InpOrb and Molden files, orbitals are computed on the fly from the basis set, and it is possible to change the sampling resolution and shape and size of the sampled volume. Luscus, grid and cube files contain precomputed volumetric data and only the existing data can be displayed.

Depending on availability in the input file, the following features and objects are supported:

  • Selection of orbital.

  • Selection of spin.

  • Selection of symmetry irrep.

  • Natural average or state-specific orbitals.

  • Electron density and Laplacian.

  • Natural average or state-specific spin orbitals.

  • Spin density.

  • Natural difference orbitals.

  • Difference, attachment and detachment density.

  • Natural transition orbitals.

  • Hole and particle density.

For any orbital or density, gradient lines can be computed and displayed (particularly significant for the electron density). Densities can be computed for reduced subsets of orbitals (for instance, only for the active orbitals), and the user can write arbitrary notes for each orbital.

The value and opacity used to display isurfaces can be adjusted and the display of the following elements can be toggled:

  • Positive and negative parts of the isosurface.

  • Nodal surfaces.

  • Nuclei.

  • Atom labels.

  • Volume box.

Finally, the type of orbital (inactive, active...) can be changed and the orbitals saved in the following formats usable in the (Open)Molcas programs:

  • HDF5 format.

  • InpOrb format.

or the current volumetric data or snapshot can be saved as:

  • Cube format.

  • PNG image.

Installation

The recommended way to install Pegamoid is by using the pip package manager:

pip install Pegamoid

(you may also want to add the flags --upgrade and/or --user).

There are other ways to get Pegamoid. One is cloning the git repository, e.g.

git clone https://gitlab.com/Jellby/Pegamoid.git

Another way, since Pegamoid is contained in a single python script, is downloading only the script file pegamoid.py.

Once the program is fetched, it can be run directly or through a python interpreter, no installation is needed, i.e.

./pegamoid.py

or

python pegamoid.py

However, the script has some requirements (this should be taken care of by pip, if you use it) that must be installed for it to work:

  • Python 2 or python 3 (at least versions 2.7 and 3.4 have been tested).

  • Qt with python bindings. PyQt 4, PyQt 5 and Pyside have been tested. It is recommended to install the python module qtpy (needed for Pyside).

  • VTK with python bindings. Version 8.1.0 has been tested, earlier versions will most likely not work.

  • The numpy and h5py python modules.

  • Other python modules that may not be installed by default, it should be clear which ones, if any, are needed when trying to run Pegamoid.

Use with a remote connection

Production calculations are usually not run on the local machine, but on some remote server like a supercomputer. To view/save/modify orbital files, it is always possible to transfer the files between the local and remote machines. It is, however, more convenient to run Pegamoid directly on the remote machine and have the graphical interface display in the local machine. Unfortunately, there are some difficulties that make this nontrivial.

First, the different requirements may not be installed in the remote system. A possible solution is installing them for the user account with e.g. pip install --user. In this case it will probably be easier to install qtpy and Pyside instead of PyQt.

Then, the VTK visualization uses some advanced OpenGL features that may not be available with all graphical drivers and it could be challenging to make it work through a remote connection. We have had success running Pegamoid with vglrun inside a ThinLinc session, or a VNC session opened directly from an ssh connection. The specific needs and working solution will probably depend on the hardware and software available in the remote computer.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Pegamoid-2.0.1.tar.gz (50.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

Pegamoid-2.0.1-py3-none-any.whl (50.6 kB view details)

Uploaded Python 3

Pegamoid-2.0.1-py2-none-any.whl (50.6 kB view details)

Uploaded Python 2

File details

Details for the file Pegamoid-2.0.1.tar.gz.

File metadata

  • Download URL: Pegamoid-2.0.1.tar.gz
  • Upload date:
  • Size: 50.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.6

File hashes

Hashes for Pegamoid-2.0.1.tar.gz
Algorithm Hash digest
SHA256 aae7bd81440ca8a93575fa6165727c65b3c7a8b42ebd9d0726828e7dd9c58cdb
MD5 8e1392a5ce414b6f53b2be6f223f23a2
BLAKE2b-256 87a081efac8b97597bcbafb1f73390d85f86fca4596021f39c49f91d32df8e47

See more details on using hashes here.

File details

Details for the file Pegamoid-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: Pegamoid-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 50.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.6

File hashes

Hashes for Pegamoid-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1bb69f6c5c86e3c7eebf5ffdf634d535802762ecf0904622d49efc8c73315bd7
MD5 68666e600c44b21631c52c5e0a923b70
BLAKE2b-256 b8416409dad3301d365c7c8b029d54a5a30e369f0f7a7bd93d42110aef426d1c

See more details on using hashes here.

File details

Details for the file Pegamoid-2.0.1-py2-none-any.whl.

File metadata

  • Download URL: Pegamoid-2.0.1-py2-none-any.whl
  • Upload date:
  • Size: 50.6 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.6

File hashes

Hashes for Pegamoid-2.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 b906c0e0661068ee3e888e3bd4d0e272800daaf04054c86e3dd06dc5bb8d4793
MD5 3cf4506f9f8b77f85d251d459e807879
BLAKE2b-256 048b646d70522122d6bfd05309495af6e830159bf022b4ed301c5dc151ab60da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page