python tools for handling field output of xshells code
Project description
Python modules and programs to handle outputs of the xshells code.
xsplot
xsplot is a python module and also a command line utility that can display:
- time evolution of quantities stored in the
energy.*
files, - slices and spectra produced by the
xspp
program from simulation fields.
For instance, from command line:
python -m xsplot energy.bench -c Eu # displays kinetic energy ('Eu') as a function of time
The same things within a python script or notebook:
import matplotlib.pyplot as plt
import xsplot
y = xsplot.load_diags('energy.bench')
plt.plot(y['t'],y['Eu'])
pyxshells
pyxshells is a python module to work with field*
files from simulations.
For instance:
import pyxshells
f = pyxshells.load_field('fieldU.bench')
kinetic_energy = f.energy()
print(kinetic_energy)
DOCUMENTATION
For more info, see https://nschaeff.bitbucket.io/xshells/Ch3.html
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
pyxshells-2.8.tar.gz
(24.0 kB
view details)
Built Distribution
pyxshells-2.8-py3-none-any.whl
(23.9 kB
view details)
File details
Details for the file pyxshells-2.8.tar.gz
.
File metadata
- Download URL: pyxshells-2.8.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9410533a8f281f67e9c2f1b7e172d0fb6f1a4437b24a69c14ee9dc99e248952 |
|
MD5 | fa9f9b24636bb56c76821e5e969c6c6b |
|
BLAKE2b-256 | 11036eb228de5bf6488fc4c81a6d9f58808266fe93e49c9a16d518386fd570b2 |
File details
Details for the file pyxshells-2.8-py3-none-any.whl
.
File metadata
- Download URL: pyxshells-2.8-py3-none-any.whl
- Upload date:
- Size: 23.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84ce98adc34cc56ea8102a22047091e75f1519dde7048aa7ad1098b49669a68e |
|
MD5 | dbfd1502e4f8aa204e408069002f94b4 |
|
BLAKE2b-256 | 6f481cf5499c65b34eb8b8c30670d4aa377321923fbc4bb6c7d1e20d9c744f97 |