Abstract

Based on the detailed analysis of collaborative running interface of Simulink/Fluent, a system simulation for the rated working condition as well as variable working condition of marine gas turbine has been achieved, which can improve the simulation efficiency of marine gas turbine by developing simulation model of combustor with Fluent and simulation models of other components with Simulink. The result shows that the Simulink/Fluent collaborative simulation zooming can make the inner working conditions of combustor be observed specifically, based on the overall performance matching analysis; thus an effective technical means for the structural optimization design of combustor has been provided.

1. Introduction

System simulation technology is an effective means for marine gas turbine modular design, and simulation models with different dimension are selected for different components according to the need of research in the process of simulation to achieve the simulation zooming, so that a reasonable balance can be found between the degree of model’s fineness and time-consuming of simulation, thus to improve the simulation efficiency. For example, during the overall scheme design, conducting system simulation just with 0D component models can basically meet the need of the overall performance matching analysis; when designing the structural optimization for a component, what is needed to do is just the distribution parameter calculation to the component, while the other components can still select 0D model. Thus detailed research for the inner mechanism to the component can be performed on the basis of overall performance matching.

In the process of modular modeling, one can make full use of various types of commercial simulation software which have different characteristics. Usually, each kind of commercial simulation software belongs to a specific science field and supports the simulation model of specific dimension. For example, Matlab/Simulink is accomplished in dynamic system modeling and simulation, which can be used to establish the gas turbine control system or the 0D simulation model of other components appropriately; Fluent specializes in analyzing fluid field and temperature field, which is suitable to establish 2D or 3D dimensional steady state simulation model of combustor. Using the collaborative running interface of Simulink/Fluent, the simulation models established by two kinds of simulation software are coupled together to achieve the simulation zooming, which has been applied in simulation research of many science fields [15].

In order to expand the application field and enhance the versatility, Fluent provides the following interface for users [1]: Fluent/UDF is written based on C language to deal with the nonfixed boundary conditions or dynamic grid computing and other personalized applications; Fluent/Journal is used to record the operation sequence on the Fluent/GUI and then Fluent can be started by the external program including command with Journal parameter, so that simulation task is automatically operated according to the operation sequence in Journal. The simulation results at calculation regional boundary can be stored in specified text file by Fluent to facilitate sharing data with external program.

S-Function is the computer language description of the Simulink simulation module and it also provides a variety of language version templates which can be used to customize the simulation module by researchers. S-Function is composed of a number of callback functions. Figure 1 shows the invocation mode for the main callback functions (M language version) by the Simulink solver at different simulation stages of fixed step algorithm [6]. At the initialization stage of the simulation, Simulink solver calls the callback function “mdlInitializeSizes()” to determine simulation module state quantity, initial state value, sampling time, and other basic information; at each integral step of simulation loop stage, Simulink solver calls the callback function “mdlOutputs()” to calculate output data value of the simulation module; if there is a continuous state in the simulation module, the Simulink solver needs to call the callback function “mdlDerivatives()” to achieve integral for the continuous state; at the end of the simulation, Simulink solver calls the callback function “mdlTerminate()” to release the storage space. It should be noted that the Simulink solver will call the corresponding callback function of all the simulation modules in sequence. For example, at each integral step of simulation loop stage, Simulink solver will call the callback function “mdlOutputs()” of all the simulation modules in sequence and then call “mdlDerivatives()” function of all the simulation modules.

Making use of external interface of Fluent and Simulink, the following three approaches can achieve Simulink/Fluent collaborative simulation: Fluent is embedded in Simulink [4, 5]; that is, Fluent simulation model is encapsulated to a simulation module which has the same attribute and operation style with the build-in module and participates in the running of the Simulink simulation model; Simulink is embedded in Fluent [1]; that is, Simulink simulation model is compiled into C function for Fluent/UDF to call; Simulink and Fluent run parallelly that is to achieve simulation collaboration through the global variate [1] or a kind of process blocking technology [2, 3]. As the first approach has more advantages in versatility and flexibility, it has become the mainstream of current application.

