Create input files for QDng calculations
Project description
Python package for making QDng calculations inputs
Module:
inpxml.py
: InpXML class with methods designed for the creation of xml structures intended as input files for quantum chemistry calculations with QDng package. Requires lxml.
Example:
In: mCO = 1240 T = {'head':'T', 'name':"GridNablaSq", 'mass':mCO} Vg = {'head':'V', 'name':"GridPotential", 'file':'pot_Vg'} Ve = {'head':'V', 'name':"GridPotential", 'file':'pot_Ve'} mel = {'head':'m0.0', 'name':'Sum', 'Opes':[T, Vg]}
Hparams = {'type':'Sum', 'Mels':mel}
WFpar = {'type':'file', 'states':1, 'file':'wfguess', 'normalize':False}
propapar = {'dt': 0.165697, 'steps': 500, 'wcycle': 100, 'dir': 'propa_files', 'nfile': 'norm'}
prop = InpXML()
prop.program('propa', propapar, WFpar)
prop.propagation('Cheby', Hparams)
prop.addfilter('filterpost', {'expeconly':{'name':'Flux', 'int':'True'}})
prop.show()
Out:
<qdng>
<propa dt="0.165697" steps="500" wcycle="100" dir="propa_files" nfile="norm">
<propagator name="Cheby">
<hamiltonian name="Sum">
<T name="GridNablaSq" mass="1240"/>
<V name="GridPotential" file="pot_Vg"/>
</hamiltonian>
</propagator>
<wf file="wfguess"/>
<filterpost>
<expeconly name="Flux" int="True"/>
</filterpost>
</propa>
</qdng>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pqinput-0.0.3.tar.gz
(10.7 kB
view details)
Built Distribution
File details
Details for the file pqinput-0.0.3.tar.gz
.
File metadata
- Download URL: pqinput-0.0.3.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b14ab58a89bf66e18f0a873aa4248d7b8e81f396b8293404fe7578d348271f56 |
|
MD5 | a3e2e69f177d9d6a12ab4240c5ec441d |
|
BLAKE2b-256 | 96fd877f9a082a3ffba7b30539060b14a22c8d648a80248df0f0538452f3fa63 |
File details
Details for the file pqinput-0.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: pqinput-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b113123db22ba8893e722553f789b41f0144b71bc88aa697e8365aee5de50836 |
|
MD5 | 211dffd8774ce0a28228625873496b0d |
|
BLAKE2b-256 | 5944eeacda92b872e6905ba99bdd3a259f136e5d0f437952dba38c3f3e7d86c1 |