Skip to main content

DPF architecture: server and client

DPF uses a client-server architecture, which means it’s split into two parts that work together: alt text The DPF Server:
  • Contains all the data processing capabilities (operators, plugins)
  • Requires access to the data or result files of interest
  • Loads and manages your simulation data in memory
  • Performs all the computational work
  • Can run locally on your machine or remotely on more powerful hardware
The DPF Client:
  • Provides the programming interface you interact with (Python, C++, or C#)
  • Sends your processing requests to the server
  • Receives results back from the server
  • Makes it easy to build workflows without worrying about the underlying complexity
Why this separation matters: This architecture gives you flexibility in how you use DPF. You write your scripts using the client library in your preferred language, and the server handles the heavy computational work. The client and server can run on the same machine for local work, or you can connect to a remote server for processing large datasets on more powerful hardware.

Where to get a DPF server

The DPF server is distributed to customers in two ways: 1. DPF Included with Ansys Installation When you install Ansys Workbench (which comes with any Ansys physical simulation product) using the Ansys Installer, DPF server is automatically included in the installation. This means you don’t need a separate DPF installation - it’s already there as part of your Ansys installation. You can:
  • Use it from within Mechanical’s scripting environment
  • Connect to it from external Python, C++, or C# scripts
  • Access it just like you would with the standalone package described below
2. DPF Standalone Package A self-contained installation package that includes:
  • The DPF server with all core plugins
  • Everything needed to run DPF independently
This package can be downloaded separately and installed on any machine. You can then connect to it using any of the DPF client libraries (Python, C++, or C#). Key difference between the two options: The DPF server installed through the Ansys Installer includes all official Ansys plugins (core plugins, composites, sound processing, etc.). The standalone package includes core functionality but may not include all specialized plugins. For access to the complete set of DPF capabilities, use the version that comes with your Ansys installation.

Client libraries: choose your language

DPF client libraries are available in multiple programming languages, all providing the same capabilities:
  • PyDPF-Core (Python): The most popular choice for scripting and automation. Easy to learn, excellent for data analysis and integration with scientific Python tools (NumPy, Matplotlib, Pandas).
  • DPF C++ API: For high-performance applications or integration with C++ codebases.
  • DPF C# API: For integration with .NET applications or Windows-based tools.
All these libraries communicate with the same DPF server, so you can choose the language that best fits your workflow and existing tools. Core DPF concepts - operators, fields, and workflows - are available across all client languages, as they reflect the server’s capabilities directly.

DPF in Mechanical (MechDPF)

Ansys Mechanical provides built-in access to DPF through its scripting environment, allowing you to perform custom data processing without installing additional software. How to access DPF in Mechanical (MechDPF):
  • Use the Mechanical Scripting View for interactive MechDPF scripts or to debug and validate a script.
  • Use the Python Code objects to execute MechDPF scripts in response to events occurring in the Mechanical application for a given workflow
  • Use Python Result objects to evaluate and visualize output quantities by executing MechDPF scripts
The MechDPF API is based on the DPF C# API, but presents a Python syntax through IronPython, making it accessible to Python users without learning C#.