Open Access Paper
24 May 2022 Research on ship power system design and control simulation based on Unity3D
Wei Liu, Yuhang Jiang Sr., Longhui Jing III, Ning Chen IV
Author Affiliations +
Proceedings Volume 12260, International Conference on Computer Application and Information Security (ICCAIS 2021); 122601T (2022) https://doi.org/10.1117/12.2637372
Event: International Conference on Computer Application and Information Security (ICCAIS 2021), 2021, Wuhan, China
Abstract
Aiming at solving the problem of power system simulation in the construction of ship maneuvering simulator, this paper modeled the power system of 7000DWT ship and completed the model simulation display in Unity3D. A set of user interface of ship handling system satisfying ergonomics is developed by modeling and simulating ship handling system. According to the final simulation results, the data of the real ship and that of the simulation are within the allowable error range, which can well observe the scene in which the navigation condition of the ship changes due to the adjustment of the bell on the Unity3D interface.

1.

INTRODUCTION

In the totality of ship simulation, simulation of the main power system unit is a very important part. However, there are many inevitable difficulties using computer simulation technology in the study of ship’s main power system. With the knowledge of Marine power system equipment, we can use the method of computer simulation, through some software test simulation. In addition, most of the research and development of ship driving simulators at home and abroad are based on the secondary development of hardware systems1, which has high development cost. This topic will be developed based on the Unity3D software platform, which can reduce the development cost to a certain extent.

The main research contents are as follows:

  • (1) Establishment of mathematical model for Marine power plant system;

  • (2) Design and implementation of power system;

  • (3) Realization of simulation of control system.

2.

ESTABLISHMENT OF MATHEMATICAL MODEL OF SHIP POWER SYSTEM

2.1.

Quasi-steady state model of marine power plant system

2.1.1.

Building the compressor model.

The temperature of the press can be calculated by the following equation2:

00232_psisdg12260_122601t_page_1_1.jpg

Outlet temperature:

00232_psisdg12260_122601t_page_1_2.jpg

Pressure at outlet:

00232_psisdg12260_122601t_page_1_3.jpg

The rotation of the compressor needs to be driven by the shaft of the turbocharger, which requires the following torque:

00232_psisdg12260_122601t_page_2_1.jpg

2.1.2.

Establishing the intercooler model.

The outlet pressure of the compressor is represented by pc; The pressure at the outlet end of the intercooler is represented by pi; Tci is the outlet temperature of the intercooler; Kcp is the actual diesel data.

Outlet temperature of intercooler:

00232_psisdg12260_122601t_page_2_2.jpg

Pressure of intake pipe:

00232_psisdg12260_122601t_page_2_3.jpg

2.1.3.

Building the Cylinder Process Model.

Suction flow Gi1 plus scavenging flow Gi2 is the flow through the intake valve Gi, therefore:

00232_psisdg12260_122601t_page_2_4.jpg

Suction flow:

00232_psisdg12260_122601t_page_2_5.jpg

In the quasi-steady state model, the average value of the flow section is

00232_psisdg12260_122601t_page_2_6.jpg
00232_psisdg12260_122601t_page_2_7.jpg

This paper adopts the set scavenging coefficient. The calculation method is shown in the equation below:

00232_psisdg12260_122601t_page_2_8.jpg

The values of Φs can be derived by fitting with actual test data.

2.1.4.

Diesel Engine Ontology Modeling.

As for the effective output torque Qe of diesel engine, the calculation method of effective torque is as follows:

00232_psisdg12260_122601t_page_2_9.jpg

Excess air coefficient:

00232_psisdg12260_122601t_page_2_10.jpg

Gi1 represents the suction flow of the diesel engine: Gf represents the mass flow rate into the cylinder:

00232_psisdg12260_122601t_page_3_1.jpg

2.1.5.

Exhaust temperature of the cylinder.

In general, the value n of diesel engine speed and the total air-fuel ratio AFR are closely related to the exhaust temperature Te:

00232_psisdg12260_122601t_page_3_2.jpg
00232_psisdg12260_122601t_page_3_3.jpg

2.1.6.

Establish injection pump model.

There is also a certain relationship between the fuel supply per cycle and the oil pump camshaft speed (diesel engine speed). Thus, the linear relationship between the circulating oil supply and rack displacement is obtained as follows

00232_psisdg12260_122601t_page_3_4.jpg

2.1.7.

Turbine modeling.

To simplify the model, consider the turbine as a nozzle:

00232_psisdg12260_122601t_page_3_5.jpg

In order to calculate turbine flow more easily, the following equation can be used:

00232_psisdg12260_122601t_page_3_6.jpg

When the turbine rotates, the torque generated can be calculated using the following formula:

00232_psisdg12260_122601t_page_3_7.jpg

Supercharger speed ntc is expressed as:

00232_psisdg12260_122601t_page_3_8.jpg

2.1.8.

Shafting dynamics model.

The speed of diesel engine is calculated according to the following equation:

00232_psisdg12260_122601t_page_3_9.jpg

2.2.

Paddle model

2.2.1.

Mathematical model of propeller.

When the propeller is rotating, the thrust and water resistance moment can be calculated as follows:

00232_psisdg12260_122601t_page_3_10.jpg
00232_psisdg12260_122601t_page_3_11.jpg

In practice, propellers are usually mounted at the rear of the hull, which causes a thrust reduction effect:

00232_psisdg12260_122601t_page_4_1.jpg

2.2.2.

Creating a hull model.

In the process of sailing, the ship will be affected by resistance, which can be divided into vortex resistance and wave resistance. The following formula can be used to calculate ship resistance:

