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


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 hashes)

Uploaded Source

Built Distribution

fluentxy-0.1.0-py3-none-any.whl (31.6 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