Skip to main content

An utility to read low-pressure gaseous cross sections data

Project description

ZCross

ZCross is a python library used to read low pressure gas sections from various sources like LXCat.

Installation

To install this package just use pip:

pip install zcross

After installing it is necessary to download the cross-section databases. As today, only the LXCat dataset is available.

After downloading the database, uncompress and copy to a shared directory such as:

/opt/zcross-data/

and configure the $ZCROSS_DATA enviroment variable in your .bashrc or in /etc/profile.d/zcross.sh

export ZCROSS_DATA=/opt/zcross-data/

Unfortunately, due licensing issues, we are not able to distribute the cross section database and we are closely working with the LXCat to make them available. Please contact the authors of this module for support or updates about the databases availability.

Examples

List the database availables:

from zcross import ZCross

z = ZCross()
for database in z.databases:
	print(database)

Show the groups and references of a speficic database:

from zcross import ZCross

z = ZCross()
database = z.databases[0]

for group in database.groups:
	print(group)

for reference in database.references:
	print(reference.bibtex())

Show the process of a specific group:

from zcross import ZCross

z = ZCross()
database = z.databases[0]
group      = database.groups[0]

for process in group.processes:
	print("Process {} (type: {}) : {}".format(process.id, process.collisionType, process))
	print("Comment: {}\n".format(process.comment))

Show the cross section table of a specific process:

from zcross import ZCross

z = ZCross()
database = z.databases[0]
group    = database.groups[0]
process  = group.processes[0]

print('Energy [{}],\tArea [{}]'.format(process.energy_units, process.cross_section_units))

for energy, area in zip(process.energy, process.cross_section):
	print('{:8.2f}\t{:e}'.format(energy, area))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

zcross-0.0.1-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

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