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 loadsread_probes- Velocity probe dataread_chordwise- Chordwise distributionsread_integral- Integral loadsread_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydust_utils-0.1.1.tar.gz.
File metadata
- Download URL: pydust_utils-0.1.1.tar.gz
- Upload date:
- Size: 23.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f50954c34ecf5fa0386c57047d31664223e7e4b74ea439d252c81bd4ee5eb832
|
|
| MD5 |
0296aab3f71d3b384ad6bc342342f25c
|
|
| BLAKE2b-256 |
4b10707cb8d1c8ba81bd436245693a9025636a770fe0ea295363b745e619d2d8
|
File details
Details for the file pydust_utils-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pydust_utils-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9590d1e4c71ebbd30574da27b3856439538da1969abab9485540b3f70ef7ee9
|
|
| MD5 |
ab7c4c2b3b3155acc2e10f6855781505
|
|
| BLAKE2b-256 |
f0041df93c1743c70257e809d672dfb60a28bb4e496c7295182539e6736f39fe
|