Python interface for MIT AVL (Athena Vortex Lattice)
Project description
AVLWrapper
Python interface for MIT AVL (Athena Vortex Lattice)
Description
Currently implemented:
Geometry definition
Case definition
Running operating-point run cases
Results parsing
Not implemented (yet):
Mass definition
Eigen-mode analyses
Time-domain analyses
Installation
AVLWrapper can be installed from PyPI:
$ pip install avlwrapper
Or can be installed from Git:
$ pip install git+https://github.com/renoelmendorp/AVLWrapper.git@master
Requirements
AVL (link) should be installed. If installed on a location in $PATH or in the module directory, the wrapper will locate it with the default configuration. See Changing settings how to change the executable path to a custom location.
(optional) Ghostscript is required to convert and save plots as pdf, jpeg, or png. Ghostscript can be installed on Linux/MacOS with a package manager:
Linux:
$ apt-get install ghostscript
MacOS:
$ brew install ghostscript
For Windows, Ghostscript can be found on the website.
Usage
For usage examples, see the example.ipynb notebook.
Changing settings
To change settings, make a local copy of the settings file:
from avlwrapper import default_config
default_config.local_copy()
By default the wrapper will look for a configuration file in the working directory and module directory. If you would like to use a different configuration file, you need to give the path to the session:
from avlwrapper import Configuration
my_config = Configuration(path_to_file)
session = Session(..., config=my_config)
Development
Tests
To run tests in development, first install the development requirement into your environment:
pip install -r requirements-dev.txt
Then, from the source directory of the repo:
pytest -vv tests
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
Hashes for avlwrapper-0.3.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 682a9f01295ab592e2baefb84f15554ff4e5ffe5a7ed2cf72a988a6e99c53b17 |
|
MD5 | 27b46aa6213b7ed8b0d57ee12fd60424 |
|
BLAKE2b-256 | 1478b8fa5078b2535f5fbfa7b1de33bbfda17748240e7ee05c7cbdbdbd8bcbd7 |