SimcenterKnowledge

Thermal/Flow, Electronic Systems Cooling, and Space Systems Thermal > Solving the model

Specify a flow user defined API file

You can interact with the parallel flow solver during the solve using a user defined API file.

  1. Set the UGII_TMG_DIR environment variable to [installation_path]\nxcae_extras\tmg.

  2. Code your custom plug-in function in C++.The available methods are described in the C++ header files located in the [installation_path]\nxcae_extras\tmg\include folder.You can find sample C++ code examples and their header files in the [installation_path]\nxcae_extras\tmg\plugin_examples\flow_solver folder.

  3. Compile the source code for your custom plug-in function to generate a DLL file.You can find sample compilation script in the [installation_path]\nxcae_extras\tmg\plugin_examples\flow_solver folder. Your compilation script must be located in the same folder as your C++ file. Make sure that the version of your local compiler is identical to the version of the compiler used in the script. The compiler versions are listed in Supported compilers.

  4. Start Simcenter 3D or NX.

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

  6. Prepare your solution with appropriate boundary conditions and parameters.

  7. Specify your DLL file.In the Simulation Navigator, right-click the solution node and choose Edit.The Solution dialog box opens.On the Solution Details page, from the Flow Solver Selection list, select Parallel.Click 3D Flow node.In the User Defined API File group, select the User Defined API File check box.Under Select File, click Browse and select the compiled DLL file that contains your plug-in function.Click OK.

  8. Solve and post process your model.

How do I

Inspect intermediate results

Continue a transient solution

Refresh results and reports in a solution

Restart a steady state solution

Reuse thermal solution data in a modified or different solution

Create or modify a solution

Learn more

Solving the model

Solution Monitor

Solution Control Monitor

Displaying data summary in HTML

Parallel processing

TMG Executive Menu

Customizing thermal and flow solvers through API

Look up more details

Effective program limits

Converged analysis

HTML summary data

Verbose thermal solver messaging

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

Simcenter 3D Thermal/Flow, Electronic Systems Cooling, and Space Systems Thermal boundary conditions

Specify a flow user defined API file, 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/xid1435801 · retrieved 2026-07-17