DPF architecture: server and client
DPF uses a client-server architecture, which means it’s split into two parts that work together:- 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
- 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
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
- The DPF server with all core plugins
- Everything needed to run DPF independently
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.
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