CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Help UDF to Boundary Conditions in Closed Loop Pipe (http://www.cfd-online.com/Forums/fluent-udf/101780-help-udf-boundary-conditions-closed-loop-pipe.html)

 Blader May 14, 2012 06:58

Help UDF to Boundary Conditions in Closed Loop Pipe

Hello,

I'm trying to simulate a closed loop pipe as the first figure. The fluid passes through an area where it is heated (wall-heated), and so on until reaching a stationary case where the fluid will have the same temperature as the hot wall (wall-heated).

I have found the problem that Fluent can not give a closed fluid velocity. So I designed an open loop where the exit temperature is equal to the inlet temperature, as shown in the figure below.

At first I tried to do with BC-Periodic function, but without results. For this reason and as a last solution, I want to do with a UDF. I want to take the temperature of the output and link it to the input, but just the temperature!

Someone who understands the issue of UDF can help me write, because I am new to the UDF.

 Daniel Tanner May 14, 2012 07:52

I think a periodic boundary condition would be best for this. Why did it fail for you?

How about simulating one quarter of the loop (i.e., it is a series of 4 right angle bends). This would be more representative as the circuit is symmetric in this way and you don't have to leave the gap. Then use the periodic boundary condition to ensure that the conditions of fluid leaving the bend are imposed on the fluid entering it.

For the periodic boundary condition you need to be careful to ensure that the mesh is the same on both inlet and outlet faces.

 Blader May 14, 2012 09:48

Hi,

To verify the functionality of the periodic boundary condition, I made the following fast simulation:

In the curved wall, apply a heat of 400 K. The temperature in periodic BC is 300K.

In the stationary case, the fluid temperature will be the same as wall heated, 400K,but as you see in the following figure, never reaches 400K !