Use a plugin function to specify a heat transfer coefficient
Practice writing a plugin function and defining a heat transfer coefficient using the plugin function in the thermal stream boundary condition.
Write a plugin function (Optional)
You can write a plugin function to use it in the thermal stream boundary condition as follows or open the plugin.cpp source file that was created already in the plugin_function/Source file folder to investigate it.
You will define a plugin function that computes the heat transfer coefficient, 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.
Compile the plugin function (Optional)
If you have a Windows compiler installed, compile the source code for your plugin function.
Open the Simulation file
- Choose File → Open and open plugin_function\gas_turbine_axi_fem1_i_sim1.sim.
- Choose File→Preferences→User Interface and on the Dialog and Precision page, reset the dialog box memory.
- Click OK.
Load the user_plugin.dll file in Simcenter 3D
Define the heat transfer coefficient on the thermal stream using a plugin function
Notice that the Simulation file contains the WithoutContact solution, which already has thermal and structural boundary conditions defined. You will modify the Stream 3 load by assigning the user plugin function to its heat transfer coefficient.
Solve the model
- In the Simulation Navigator, right-click the WithoutContact node and choose Solve.
- Click OK.
- Wait for Completed to display in the Analysis Job Monitor dialog box, before proceeding.
- In the Review Results dialog box, click No.
- Close the Information window.
- In the Analysis Job Monitor dialog box, click Cancel.
Display the temperature results
Display nodal temperature for time 2000 s.
- In the Simulation Navigator, expand the Results node and double-click the Thermal node.
- Expand Thermal→Time 2000.0→Inscrement 38, 2000s.
- Double click the Temperature - Nodal node.
-
Under the Contour Plots node, expand
Post View 1, and clear the 0D
Elements check box.


