A pure Python reader for the EnSight Gold format
Project description
ensight-reader
This library provides a pure Python reader for the EnSight Gold data format, a common format for results of computational fluid dynamics (CFD) simulations.
It's designed for efficient, selective, memory-mapped access to data from EnSight Gold case -- something that would be useful when importing the data into other systems.
If you're looking for a more "batteries included" solution, look at
vtkEnSightGoldBinaryReader
from the VTK library.
Requirements
- Python 3.7+
- NumPy
Example
import ensightreader
case = ensightreader.read_case("example.case")
geofile = case.get_geometry_model()
part_names = geofile.get_part_names() # ["internalMesh", ...]
part = geofile.get_part_by_name(part_names[0])
N = part.number_of_nodes
with open(geofile.file_path, "rb") as fp_geo:
node_coordinates = part.read_coordinates(fp_geo) # np.ndarray((N, 3), dtype=np.float32)
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
ensight-reader-0.9.0.tar.gz
(18.2 kB
view hashes)
Built Distribution
Close
Hashes for ensight_reader-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5c0cce5e468885be404a9e7f53358860d7fef940d32168b83b83e3b6568895c |
|
MD5 | b6f30e3e599034af867b7e4838f31737 |
|
BLAKE2b-256 | 48891ca1606dd15c9e71630523cc436c0ba3f1b8c4e5eb6733e9435e06a589d5 |