From 6ab916d2d0c45432935d3c71236e0869ac76b0f7 Mon Sep 17 00:00:00 2001 From: Oleg Peil Date: Sun, 1 Mar 2015 13:09:31 +0100 Subject: [PATCH] Added (empty) function 'plo_output()' --- python/converters/vasp/python/plotools.py | 50 +++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/python/converters/vasp/python/plotools.py b/python/converters/vasp/python/plotools.py index 245d1810..7d69c79c 100644 --- a/python/converters/vasp/python/plotools.py +++ b/python/converters/vasp/python/plotools.py @@ -325,6 +325,11 @@ class ProjectorShell: +################################################################################ +# +# generate_ortho_plos +# +################################################################################ def generate_ortho_plos(conf_pars, el_struct): """ Parameters @@ -357,3 +362,48 @@ def generate_ortho_plos(conf_pars, el_struct): return pshells, pgroups + +################################################################################ +# +# plo_output +# +################################################################################ +# TODO: k-points with weights should be stored once and for all +def plo_output(conf_pars, pshells, pgroups): + """ + Outputs PLO groups into text files. + + Filenames are defined by that is passed from config-file. + All necessary general parameters are stored in a file '.ctrl'. + + Each group is stored in a '.plog' file. The format is the + following: + + # Energy window: emin, emax + ib_min, ib_max + # Eigenvalues + ik1, kx, ky, kz, kweight + ib1, ib2 + eig1 + eig2 + ... + eigN + ik2, kx, ky, kz, kweight + ... + + # Projected shells + Nshells + # Shells: + Shell 1 + ndim + # complex arrays: plo(ns, nion, ndim, nb) + ... + # Shells: + Shell 2 + ... + + """ +# TODO: add BASENAME option to config parameters. + basename = 'vasp' + +