Skip to main content

Python utilities for DUST pre- and postprocessing

Project description

PyDUST

Python library for parsing and analyzing DUST post-processing output files.

Installation

Requirements: SSH key configured with GitLab

Install directly from the GitLab repository:

# Install latest from pydust branch
pip install git+ssh://git@gitlab.com/Alecocco.1994/dust-private.git@pydust#subdirectory=pydust

# Or install specific commit
pip install git+ssh://git@gitlab.com/Alecocco.1994/dust-private.git@abc1234#subdirectory=pydust

Development Installation

For development with editable mode:

git clone git@gitlab.com:Alecocco.1994/dust-private.git
git checkout pydust
cd dust-private/pydust
pip install -e ".[dev,docs]"

Quick Start

from pydust import read_sectional, read_probes, read_integral

# Read sectional loads
sectional_data = read_sectional('sectional_loads.dat')
print(sectional_data.sec.shape)  # (n_time, n_sec)

# Read probe velocities
probe_data = read_probes('probes_velocity.dat')
print(probe_data.velocities.shape)  # (n_time, n_probes, 3)

# Read integral loads
integral_data = read_integral('integral_loads.dat')
lift = integral_data.forces[:, 2]  # Extract lift force

Available Parsers

  • read_sectional - Sectional aerodynamic loads
  • read_probes - Velocity probe data
  • read_chordwise - Chordwise distributions
  • read_integral - Integral loads
  • read_hinge - Hinge loads

Documentation

Build documentation locally:

cd pydust_utils
source .venv-docs/bin/activate
sphinx-build -b html docs/source docs/build/html

Running Tests

cd pydust_utils
pip install -e ".[dev]"
pytest tests/

Build

pip install build 
python -m build 
pip install twine 

License

MIT License


Note: This is a private package for DUST team members. Ensure you have SSH access configured with GitLab before installation.

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

pydust_utils-0.1.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydust_utils-0.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file pydust_utils-0.1.0.tar.gz.

File metadata

  • Download URL: pydust_utils-0.1.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pydust_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0c5e9d61fbc5567254ac08737362c3d83ffe344678a2172fc67403d382d5986a
MD5 282a0c5f826651099cb50dac6a13db2d
BLAKE2b-256 a7fb62d54872e9133ecb903054a92f375be8310378b41d0cb789d3094791edff

See more details on using hashes here.

File details

Details for the file pydust_utils-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pydust_utils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pydust_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4fa31d52571785fd3b0f667b7c160fec43601f9fe0686f016ddfb391b00e487
MD5 6d35cd1c47a8654404ee46e233353f21
BLAKE2b-256 89f7fffcb0349d656219a4ece0d53a098d41ed8a400c21621d9c6d34e5f55dfd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page