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.4.tar.gz (33.4 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.4-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydust_utils-0.1.4.tar.gz
  • Upload date:
  • Size: 33.4 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.4.tar.gz
Algorithm Hash digest
SHA256 3e4d48c4ace179c144c70df5ec0b09aca13d360a8c236d93c10772229ddb0c54
MD5 1403790df77a9ac8764c08104e718dc8
BLAKE2b-256 5d04527bf39e1b61b89794ebf78dd80e2c32d8d930c3b65cc841bea5e1b7838e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydust_utils-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 20.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fa679f897cafcfb83b9d0c24087c0c23b76ec4d57990a04f40226d507be45773
MD5 5681fcc2c614c5a1701a61550f7f42fb
BLAKE2b-256 371e37082bd7988aaf2b4ea18bc1945260806789417c96aac0cfaf1209863893

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