st_fileread#

Parses AVL .st stability output files from a directory into a list of StResult dataclasses.

Parse AVL stability derivative output files (.st).

class avl_aero_tables.st_fileread.StResult(filename: 'str', controls: 'dict[str, str]'=<factory>, data: 'dict[str, float]'=<factory>)[source]#

Bases: object

Parameters:
  • filename (str)

  • controls (dict[str, str])

  • data (dict[str, float])

controls: dict[str, str]#
data: dict[str, float]#
filename: str#
avl_aero_tables.st_fileread.st_fileread(path)[source]#

Parse .st files and return a list of StResult (one per file).

Accepts either a directory (reads all *.st files) or a single .st file.

Example

>>> from avl_aero_tables.st_fileread import st_fileread
>>> results = st_fileread("tests/data/bd_alpha5_beta0.st")
>>> len(results)
1
>>> results[0].filename
'bd_alpha5_beta0.st'
>>> results[0].data["Alpha"]
5.0
>>> results[0].data["CLtot"]
0.58447
>>> results[0].controls
{'d01': 'flap', 'd02': 'aileron', 'd03': 'elevator', 'd04': 'rudder'}
Parameters:

path (str | Path)

Return type:

list[StResult]