|  | 
| 1 | 1 | .. _user_guide_waysofusing: | 
| 2 | 2 | 
 | 
| 3 |  | -======================= | 
| 4 |  | -DPF scripting languages | 
| 5 |  | -======================= | 
| 6 |  | -DPF is available as a standalone tool and as a tool in Ansys Mechanical.  | 
| 7 |  | -Each one uses a different language for scripting, so you should decide  | 
| 8 |  | -whether you want to use standalone DPF or DPF in Mechanical before  | 
| 9 |  | -creating any scripts.  | 
| 10 |  | - | 
| 11 |  | -CPython | 
| 12 |  | -------- | 
| 13 |  | -Standalone DPF uses CPython and can be accessed with any Python console.  | 
|  | 3 | +======================================== | 
|  | 4 | +DPF capabilities and scripting languages | 
|  | 5 | +======================================== | 
|  | 6 | + | 
|  | 7 | +DPF as a Framework enabling data computation capabilities | 
|  | 8 | +--------------------------------------------------------- | 
|  | 9 | + | 
|  | 10 | +DPF application: kernel and operator's libraries | 
|  | 11 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 
|  | 12 | + | 
|  | 13 | +DPF is a framework that provides data computation capabilities. These capabilities are provided | 
|  | 14 | +through libraries of operators. To learn more about the computed data and the operator concepts, see :ref:`user_guide_concepts`. | 
|  | 15 | + | 
|  | 16 | +A DPF application is always composed of a kernel (DataProcessingCore and DPFClientAPI binaries), | 
|  | 17 | +that enables capabilities by loading libraries of operators (for example, mapdlOperatorsCore library | 
|  | 18 | +is basic library enabled by DPF). | 
|  | 19 | +This application is also called a **DPF Server application**. | 
|  | 20 | + | 
|  | 21 | +When starting a DPF application, you can customize the list of operator's libraries that the kernel loads. | 
|  | 22 | +To learn more on how to customize the initialization of a DPF application, see :ref:`user_guide_xmlfiles`. | 
|  | 23 | + | 
|  | 24 | +DPF client: available APIs and languages | 
|  | 25 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 
|  | 26 | + | 
|  | 27 | +DPF is a framework that provides data computation capabilities. These capabilities are | 
|  | 28 | +enabled using the DPF Server application. | 
|  | 29 | +These capabilities can be accessed through client APIs, as shown here: | 
|  | 30 | + | 
|  | 31 | + | 
|  | 32 | +.. image:: ../images/drawings/apis_2.png | 
|  | 33 | + | 
|  | 34 | + | 
|  | 35 | +1. DPF server application can be accessed using Ansys Inc product, or DPF Server package (see :ref:`ref_getting_started_with_dpf_server`) available on the Customer portal. | 
|  | 36 | + | 
|  | 37 | +2. Several client APIs are available (CPython, IronPython, C++, and so on). | 
|  | 38 | + | 
|  | 39 | +3. Communication in the same process, or through gRPC, allows you to have the client and the servers on different machines. | 
|  | 40 | + | 
|  | 41 | +Note that **IronPython and CPython APIs are different**, each has specific syntax. | 
|  | 42 | + | 
|  | 43 | +The **list of available operators when using DPF is independent from the language or API which is used**, it only depends | 
|  | 44 | +on how the DPF application has been initialized. | 
|  | 45 | + | 
|  | 46 | +Most of the DPF capabilities can be accessed using the operators. For more information about the existing operators, see the **Operators** tab. | 
|  | 47 | + | 
|  | 48 | +Enhance DPF capabilities | 
|  | 49 | +~~~~~~~~~~~~~~~~~~~~~~~~ | 
|  | 50 | + | 
|  | 51 | +The available DPF capabilities loaded in a DPF application can be enhanced by creating new operator's libraries. | 
|  | 52 | +DPF offers multiple development APIs depending on your environment. These plugins can be: | 
|  | 53 | + | 
|  | 54 | +- CPython based (see :ref:`user_guide_custom_operators`) | 
|  | 55 | + | 
|  | 56 | +- C++ based (see C++ documentation) | 
|  | 57 | + | 
|  | 58 | +DPF integration | 
|  | 59 | +--------------- | 
|  | 60 | +DPF is available as a standalone tool and as a tool in Ansys Mechanical. You should decide whether you want | 
|  | 61 | +to use standalone DPF or DPF in Mechanical before creating any scripts. | 
|  | 62 | + | 
|  | 63 | +DPF as a standalone application | 
|  | 64 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 
|  | 65 | + | 
|  | 66 | +**Standalone DPF** can be used through any of the previously mentioned APIs. | 
|  | 67 | + | 
|  | 68 | +In particular, DPF Standalone capabilities can be enabled using **CPython** and can be accessed via any Python console. | 
| 14 | 69 | Data can be exported to universal file formats, such as VTK, HDF5, and TXT | 
| 15 | 70 | files. You can use it to generate TH-plots, screenshots, and animations or | 
| 16 | 71 | to create custom result plots using the `numpy <https://numpy.org/>`_ | 
| 17 | 72 | and `matplotlib <https://matplotlib.org/>`_ packages. | 
| 18 | 73 | 
 | 
| 19 | 74 | .. image:: ../images/drawings/dpf-reports.png | 
| 20 | 75 | 
 | 
| 21 |  | -IronPython | 
| 22 |  | ----------- | 
| 23 |  | -DPF in Mechanical uses IronPython and is accessible with the **ACT Console**.  | 
|  | 76 | +Mechanical | 
|  | 77 | +~~~~~~~~~~ | 
|  | 78 | +**DPF in Mechanical** uses IronPython and is accessible with the **ACT Console**. | 
| 24 | 79 | Use it to perform custom postprocessing and visualization of results directly  | 
| 25 | 80 | within the Mechanical application. | 
| 26 | 81 | 
 | 
|  | 
0 commit comments