Skip to main content

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://gitlab.com/relmendorp/avlwrapper.git@master

Requirements

AVL (link, repo) 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

avlwrapper-0.3.2.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

avlwrapper-0.3.2-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file avlwrapper-0.3.2.tar.gz.

File metadata

  • Download URL: avlwrapper-0.3.2.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for avlwrapper-0.3.2.tar.gz
Algorithm Hash digest
SHA256 2bac0d8d18183f3ff13b49d9ec6c391c0a86605e2d592d8dd2a24ce8dee4ba8a
MD5 ba301646fa4a77d6f7cff004f321943e
BLAKE2b-256 5ad0118a1d551a49e5de23e4afc73ccc2868aad47558f771a53de1c470c1314e

See more details on using hashes here.

File details

Details for the file avlwrapper-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: avlwrapper-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 33.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for avlwrapper-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33dcc32e20932d37a252a7d63ab478f9afce5922d92557028b7855c802ed4b44
MD5 f8732631213f3bf45d6033d1a74fe77a
BLAKE2b-256 743b75e61a9e5c07e34c4a962080708187fda00358f6f13772437d5637960fa9

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