Pre-requisites
In order to use DPF in a C++ project, it is required to have access to the following files of theAWP_ROOT@doc_ansys_ver/dpf/include folder (AWP_ROOT@doc_ansys_ver
being an environment variable defining the root of the Ansys Inc or DPF Server product):
- dpf_api.h
- dpf_api_i.cpp
Create a C++ Custom operator’s library
This section details the C++ code to create a custom basic operator’s library. In the DPF_Custom_Operators folder previously created, create a MyCustomOperator.h file with the following content:- a name method (unique identifier)
- a specification method which defines and describes the operator inputs, outputs and data computation
- a run method which contains the data computation code