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 

Upload in PyPI

pip install twine 
twine upload dist/* 

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.3.tar.gz (33.9 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.3-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydust_utils-0.1.3.tar.gz
  • Upload date:
  • Size: 33.9 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.3.tar.gz
Algorithm Hash digest
SHA256 5fd39d4a12e307c8ee9aa77eb7405241bf40d968b8f9a1f29e267206f9fb8a5c
MD5 b0b760e9bba0b3e020fef6a1f4ade072
BLAKE2b-256 c0ea29c1c5fcdf106ec94b48af03ef34a1508175026ddcd586f832bb78d3d9f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydust_utils-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 20.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b2888dc145cefb3030ac86983a52296fce4a3bdfb7e0daf6a9cc9cc4262fd80d
MD5 c894e7983459feae391db8d69957527d
BLAKE2b-256 079e96eb1dca1d74a549c3e5ea3ab13ec49343bb690f328c85e585bb171970b7

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