The general idea to develop the collaborative running interface of Simulink/Fluent, based on the first approach, is as follows [4, 5]: develop interface program based on Simulink/S-Function; start Fluent with command including Journal parameter; store the update values of the S-Function input ports into a text file; access the text file by Fluent/UDF and using these values to deal with nonfixed boundary conditions; at last, Fluent will store the simulation results of the calculation regional boundary into another text file and S-Function will access this text file to propagate its values to Simulink via output ports. Because many boundary conditions and physical parameters in Fluent simulation model cannot be modified by UDF, the interface developed by the idea mentioned above cannot be applied in some specific fields.

In Methodology, a new collaborative running interface of Simulink/Fluent is developed, which is also inside the range of the first approach. Compared with the existing one, the new collaborative running interface provides boundary conditions for Fluent environment by modifying parameters of Journal directly, instead of tedious UDF programming.

In Application, the simulation zooming research is conducted that takes triaxial gas turbine of a certain type as physical model, establishing 2D simulation model for the combustor with Fluent, establishing system simulation model which consists of 0D component simulation models with Simulink. The 2D simulation model of combustor is embedded in the Simulink environment by encapsulating the written collaborative running interface of Simulink/Fluent to S-Function module.

2. Methodology

2.1. Collaborative Running Interface of Simulink/Fluent

Fluent/Journal and Simulink/S-Function have the following features: Journal uses standard syntax format to record operation sequence; Fluent is able to read the Journal which is saved as text format; S-Function can call the powerful M functions to read, write, and modify the text file. Considering these features, it can be used to modify the parameters in the Journal text file directly to deal with the nonfixed boundary condition, which can avoid the tedious UDF programming. Based on the idea above, this paper developed the Simulink/Fluent collaborative running interface of a certain type triaxial gas turbine simulation zooming, using the M language version template of S-Function. Figure 2 shows the workflow of Simulink/Fluent collaborative running interface. The dotted line 1 in Figure 2 denotes that the Simulink solver always starts Fluent with command including Journal parameter at each integral step. The dotted line 2 in Figure 2 denotes that, according to the current simulation time, the simulation results (Cas and Dat document) generated by Fluent are renamed by the Simulink solver at each integral step to avoid the automatic coverage of the Fluent simulation results. For example, when the current simulation time is 1 s, the simulation results are renamed “1 s.cas” and “1 s.dat”; when the current simulation time is 1.05 s, the simulation results are renamed “1.05 s.cas” and “1.05 s.dat.”

2.2. Mathematical Model of Marine Gas Turbine
2.2.1. Combustor

While the combustion process of liquid fuel in the combustor is simulated by distributed parameter, assumptions are typically made as follows [7]: chemical reaction occurs with the liquid fuel in gas-phase; the inner and surface of fuel droplet only change physically, and the carrier mobility of droplet is less than 5%; the process of turbulent diffusion combustion of liquid fuel can be treated as the liquid-phase particles motion of Lagrange coordinates along their orbits and gas-phase turbulent flow and chemical reaction process of Euler coordinates, the two processes coupled to each other to achieve the continuous heat and mass transfer between discrete-phase and continuous-phases; the heat and mass transfer in the combustion process of gaseous fuel only occurs in the continuous-phases; the combustion flow field is in the states of thermodynamic equilibrium and chemical equilibrium. On the basis of these assumptions, the mathematical model of distribution parameter of combustor is established, including gas-phase basic control equation [810], RNG turbulence model [11], EDC combustion model [1215], and control equations of discrete-phase [1618].

2.2.2. The Other Components

This paper takes triaxial gas turbine of a certain type as physical model (as it is shown in Figure 3). The main mathematical model established according to the traditional method of volume inertia is as follows:where is the volume between low-pressure compressor and high-pressure compressor; subscript , subscript , and subscript are air, gas, and fuel; and subscript in and subscript out are inlet and outlet of combustor; refer to Figure 3 for the meaning of other subscripts.

Make use of , , , and , the distributed parameter model of combustor outputs and , which are processed with average method at the output boundary of combustor.

3. Application

3.1. Simulation Model of Marine Gas Turbine

The triaxial gas turbine of a certain type is mainly used in mechanical or electric propulsion of marine, whose main performance parameters are shown in Table 1, where and are efficiency and output power of marine gas turbine; refer to Figure 3 for the meaning of other subscripts.

