Skip to content

Python Script to generate AAS Simulation Model Port Connectors from an FMU

License

Notifications You must be signed in to change notification settings

s-heppner/fmu_ports_to_aas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FMU Ports to AASX

This simple Python script generates an .aasx file with the ports from an .fmu file to in order to make creating a SimulationModel submodel easier.

Please note, that this is not compliant to the standardized Provision of Simulation Models submodel, since this script was created before this model was officialy released. It should only be used as reference to as how such a generation can be automated..

Installation

  • Requires Python 3.9 (Probably works with 3.7+ but is not tested. 3.6 will probably not work)
  • Pull or download this directory
  • In a terminal:
    • Navigate to the downloaded directory
    • Windows:
      • pip install -r requirements.txt
    • Linux:
      • pip3 install -r requirements.txt
  • Install the script as a package pip install -e .

How to use

Option 1: Call the functions you want in the script, by adding to the end of it

Option 2: Via the command line:

python fmu_to_aasx.py <aas_id_short> <path/to/.fmu> <path/to/output_file> 

Hereby the arguments are:

  • <aas_id_short>: The idShort of the AAS to be created
  • <path/to/.fmu>: The path to the .fmu file
  • <path/to/output_file>: The path to the output .aasx file

About

Python Script to generate AAS Simulation Model Port Connectors from an FMU

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages