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.31.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

pqinput-0.0.31-py2.py3-none-any.whl (18.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pqinput-0.0.31.tar.gz.

File metadata

  • Download URL: pqinput-0.0.31.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.31.tar.gz
Algorithm Hash digest
SHA256 6238ce2e049c533b8963bbc8cab471764a6c9ea823a297e973a0c90ae76b4c75
MD5 a8ad14708c865f77a16079076bae6384
BLAKE2b-256 6d107158068585db2ec0add4ead67682720aca9f76f8d527a665fb43fc1ed439

See more details on using hashes here.

File details

Details for the file pqinput-0.0.31-py2.py3-none-any.whl.

File metadata

  • Download URL: pqinput-0.0.31-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.5 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.31-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4246b05b940e4475e7205885f60678ed2ec27a7643d5b50acd393bf89fe775f3
MD5 488b71696091afc3e56996774f59bc8b
BLAKE2b-256 11418beaac49496775f24a9398bb3e7b75c70cbc7820e43df90b37875489866d

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