3.1.1. Combustor

The Fluent environment is selected to develop the simulation model of distributed parameter of combustor; the specific process is shown in Figure 4.

Discretization of Computational Domain. Taking the 3D solid model of loop-type flame tube of combustor of a certain type triaxial gas turbine as reference, a 2D axisymmetric model is built by the way of area average, and the discrete computational domain is also built on the basis of structured grid. As it is shown in Figure 4, the 2D model maintains the proper swirl holes, primary holes, mixing holes, head, and cooling holes, the corresponding domain of grid is properly encrypted, and the total number of grids is 5355.

Adding Mathematical Models and Boundary Conditions. The mathematical models described previously are sequentially added to the simulation model (e.g., RNG turbulence model). Considering the working condition of combustor and the algorithm condition used in calculation, the following boundary conditions are added to the simulation model [7]: the inlet of air, including mass flow, temperature, turbulence intensity, hydraulic diameter, and average mixing fraction; the inlet of fuel, including fuel type (using liquid fuel C7H16), injection mode and swirl angle of pressure swirl atomizer, mass flow, and temperature; the outlet of gas, including reflux temperature, turbulence intensity, and hydraulic diameter; making sure the wall is the heat insulating wall and has no slip velocity, whose parameters are zero, including turbulence parameter, concentration, and normal gradient of square value of concentration pulsation.

Solver Settings. The solver of Fluent automatically makes the convection term, diffusion term, and source term of basic control equation be discrete based on the structured grid of computational domain. This paper selects Simple algorithm [10] to solve the discrete simulation model, which uses “guess-correction” process, computing pressure-velocity coupling field by use of staggered grid; the number of iterations is 400.

3.1.2. System Simulation Model of Marine Gas Turbine

The Simulink environment is selected to develop the system simulation model which consists of 0D component simulation models [19, 20]. The 2D simulation model of combustor is embedded in the Simulink environment by encapsulating the written collaborative running interface of Simulink/Fluent to S-Function module which is named fluent_sub, to carry out the simulation zooming. As it is shown in Figure 5, the assistant module on one hand plays a role of volume module, to provide combustor inlet pressure for Fluent simulation model; on the other hand, it outputs the air-fuel ratio and gas constant of combustor outlet , which cannot be outputted by Fluent simulation model.

Figure 1 shows the solving process of system simulation model; all the differential equations established according to the method of volume inertia are calculated in the callback method “mdlDerivatives(),” which achieves integral.

3.1.3. Result Analysis

Verification of the Simulation Results on Rated Working Condition. Simulation experimental scheme is shown in Table 2, the setting value of speed of gas turbine controller is 3270 rpm, load power is 24265 kw, and integral step is 0.05 s. As shown in Table 2, comparing with the design values of rated working condition [21], the errors of simulation zooming are less than 5%, this preliminarily verifies the feasibility of simulation zooming research. The simulation errors of the amount of fuel and work efficiency are relatively large; the reason is the following: considering the limited computing capability of model runtime environment, in order to reduce the time-consuming of simulation, this paper simplifies the 3D simulation model of combustor to the 2D one, so that the air goes evenly into the flame tube through the primary holes, mixing holes, cooling holes, and so on; in the 3D model, several small holes are arranged around aforementioned holes in the circumferential direction, the air goes into the flame tube through the small holes, this difference weakens the intensity of the air injection so that the penetration depth and its influence on the combustion flow field are not as apparent as 3D model, and the central recirculation zone formed by which is not big enough, causing incomplete combustion of some fuel, brings about relatively large simulation errors of the amount of fuel and work efficiency; the collaborative running interface of Simulink/Fluent has the versatility, if we can upgrade the runtime environment; selecting 3D simulation model of combustor to participate in simulation zooming, simulation accuracy will be improved.

