Skip to main content

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

Download files

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

Files for fluentxy, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size fluentxy-0.1.0-py3-none-any.whl (31.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size fluentxy-0.1.0.tar.gz (10.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page