The examples in this section show how to interact with an HPS server in Python using PyHPS. Each example consists of a Python script plus a data file, such as a solver input file. You can execute many Python scripts with these command-line arguments:

  • -n, --name: Name of the HPS project

  • -U, --url: URL or the HPS server (default: https://localhost:8443/hps)

  • -u, --username: HPS username (default: repuser)

  • -p, --password: HPS password (default: repuser)

  • -v, --ansys-version: Ansys version

A link to download the required resources is available on each example page. If desired, you can download the required resources for all examples by downloading one ZIP file.



MAPDL motorbike frame: Project creation

Create from scratch an HPS project consisting of an Ansys APDL beam model of a tubular steel trellis motorbike frame. This example shows how to create a parameter study and submit design points.

MAPDL motorbike frame: Project query

Query an existing project and download output files.

MAPDL tire performance

Submit an MAPDL analysis as a single job. Solution convergence and contact tracking files are periodically collected.

MAPDL linked analyses

Submit an MAPDL linked analysis workflow as a multi-task job to the HPS server.

LS-DYNA job submission

Submit, monitor, and download results of an LS-DYNA job.

Fluent 2D heat exchanger

Submit a Fluent solve job to the HPS server.

Fluent nozzle

Submit a Fluent solve job to the HPS server using an execution script.

CFX static mixer

Submit a CFX solve job to the HPS server using an execution script.

Two-bar truss

Create an HPS project that solves a two-bar truss problem with Python.