Examples#
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
.
Name |
Description |
---|---|
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. |
|
Query an existing project and download output files. |
|
Submit an MAPDL analysis as a single job. Solution convergence and contact tracking files are periodically collected. |
|
Submit an MAPDL linked analysis workflow as a multi-task job to the HPS server. |
|
Submit, monitor, and download results of an LS-DYNA job. |
|
Submit a Fluent solve job to the HPS server. |
|
Submit a Fluent solve job to the HPS server using an execution script. |
|
Submit a CFX solve job to the HPS server using an execution script. |
|
Create an HPS project that solves a two-bar truss problem with Python. |