Write a plugin function and use it in a solve
Practice defining a heat transfer coefficient using a plugin function in a convection to environment boundary condition. You can write a plugin function or use the provided plugin.cpp source file.
Define the plugin expressions
Practice defining a heat transfer coefficient using the plugin function in the convection to environment boundary condition. You can write a plugin function to use in a thermal analysis or open the plugin.cpp source file that was created in the load_plugin_function/source folder.
The plugin function defines the expression of a heat transfer correlation for natural convection over a flat plate, h, as follows:
- is the Prandtl number.
- is the Grashof number.
- is the Rayleigh number.
- is the fluid conductivity.
- is the plate length.
- is the fluid viscosity.
- is the fluid specific heat.
- is the fluid density.
(Optional) Write a plugin function
(Optional) Compile the plugin function
If you have a Windows compiler installed, compile the source code for your plugin function using the build_windows.cmd script.
Load the user_plugin.dll file in Simcenter 3D
Create a convection to environment constraint on a CPU
Use the plugin function to define the convection coefficient over a flat plate by choosing the user plugin as the function for the convection coefficient.
- In the Simulation Navigator, expand the Simulation Object Container, Constraint Container, and Load Container nodes and explore the predefined boundary conditions.
-
Choose Home tab→Loads and
Conditions group→Constraint Type
list→Convection to Environment
.
- In the Name group, in the box, type cpu to environment.
-
In the graphics window, select the top surface of the CPU.

-
In the Magnitude - Top group, in the
Convection Coefficient box, click
, and from the list, choose
Function.
- From the Or Choose a Category list, select user_plugin.
- Explore the information on the bottom of the dialog box, which indicates that the function requires a plate length value and returns the heat transfer coefficient value.
- Click OK.
- In the Plate Length box, type 23.5 mm.
- Click OK and Apply.
Create a convection to environment constraint on a chip
Write a function for the convection coefficient that uses the plugin function.
Solve the model
Solve the model.
- In the Simulation Navigator, right-click the Solution 1 node and choose Solve.
- Click OK.
- Wait for the solve to end, before proceeding.
- In the Review Results dialog box, click No.
- Close the Information window.
- In the Analysis Job Monitor dialog box, click Cancel.
Post process the results
Display temperature results.


