An interface to produce Pandas DataFrames from Fluent XY output files.
Project description
fluentxy
A small package to parse .xy output files from Fluent into Pandas DataFrames.
The typical .xy output from Fluent looks like
(title "Axial Velocity")
(labels "Position" "Axial Velocity")
((xy/key/label "inlet")
0 0.2
...
0.00873 0.2
)
and this module parses this output into a DataFrame that looks like
from fluentxy import parse_data
with open('filename.xy', 'r') as f:
lines = f.readlines()
data = parse_data(lines)
data.head()
inlet
Position Axial Velocity
0 0.000000 0.2
1 0.000582 0.2
2 0.001164 0.2
3 0.001746 0.2
4 0.002328 0.2
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
fluentxy-0.1.0.tar.gz
(10.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
fluentxy-0.1.0-py3-none-any.whl
(31.6 kB
view details)
File details
Details for the file fluentxy-0.1.0.tar.gz.
File metadata
- Download URL: fluentxy-0.1.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.21.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68ca3d8d3ab2f7d832f5eb75ff5383fd188af5fc6ef58b210b6c26316d51b44d
|
|
| MD5 |
a8f1e187f1e88ca13bf16a7169807089
|
|
| BLAKE2b-256 |
2a8bb063a58874a0f0138dafea1908fe95290d3ff4a5660e56bb884a4253e241
|
File details
Details for the file fluentxy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fluentxy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 31.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.21.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3069650fa489ea7775ab31c130881410d7d67dd3ae7bd8b0e4fc10b157eb59f
|
|
| MD5 |
cadf07f07bc46d97ead5b3576eb131ed
|
|
| BLAKE2b-256 |
933657e9e6934572a3c4f7df7c93c8ab39b5624b67fcd73b697f0dc9f33b1e03
|