00232_psisdg12260_122601t_page_4_2.jpg

The following formula can also be used to calculate ship resistance:

00232_psisdg12260_122601t_page_4_3.jpg

Ship speed vs in dynamic simulation is calculated as follows:

00232_psisdg12260_122601t_page_4_4.jpg

In this expression, kw means water retention coefficient; m means the overall mass of the ship.

3.

POWER SYSTEM PROGRAMMING

In this design, the clock variables, ship speed, sailing speed and other variables should be adjusted. By changing the clock, the speed of the ship changes. The results are shown in Figure 1.

Figure 1.

Simulation results.

00232_psisdg12260_122601t_page_4_5.jpg

4.

THE CONSTRUCTION OF VIRTUAL SCENE

4.1.

Construction of solid model

Basic shape modeling, lofting modeling, modifier modeling, polygon modeling and graphics modeling were used to establish the basic model. Then import the FBX file exported from 3D MAX into Unity3D. Because too many models increase the CPU performance burden, it is necessary to minimize the number of models in the scenario and merge multiple models to form a new overall model to reduce the burden3, 4.

4.2.

Construction of virtual ocean scene

In this paper, radioactive LOD grids are used to achieve sea level grid modeling. A level 5 LOD are used and the outermost layer was loaded with a circular Mesh to fill the outermost scene. All Mesh are generated under the Object named Ocean5. The partially generated Mesh list is shown in Figure 2.

Figure 2.

Sea level grid model diagram.

00232_psisdg12260_122601t_page_5_1.jpg

The hull is always within a 5*5 mesh area. The LOD level is LOD_0. Draw the finest details and effects. The rest takes a lower level LOD.

To achieve virtual ocean dynamic effects:

  • (1) The offset to determine whether to move the Ocean Object is calculated;

  • (2) The Mesh and select the corresponding LOD level (variable Christ) are generated.

The generated virtual ocean scene and the previously constructed entity model are put into the same scene, and finally the completed virtual scene as shown in Figure 3 is obtained.

Figure 3.

Virtual scene diagram.

00232_psisdg12260_122601t_page_5_2.jpg

5.

DESIGN OF SIMULATION SYSTEM

5.1.

Interactive interface design

The built-in GUI system of Unity3D is chosen for this topic. The built-in GUI system is used based on Unity3D to create an interactive interface in line with user operation habits6, 7, which is shown in Figure 4.

Figure 4.

Interactive interface diagram.

00232_psisdg12260_122601t_page_6_1.jpg

5.2.

Ship monitoring and alarm system

In terms of monitoring system, several instruments are set up to monitor the running state of the ship in real time to realize the basic monitoring of ship operation. In this project, five different instruments are set up to monitor the ship in real time, including SPEED, RPM, RATE OF TURN, RUDDER, DEPTH.

The interface after running is shown in Figure 5.

Figure 5.

Alarm indicator diagram.

00232_psisdg12260_122601t_page_6_2.jpg

In terms of alarm system, this paper takes the simulation training system of ship engine room in Marine Engineering Laboratory of Jiangsu University of Science and Technology as the entity reference model. A set of alarm system is constructed to reflect the ship’s bad operation state through alarm lights. The interface after completion is shown in Figure 5.

6.

CONCLUSION

This topic is a more complete design of the Marine diesel engine power plant system mathematical model, in Visual Studio 2017 using C# language to write these mathematical models, integration, and finally complete a power system program. According to the change of rack position, calculate the ship sailing speed, diesel engine speed and other data. Compared with the data of the real ship of 7000 tons, the simulation results are valid within the allowable error range. The simulation system can fully realize the basic navigation and control of the ship.

REFERENCES

[1] 

Zhao, Q., “Virtual reality, let the life more wonderful,” Journal of China Press, (07), 50 –51 (2021). https://doi.org/10.13854/j.cnki.cni.2021.07.016 Google Scholar

[2] 

Li, S., Simulation Technology of Marine Power Device, Harbin Engineering University Press, (2013). Google Scholar

[3] 

Yu, S. and Shen, J., “Design and implementation of ship training simulator integrating aircraft and driving,” Equipment Manufacturing Technology, (11), 198 –201 (2019). Google Scholar

[4] 

Li, H., Gan, L., Zhang, L., Zheng, Y. and Zhao, X., “Study on defining critical state of ship collision damage,” Journal of Ship Mechanics, 24 (03), 380 –389 (2020). Google Scholar

[5] 

Zeng, J., Xiong, J. and Wan, H., “Development and application of 3D scene automatic generation system for driving simulator,” Journal of System Simulation, 14 (6), 752 –755 (2002). Google Scholar

[6] 

Hu, J. and Hu, X., “Game design and development based on Unity3D engine,” Journal of Electronic and Information Technology, 5 (02), 138 –140+154 (2021). https://doi.org/10.19772/j.cnki.2096-4455.2021.2.064 Google Scholar

[7] 

Du, J., “Design and research of sailing training simulation system based on Unity3D,” Electronic Measurement Technology, 6 47 –53 (2021). https://doi.org/10.27264/d.cnki.gpdhc.202.000441 Google Scholar
© (2022) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Wei Liu, Yuhang Jiang Sr., Longhui Jing III, and Ning Chen IV "Research on ship power system design and control simulation based on Unity3D", Proc. SPIE 12260, International Conference on Computer Application and Information Security (ICCAIS 2021), 122601T (24 May 2022); https://doi.org/10.1117/12.2637372
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
3D modeling

Mathematical modeling

Human-machine interfaces

Control systems design

Resistance

Control systems

Oceanography

Back to Top