Skip to main content

Introduction

The AVxcelerate Post Controller REST API v0.1.0 is compatible with the AVX Architecture V2. This REST API allows you to manage post processing jobs

Features

Download concrete scenario files

It is possible to download concrete scenario files of simulation jobs To do this, you need to provides a list of sample_ids to generate concrete scenario files for those samples.
  • If ‘samples’ is empty or not provided, no concrete file is included.
  • If ‘samples’ is specified, than all the concrete files will be included for these samples in the zip.
You can also specify what kind of documents you want to download:
  • Scenario files
  • Asset files
If the parameter: “filter_by_asset_declaration” is empty or not provided, all the “common” asset data will be provided.

Download all assets of a simulation job from the Explore & Analyze app and run the simulation locally

  1. Run a simulation job with the Explore & Analyze web-app local-sim-1
  2. Once the job is completed, click the API icon on the results page local-sim-2 API swagger page opens.
  3. Go to the files section and to the /v1/files/stream-intermediate-file/ API command local-sim-3
  4. This process explains how to retrieve all simulation job data and use them to start a simulation locally. Fill the fields depending on the usage, the details of each attribute are below: 4.1 samples: Choose whether you need 1 or multiple sample from the drop-down. 4.2 filter_by_asset_declaration_list: You must specifiy what kind of assets you want to download, for example, for the scenario only add: [“scenario”] or for the scenario and map, add: [“scenario”, “map”]. Leave the field empty if you want to include all assets. 4.3 include_runme: Set it to true if you want to include runme.sh script in the downloaded asset. The script is used to run the simulation on your local computer. local-sim-4 Once you have filled all the fields, click Try it out and Execute. local-sim-5 local-sim-5.1 Prerequisists for the execution of a local simulation:
    • You must have a linux based system that can run bash script
    • Docker must be installed
    • Docker image used for the simulation must be accessible (either locally or via registry)
  5. To run the simulation locally: 5.1 Unzip the archive. 5.2 Set any environment variables required by the solver (for example, Simulation Framework requires ANSYSLMD_LICENSE_FILE variable to be set). 5.3 Run the runme script: ./runme.sh. local-sim-6 (the steps are available on the REST API url)

Python helper

The AVxcelerate python APIs are hosted as a python package on a cluster as part of the Explore service deployment. The developers can install the package using pip and use it to call AVx autonomy APIs without needing to make raw REST calls.

PyPi Regsitry URL:

The python package is hosted as PyPi compliant registry on each deployed cluster. The registry URL is like this:

Usage example

Pre-requisites: We assume that the system is running with the Ubuntu 22.04 version, and that the following tools are already installed:
  • python 3.10
  • pip 25.1
  • uv 0.6
And we assume that you are using AVx Autonomy Toolchain version 25R2.2 Step 1: Create virtual environment
Step 3: Install python packages:
  • ansys-api-avxcelerate-autonomy
  • ansys-avxcelerate-autonomy
Step 4: Use ansys-api-avxcelerate-autonomy and ansys-avxcelerate-autonomy in your python code