SimcenterKnowledge

Expressions > Inputs to expressions

Specify a thermal plugin function

This example shows how to compile and specify your thermal plugin function in the expression of the heat transfer coefficient defined in the Thermal Stream load.

  1. Code your plugin function in C++.For more information, see Thermal Solver API Manual .

  2. Compile the source code for your plugin function to generate a DLL file.For compiler support, see Supported compilers.

  3. Set the UGII_CAE_PLUGIN_DIR environment variable to specify the path to your plugin function DLL.

  4. Start Simcenter 3D or NX.

  5. Choose FileUtilitiesCustomer Defaults.

  6. In the Customer Defaults dialog box, select SimulationPre/PostExpression Extensions.

  7. On the Plugin tab, select the Use Custom Plugin check box.

  8. In the Custom Plugin box, type the file name including the .dll extension for the compiled DLL file that contains your plugin function.The software uses UGII_CAE_PLUGIN_DIR to complete the full path to the DLL file. Relative path is also supported.

  9. Click OK.

  10. Close and restart the software.

  11. Open or create the Simulation file and start Pre/Post.

  12. Choose Home tab→Loads and Conditions group→Load TypeThermal Stream .

  13. Select the appropriate type and model region.

  14. In the Heat Transfer group, in the Heat Transfer Coefficient row, click and select Function.

  15. In the Insert Function dialog box, in the Enter Keywords to Search for a Function box, type the name of your function and click Find.If you cannot find your function, your plugin function was not correctly compiled or you did not correctly set the path to your DLL in the Customer Defaults dialog box. Make sure to restart your software after you modify customer defaults.

  16. Select your function.

  17. Click OK on the Insert Function dialog box.

  18. If necessary, in the Function Arguments dialog box, enter the required and optional arguments for your function.If your function does not take any arguments this dialog box does not open.

  19. Click OK on the Function Arguments dialog box.

  20. Define other load properties and options.

  21. Click OK on the Thermal Stream dialog box.

How do I

Change rename and variable prefix settings

Find units and unit designations

Learn more

Inputs to expressions

Restrictions on auto-generated expressions

Fields in expressions

Units in expressions

Migrating expressions that include angular measures

Inconsistent units warnings

Look up more details

Mathematical functions in expressions

Lookup functions in expressions

Utility functions in expressions

Thermal-flow functions in expressions

Auto-generated expressions

Field function

Mapped field function

Mathematical operators in expressions

Temperatures in expressions

Complex numbers in expressions

Quick links

Command reference

Pre/Post video examples

Bulk Entry Descriptions

Simcenter 3D tutorials

Browse Simcenter 3D help by product area

Customizing thermal and flow solvers through API

Specify a thermal plugin function, Simcenter 3D 2021.1 Series

© 2020 Siemens

window.mainLanguage="en_US"

window.delivId=""

window.projectId=""

MathJax.Hub.Config({ TeX: { extensions: ["autoload-all.js"] }, tex2jax: { displayMath: [ ] }, "SVG": { scale: 125 } });

Source: https://docs.sw.siemens.com/en-US/doc/289054037/PL20200601120302950.advanced/xid1214923 · retrieved 2026-07-17