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

Uploaded Source

Built Distribution

pqinput-0.0.32-py2.py3-none-any.whl (18.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pqinput-0.0.32.tar.gz
  • Upload date:
  • Size: 10.8 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.32.tar.gz
Algorithm Hash digest
SHA256 934bd00426fbe8d48968877147dbedb2d1f54fd389f5913bc5b295783ad5d753
MD5 408429a4359087a88848de88dacadd53
BLAKE2b-256 d1dd497b87a21f508ab782a9a4fd92c6602f6ec450d6b4d8107e2e80e7895932

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pqinput-0.0.32-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.6 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.32-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d9dce721efb4b429e7f2b979ac6fbe114e1729ea9936c3fc08f3781300154b90
MD5 4c4ffc0bfa6cab1a01764cf894e2e5df
BLAKE2b-256 e76844b9103a3e90aa7f306464c7072dea291b06a69bf8c9ddf8cc79ebcaf2c7

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