pytornado.stdfun package¶
Submodules¶
pytornado.stdfun.run module¶
PyTornado standard functions
Developed for Airinnova AB, Stockholm, Sweden.
-
class
pytornado.stdfun.run.StdRunArgs(run=None, verbose=False, debug=False, quiet=False)¶ Bases:
objectArguments used in ‘standard_run’
- Attributes:
run: name of file to be loaded verbose: boolean flag, true for verbose logger setting debug: boolean flag, true for debug logger setting quiet: boolean flag, true for quiet logger setting
-
pytornado.stdfun.run.clean_project_dir(settings)¶ Remove old files in project directory
- Args:
settings: settings instance
-
pytornado.stdfun.run.get_settings(settings_filepath)¶ Read settings and return a settings instance
-
pytornado.stdfun.run.standard_run(args)¶ Run a standard analysis
- Args:
args: arguments (see StdRunArgs())
pytornado.stdfun.setup module¶
Generate project directory folder structure with input file templates.
Developed at Airinnova AB, Stockholm, Sweden.
-
pytornado.stdfun.setup.cpacs2pytornado(file_cpacs)¶ Load a CPACS file and export JSON Aircraft and state files
- Args:
file_cpacs: (string) absolute path to project directory
-
pytornado.stdfun.setup.setup_wkdir(aircraft_file=None)¶ Create a template working directory with a minimal working example
- Notes:
- The project directory contains all data related to the aircraft model
- This includes flight state definitions and execution settings
- The native format is used
- Args:
aircraft_file: (str) Full aircraft file path