visualize atomic mode and genetrate displacement vectors (normal/local mode, arbitary path)
$ git clone https://github.com/KenHino/PyVibLocalizer- In WSL2 or Ubuntu,
$ sudo apt install blender- In Mac,
$ brew install --cask blenderor simply install from homepage.
- First, modify PATH related to blender in
CMakeLists.txtin PyVibLocalizer directory. Below is an example of PATH in Mac OS. (In Ubuntu, this may be/usr/bin/blender)
set(BPython "/Applications/Blender.app/Contents/Resources/3.5/python/bin/python3.10")
set(BPythonDir "/Applications/Blender.app/Contents/Resources/3.5/python/")
set(Blender "/Applications/Blender.app/Contents/MacOS/Blender")- Next, move to
testdirectory and makebuilddirectory. And executecmake.
$ cd test
$ mkdir build
$ cd build
$ cmake ../..- At last, activate virtual environment and execute a some example file such as
work/ch2o.py.
$ source venv/bin/activate
$ blender --python main.py- And you can also use jupyter notebook in blender.
$ jupyter-labIn jupyter notebook, you can use blender_kernel to execute blender script.
J. Chem. Phys. 130, 084106 (2009)
- Pipek-Mezy metric
- Boys metric
To maximize, metrices, this program used scipy.optimized.minimize_scalar, in jacobi sweep method. The choice of unitary rotation mode pair is based on window frequency.: J. Chem. Phys. 145, 124112 (2016) Default window frequency set as 400 cm-1.
Group localized coordinate is one of the local mode, which diagonalize subspace mass-weighted hessian whose subspace is defined by your selction of atoms.
- See here
- To run this program, execute
python {$mol_name}.pyorblender --python {$mol_name}.py(example; mol_name=src/ch2o)