Analysis of Simulation Results on Variable Working Condition. Simulation experimental scheme is shown in Table 2; the setting value of speed of gas turbine controller is 3000 rpm, total simulation time is 95 s, integral step is 0.05 s, load power is 24265 kw at 0 s, 30% load power is suddenly decreased at 5 s, 30% load power is suddenly decreased at 35 s again, and 20% load power is suddenly decreased at 65 s finally. As it is shown from Figures 69, the speed of power turbine suddenly increases when the load power is suddenly decreased, under the function of gas turbine controller, the fuel flow is rapidly decreased, leading to the initial temperature of combustor inlet, output power and speed of power turbine will change at the same trend. From the sudden load decrease to the corresponding steady state of gas turbine, the adjustment time is about 10 s. The above simulation results are conforming to reality, it proves the feasibility of simulation zooming research once again.

The simulation zooming can conduct partially “zoom in” for a component on the basis of the overall performance matching analysis, so the inner working conditions can be observed in detail. Seen from the invocation mode of Simulink/S-Function and the workflow of Simulink/Fluent collaborative running interface described previously, the simulation results of distributed parameter of combustor can be obtained through the simulation zooming research, at each integral step, so we can analysis the inner working conditions of combustor on any working condition. For example, according to the system simulation results on variable working condition, the inner working conditions of combustor on 20% working condition can be clearly analyzed by the simulation results of distributed parameter at corresponding simulation time.

Figure 10 shows the inner temperature distribution of combustor, the temperature range is about 465 K–2700 K, high-temperature zone is concentrated in center front of combustion flow field and both sides of central recirculation zone, under the joint action of primary air and mixing air, and it is convergent along the axial trend of combustor, forming the more uniform mixing gas at the outlet. The maximum temperature of outlet section is in the central region of combustor, which is about 1700 K. The cooling effect of combustor wall between the primary holes and head is worse than it is of combustor wall after the primary holes; it can be improved by increasing the air flow through the head.

Figure 11 shows the inner total pressure distribution of combustor; it can be seen that the pressure distribution of main zone is uniform, the combustion process is approximately an isobaric process, and the pressure gradient appears near each hole and on both sides of central recirculation zone. The highest pressure of combustion flow field appears at the swirl holes, and there is low-pressure zone in central recirculation zone, which provides favorable condition for the stable combustion of fuel. The total pressure recovery coefficient of combustor decreases as the load decreases (it is 0.943 and 0.957 on 20% working condition and 100% working condition, resp.).

Figure 12 shows the inner velocity distribution of working fluid of combustor; it is clear that there is a central recirculation zone formed by intersection of the swirl generated by swirl holes and the jet-flow generated by primary holes. Meanwhile the central recirculation zone is smaller than the actual one, the reason is as described previously. The maximum velocity of working fluid in combustion flow field appears at the inlet of swirl holes, about 166.5 m/s, and the average velocity of the working fluid of the combustor outlet is about 42 m/s.

4. Conclusion

Firstly. A new workflow of Simulink/Fluent collaborative running interface is proposed, which provides boundary conditions for Fluent environment by modifying parameters of Journal text directly, instead of tedious UDF programming.

Secondly. The 2D simulation model of combustor is developed in the Fluent environment; the system simulation model which consists of 0D component simulation models is developed in the Simulink environment; the 2D simulation model of combustor is embedded in the Simulink environment by encapsulating the written collaborative running interface of Simulink/Fluent to S-Function module, to realize the simulation zooming.

Thirdly. The system simulation for the rated working condition as well as variable working condition of triaxial gas turbine of a certain type is achieved. The result on one hand shows that the errors of simulation zooming are less than 5%; on the other hand, it shows that the Simulink/Fluent collaborative simulation zooming can make the inner working conditions of combustor be observed specifically, based on the overall performance matching analysis; thus an effective technical means for the structural optimization design of combustor is provided.

Nomenclature

LC:Low-pressure compressor
HC:High-pressure compressor
:Combustor
HT:High-pressure turbine
LT:Low-pressure turbine
PT:Power turbine
:Rotor speed
:Mass flow
:Inertia of rotor
:Pressure ratio
:Efficiency
:Specific heat [kJ/(kg·K)]
:Expansion ratio
:Temperature [K]
:Adiabatic coefficient
:Output power [kw]
:Load power [kw]
:Pressure [kPa]
:Gas constant
:Specific enthalpy [kJ/kg].

Competing Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

The present work is supported by the Fundamental Research Funds for the Central Universities of China (no. HEUCFZ160306).