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.2.tar.gz (26.0 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.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydust_utils-0.1.2.tar.gz
  • Upload date:
  • Size: 26.0 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.2.tar.gz
Algorithm Hash digest
SHA256 0065c0a712e7348702f2d97029baca8ab98637503438f69e4b5cb0123cacd3e0
MD5 da6222a11958fbe991a97deaa1bf1370
BLAKE2b-256 ebbc6c66d21b149f14a279a3de4f01cf757977dd8dc9e7362168c010bb84948e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydust_utils-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 651a2b287caf89405583b2724d17b4d2743db380a695040ff48fc491bf44d3da
MD5 af41dbb417b424674a26fa921c9d77b6
BLAKE2b-256 c2de0cd476f7b78808f5c8693cf9d464368432af5439b6f91193dd475d4cd930

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