Skip to main content

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


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)

Uploaded Source

Built Distribution

pqinput-0.0.3-py2.py3-none-any.whl (18.4 kB view details)

Uploaded Python 2 Python 3

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

Hashes for pqinput-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b14ab58a89bf66e18f0a873aa4248d7b8e81f396b8293404fe7578d348271f56
MD5 a3e2e69f177d9d6a12ab4240c5ec441d
BLAKE2b-256 96fd877f9a082a3ffba7b30539060b14a22c8d648a80248df0f0538452f3fa63

See more details on using hashes here.

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

Hashes for pqinput-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b113123db22ba8893e722553f789b41f0144b71bc88aa697e8365aee5de50836
MD5 211dffd8774ce0a28228625873496b0d
BLAKE2b-256 5944eeacda92b872e6905ba99bdd3a259f136e5d0f437952dba38c3f3e7d86c1

See more details on using hashes here.

Supported by

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