DataProcessingCore File
The content and format of the DataProcessingCore.xml file is as follows:<Environment> section is used only for defining the ROOT folder of the Ansys software. This is done with an <ANSYS_ROOT_FOLDER> tag. The root folder of the Ansys software ends with the v### folder. It could be something like C:\ansys_inc\v@doc_ansys_ver. The ANSYS_ROOT_FOLDER tag defines a variable that can be used in the other XML files. You might use it to find required third party software.
If the ANSYS_ROOT_FOLDER tag is not defined in the <Environment> section within the DataProcessing.xml file, the code attempts to find the root folder relative to the DataProcessingCore DLL or SO file. This only works if the DataProcessingCore file is located in its default location.
If the ANSYS_ROOT_FOLDER tag is still not defined, the root folder is determined by reading the AWP_ROOT### environment variable specific to the version of the DPF code. For example, if you are using V@doc_ansys_ver DPF code, it looks for the AWP_ROOT@doc_ansys_ver environment variable to find the root folder.
ANSYS_ROOT_FOLDER is not an environment variable and can not be set accordingly.
The <LoadOperators> section is used for loading the default plugins. The further subdividing of the plugins into <Debug> or <Release> sections is optional. The <Debug> section would only be used with a debug version of the DataProcessingCore DLL/SO file.
The plugins to load are defined within their own section that is named by a tag like <native> or <fem_utils>. This tag is used as the Key when loading the plugin. Each plugin must have a unique key.
Within the Key section are two tags that define the location of the plugin and the method of loading. The location is defined by the <Path> tag and the loading method is defined by the <Loader> tag. These are used as arguments to the loading plugin mechanism.
Currently, only LoadOperators is supported for the <Loader> tag. This loads all operators within the plugin.
The <Path> tag contains the location of the plugin to load. The normal mechanism that the OS uses to find a DLL/SO is used. The DLL could be in the Windows path, or the SO could be within the Linux LD_LIBRARY_PATH.
The <UsePluginXml> tag contains a value that must be set to true or false. It defines if the PLUGIN.XML file (defined in next section) will be used to load the plugin or not. This tag is optional. The default value is true.
Any path specified with the XML file must adhere to the path conventions of the OS. “\” for Windows and “/” for Linux.
Two pre-defined variables can be used to provide an absolute path to the plugin:
- ANSYS_ROOT_FOLDER as defined above.
- THIS_XML_FOLDER defining the location of where the current XML file is located. In this case DataProcessingCore.xml.
<SearchPath> enables to set a PATH where DPF will try to load plugins ni case they are not found using the system PATH.
The <LicenseSettings> contains specific licensing setup.
<EnableLicenseCheckout> tag set to false will prevent DPF to checkout any license. That implies plugins that need a license checkout won’t be loaded. License checkout can also be prevented set DPF_ENABLE_LICENSE_CHECKOUT environment variable to false.
PLUGIN.XML File
The content and format of the Plugin.xml file is as follows:<Environment> section within the plugin-specific XML file is defined the same way as the DataProcessingCore.xml file.
Any environment variables defined or used have the values at the time they are defined or used. You can effectively define a variable multiple times and keep appending it.