Secondary Development of Fluent UDF for Ventilation Tunnel Safety Design
Tunnel ventilation system is essential for highway tunnel to keep a safe, healthy and comfortable. Because of unique structure of highway tunnel, the internal ventilation facilities do not have a reasonable design, the tunnel in the event of fire source, it will cause a lot of casualties and huge economic losses.
In this paper, the method of numerical simulation of fire in a highway tunnel ventilation and smoke were studied. Assumed that there are a fire accident of the long highway tunnel low line pipe occurs when it, the fire source is located in the middle of a tunnel length of 8.9km length of 7.5km at 50MW fire. Long Highway Tunnel in use during normal operation is generated when the traffic entering the tunnel piston wind ; when the tunnel is blocked or fire condition, the start of the tunnel jet fans for makeup air , exhaust port open simultaneously polluting gases inside the tunnel timely discharge. According to preliminary numerical simulation shows three exhaust port open fire and exhaust port spacing is 60m program is scheduled for the most reasonable option.
Fluent is special software to model and analysis of complex geometric area of the fluid flow and heat transfer phenomena. Fluent provides a flexible grid features that can support multiple grid. Users can freely choose to use structured or unstructured grids to divide complex geometric areas, such as support for the two-dimensional problem triangle meshes or quadrilateral mesh; support for the three-dimensional problem tetrahedron, hexahedron, Ling cones meshes; also supports hybrid grids. Users can also use the fluent mesh adaptive features provided in the solution process based on the results obtained to optimize the computer grid.
Although Fluent is powerful, it can not be directly fixed on the options set in the flue gas flow. In this paper UDF of Fluent programming can customize the inlet velocity and temperature curve, so that it can achieve the flue gas flow simulation, UDF is provided to the user as interface by fluent software. Use of UDF on the secondary development of Fluent is able to complete some problem out of the standard modules.
User-defined function, or UDF, is a user directed the program, which can dynamically connect to the fluent solver up to improve performance. User-defined functions written in C language use the DEFINE macro to define. UDF can be used in standard C language library can also be used Fluent Inc. Provides predefined macros by these predefined macros, you can get the data obtained Fluent solver.
UDF use can be interpreted as a function, or a compiled function. Explained UDF deal sounds simple, but there are some inadequate in source code and speed restrictions. Compile UDF executes rapidly, there is no source code restrictions, but is more cumbersome to set up and use. According to this design needs, we choose the way of compiling UDF to steady.