Next Article in Journal
Causal Reinforcement Learning for Knowledge Graph Reasoning
Previous Article in Journal
Electrically Equivalent Head Tissue Materials for Electroencephalogram Study on Head Surrogates
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Visualization Program Design for Complex Piping Systems in Marine Engine Simulation Systems

College of Marine Engineering, Dalian Maritime University, Dalian 116206, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(6), 2497; https://doi.org/10.3390/app14062497
Submission received: 6 February 2024 / Revised: 10 March 2024 / Accepted: 14 March 2024 / Published: 15 March 2024
(This article belongs to the Section Marine Science and Engineering)

Abstract

:
This study is dedicated to the development of an advanced ship piping network programming tool to address the challenges faced by traditional text-based design and computation methods when dealing with complex and large-data-volume piping systems, such as burdensome programming tasks, high error rates, and difficulty in troubleshooting faults. Leveraging Microsoft’s WPF technology and the C# language, combined with Excel as a data input platform, this tool provides an intuitive graphical user interface, allowing users to intuitively build and analyze ship piping network models by dragging and dropping controls. The tool not only simplifies the design process of complex piping systems but also significantly improves efficiency and accuracy through automated data processing and calculations. It supports user customization of key pipeline characteristics, such as maximum flow and direction, further enhancing the applicability and accuracy of the piping network model. In addition, with optimized interaction design and data management methods, the tool significantly reduces the learning difficulty for users, while improving the reliability of design and efficiency of troubleshooting. The results of this study show the tool not only technically outperforms traditional methods but also provides a new efficient, intuitive, and user-friendly tool for the teaching and engineering applications of ship piping networks, paving a new path for the design and optimization of ship piping network systems, with significant practical application value and theoretical significance. Looking forward, this tool is expected to play a broader role in the instruction and industrial practices associated with ship piping networks, moving the field toward more efficient and intelligent development.

1. Introduction

Since the 1990s, there have been several major accidents in the maritime transport process, which are considered to be caused by human factors. Human factors have always been an important topic of discussion in the maritime industry, and the lack of abilities acquired by seafarers through education and training is one of the key factors [1,2]. In fact, in maritime accident reports, 45% of safety recommendations about human factors are about training, skills, and experience [3]. Since then, simulators have become one of the time-consuming and costly tools for skills training [4]. Simulators can provide learners with the actual feel of ships [5], and they can also be designed to train and measure specific learning outcomes, targeting training according to the student’s level of ability [6], not only quickly improving students’ technical levels but also enhancing their learning experience [7]. Creating an engine room learning environment has also become relatively easy and achievable at the current level of technology [8]. Although traditional onshore engine rooms offer a more realistic learning environment, they have drawbacks such as high safety risks and huge practical costs (equipment maintenance, oil and electricity consumption, etc.) [9], coupled with the implementation of increasingly strict air emission regulations in the shipping field, which have placed higher demands on ship emissions [10]. Especially since the MARPOL Convention was issued, emissions of gases such as NOx (nitrogen oxides) and CO2 (carbon dioxide) have been greatly restricted [11].
In this context, simulation systems have gradually replaced real systems as the mainstream [12,13], especially engine simulators, which have played a significant role in the training of seafarers [14,15]. The ship piping network plays an extremely important role in the engine simulation system [16]. It allows users to intuitively feel the changes in flow, pressure, and other parameters in the piping systems of various systems on ships. The programming of ship piping networks is extremely complex, usually described and calculated based on text, which requires programmers to manually import and process a large amount of data, and usually having a low reuse rate [17].
In order to increase the efficiency of ship piping network programming and the reuse rate of programs, researchers have made great efforts. In 2018, Wang Erqiang [18] designed various functional simulation model programs and system simulation interfaces in the Visual Studio integrated environment, completing the simulation of the liquid cargo loading and unloading system of an independent C-type LNG ship. Taking the LNG ship loading operation simulation process as an example, he detailed the calculation process of the parameters inside the liquid cargo tanks during each stage of the loading operation. The developed simulation software has advantages such as a beautiful interface, simple and convenient operation, and strong professionalism. It realizes the operation simulation of the liquid cargo system and further improves the development of liquid cargo simulators for various types of liquefied gas ships, which has certain application value for the operation training of liquefied gas ships, but the modeling process is tedious. In 2017, Wu Dong [19] established a visualization modeling software using WPF graphical interface technology. The visualization modeling environment provided by the platform made it convenient to build simulation models of ship piping networks. This visualization modeling platform supports the modification of piping network equipment attributes, supports automatic piping network topology analysis, and has the characteristics of a friendly interface, convenient operation, and easy maintenance and management in the later stage, meeting the needs of building and hydraulic calculation of ship piping network simulation models. However, the software cannot be reused. In 2021, Zhou Jia [20] and others proposed a parameterized modeling method based on the finite element method of piping networks and developed a ship ballast water simulation system using mixed programming methods such as C#, MATLAB, and structured query language. The application on different ships shows that the system has universality and can automatically generate reasonable ballasting schemes according to the target. This method improves the accuracy of calculation but is relatively less operable. In October 2023, Xiaoyu Wu and others [21] used Microsoft’s WPF graphical interface technology and C# language to build a graphical interface of the ship piping network and used Excel spreadsheets as a means of data input to establish logical models of various pipelines and valve devices on ships, allowing users to intuitively drag and drop controls on the base map of the drawing to visually build the physical model of the real ship’s piping network and customize attributes such as maximum allowable flow and flow direction according to the table. It improves the accuracy and efficiency of data processing and calculation. However, the calculation ability for complex piping networks is poor.
In the field of research on ship piping network system design, the methodology introduced in this paper has obvious innovative points. First, we used a combination of advanced drawing software and the Scalable Vector Graphics (SVG) format to improve the clarity and precision of piping network graphics at different resolutions and sizes, which is a significant technical leap in traditional ship piping network design. Secondly, the core of this study lies in the seamless integration of the Windows Presentation Foundation (WPF) with professional drawing tools, making the visualization of complex piping networks not only more intuitive and efficient but also more flexible when modifying and optimizing the design. In addition, the method of flow and pressure calculation in the study is also innovated, especially in dealing with complex situations such as multiple pumps in parallel and series pipelines. Our developed program can accurately simulate the actual situation, providing users with a simulation platform close to the real operating environment. The integration of these technologies not only optimizes the design process and reduces human errors but also significantly improves the efficiency and reliability of the entire ship piping network system design. This innovative methodology not only provides important reference value for instruction on and practical operation of ship piping networks but also lays a foundation for future research and development in ship piping network system design.

2. Overall Program Design

2.1. Development of Ship Piping Network Base Program

In today’s field of ship piping network system design, users often need to deal with complex parameters and models, which is a particular challenge for individuals without professional programming experience. Traditionally, solving these problems involved advanced programming languages and environments like MATLAB R2021a and C++ 11, which, although powerful, entailed a complexity that often meant that non-programming professionals had to invest a lot of time to learn and adapt.
To address this difficulty, the ship piping network visualization computing tool developed in this study, by integrating Microsoft’s WPF framework and C# programming language, not only provides a set of intuitive graphical interfaces but also lowers the technical threshold required for users to perform piping network analysis and design. Compared to MATLAB and C++, our tool simplifies the process of programming and data management, allowing non-technical users to build and analyze complex piping systems through graphical drag-and-drop and direct manipulation.
The user interface design capabilities provided by WPF are particularly suited for applications that require highly customized UIs, such as the visualization of ship piping networks [22], while C#’s type safety and high execution speed ensure the stability and efficiency of the program [23]. These features, combined with the strong support of the integrated development environment (IDE) Visual Studio, greatly simplify the entire development process, from data binding to user interface design. Our tool allows users to use the familiar program, Excel, for data input and management, which is especially suitable for professionals who are accustomed to using spreadsheets for daily work.
The tool proposed in this study not only aims to fill the gap in the user-friendliness of existing solutions but also provides an efficient solution for non-professional programmers for piping network design and analysis. By reducing the learning curve, enhancing real-time data update functions, and providing a more intuitive operating interface, our tool is expected to make complex piping network analysis work easier and more efficient, ultimately achieving the goal of making ship piping network design and analysis work accessible to all potential users.

2.2. The Main Implemented Functionalities

Targeting the needs of non-programming professionals, this tool was specially developed for ship piping network teaching. Its core advantage lies in realizing a highly intuitive and user-friendly graphical interface, which not only enhances the convenience of learning and use but also significantly improves the teaching effect. In this way, students can quickly grasp the key concepts of ship piping network systems without a complex programming background.

2.2.1. Graphical User Interface (GUI) Design

In terms of graphical interface design, our tool uses SVG import to visually display the way pipes are connected. Simple lines represent pipes, and various nodes indicate connection points, while users can place pumps, valves, and other equipment directly using the interface in WPF. This design allows programmers to design the topology and layout of piping networks without in-depth understanding of complex program codes.
For dynamic piping simulation, which is typically achieved through programming, our tool offers real-time display of the piping network status changes through graphical interaction, including flow simulation, pressure changes, and other significant physical parameters. Thus, even students without knowledge of programming can conduct advanced piping network analysis and design using our tool. The usability of the tool will greatly promote programming efficiency in the field of ship piping network teaching, making it an ideal educational auxiliary tool.

2.2.2. Data Analysis and Integration

Data analysis is a key function of the piping network program. In the ship piping network, there are numerous segments, connection nodes, pumps, valves, and other components. After components are clicked, the program will immediately judge the connection status of the corresponding pipes, and when a pipe is judged as connected, the program will automatically calculate important parameters such as flow and pressure and display them in the designated position for the user to monitor the operation status of the piping network.
By using C#’s high-speed data processing capability, the program can quickly and accurately calculate flow, pressure, and other key parameters in the piping, greatly enhancing the data processing speed. This allows the program to display in real time when dealing with complex piping systems, enabling users to see data feedback while operating.
Another distinctive feature of the program is that programmers can directly adjust the data in the program by adjusting the corresponding parameters in the Excel spreadsheet. This feature is particularly suitable for those who are not familiar with complex programming, because they can use the familiar Excel interface to operate and manage data. This convenient method of data import and export not only simplifies the data management process but also makes the entire design process more efficient and user-friendly. In this way, the program builds a bridge between technical professionalism and user convenience, making complex piping network design and analysis accessible to a wider user group.

2.2.3. Complex Piping Network Simulation

The program is capable of simulating calculations of various parameters, such as flow and pressure, in piping with multiple pumps in parallel, pump groups in series, and series pipelines with bypass branch pipes; it can also simulate changes in piping network parameters when students operate different components, such as the pressure change during pump idling, flow and pressure changes when the piping is connected, etc., making it easier for marine engineering students to grasp the corresponding knowledge of ship piping networks. Especially in handling complex piping parameters, the real-time dynamic data changes can reflect the various data changes in the piping network more intuitively.

3. Program Development and Implementation

3.1. Implementation of Piping Network Visualization

At the initial stage of piping network modeling, we first used advanced drawing software to carefully draw piping schematic diagrams, as shown in Figure 1. In this schematic diagram, large rectangles represent tanks, and thin lines map out the pipes in the piping network. Arrows are used to indicate the direction of fluid flow in the pipes. We used different colors to distinguish pipes and tanks with different functions. In this paper, the color of pipes and tanks is brown for the sewage system, but users can also set the colors inside pipes and tanks themselves, such as generally using red for firefighting water, black for heavy oil, etc. After completing these detailed drawing tasks, we save the piping diagram in SVG format. Then, these SVG image files are imported into the WPF environment as the basic layer for design work. The significant advantage of this method is that it not only allows us to display the piping network layout in a personalized way but also ensures the clarity and accuracy of the SVG vector graphics at various display sizes and resolutions [24]. Furthermore, this method allows programmers to easily adjust and optimize piping diagrams to ensure that they meet the precise requirements of complex piping network system designs.
When designing the piping network system, we focus on the visual representation of key components, such as pumps, valves, and monitoring tags, including water level, pressure, and flow. As shown in Figure 2, we developed a set of control styles in WPF and placed them in a reusable resource library. In this example program, flow and pressure are respectively marked with “G” and “P”. Considering that the flow value is relatively large and the pressure is small, the flow value is kept to one decimal place, while the pressure value is kept to two, to facilitate accurate representation. In the piping network diagram, the valve is represented by two opposite triangles. The one-way valve is displayed as one black and one white triangle, with the gray-black part indicating the direction of fluid flow. When the valve is open, the black part will turn to the color of the piping for the operator to intuitively understand. It is worth noting that pumps on actual ships are generally designed with safety valves to prevent the pump or prime mover from being damaged when the pump operates when the discharge piping is not operational (equivalent to infinite system resistance). In this system, pumps are assumed to come with safety valves by default, but when the user only opens the pump and the valve in the direction of the pump inlet, the pump’s pressure will be higher than the pump’s rated pressure, and a warning will pop up (as shown in Figure 3). When the user opens the valve in the direction of the pump outlet so that the pump can work normally, the program will continue to run normally and cancel the warning. If both triangles are white, this indicates that the valve is a stop valve, meaning that the flow is blocked. When the stop valve is opened, the color of the triangles will all turn to the color of the piping. The triangle embedded in the circle represents the pump, and the direction of the triangle indicates the outlet direction of the pump. When the pump is not turned on, it shows a gray-black color and will show the color of the piping when it is opened. The rectangle inside the tank represents the water level tag, providing an intuitive way for the operator to understand the liquid level in the tank. In the design of this program, the upper limit of the tank’s water is 100, the initial water level is 70%, and the water level shown in the water level tag will change with the user’s operation. When the maximum water level is reached, it will be impossible to continue supplying water to the tank, and it will be diverted to other branches. Similarly, when the minimum water level is reached, it will be impossible to take water from the tank. When the pump corresponding to the tank cannot supply water to the tank or take water from the tank, it will be automatically shut down. It is worth mentioning that some tanks operate using fluid gravity (without pumps), and at this time, it is necessary to set the maximum flow limit for the outlet pipe section of the tank, otherwise the program will pop up a warning and stop running, and the programmer will need to check and correct the error before it can continue running (as shown in Figure 4). This detailed graphic design ensures that operators can clearly identify and interpret the various status information in the piping network.
Through this design method, which considers both aesthetics and functionality, the project successfully enhances the overall coordination of the user interface and ensures the clear visibility and ease of use of the controls against different piping diagram backgrounds. Such a user interface design is not only easy to understand but also easy to operate, which is of great significance for reducing the difficulty in instruction regarding complex ship piping networks.

3.2. Implementation of Data Visualization

In a specific ship piping network, due to the complexity of internal channels, similar to an anthill’s crisscrossing, these pipes cross several decks to form a three-dimensional network system. This is designed to achieve effective material transmission between devices. However, in the simulation environment, the specific length and shape of the pipes do not affect the final simulation results, so the pipe representation is more of a schematic diagram of the network layout, used to describe the flow path of the medium from inlet A to outlet B, which also has to pass through valves and pumps.
To simplify the analysis and design of this complex network, this paper proposes to convert the complex piping network into a tabular description, recording in detail the inlets and outlets of each branch and the effective cutoff points on the branch, such as valves and pumps. Then, these textual descriptions are converted into structural diagrams, which facilitate finding all connected branches from any point in the piping network and recording the cutoff points on each branch. In this network, the changes in each cutoff point are crucial to the function and efficiency of the entire network.
For complex piping networks with multiple pumps in parallel, pump groups in series, and series pipes with bypass branch pipes, accurately calculating the flow at any point at any time is a highly complex task. This requires not only careful consideration of all branches that allow flow, but also, taking into account that when encountering a ring-shaped piping network, the complexity will increase exponentially. Therefore, this study proposes to simplify the complex piping network to a simple piping network containing a single pump. For such a web-like structure consisting of nodes and connecting lines, the system’s structural diagram becomes clearer and easier to understand.
Most importantly, this study uses Excel spreadsheets as the carrier of information, describing the controls and piping nodes in the ship piping network. In this way, programmers only need to edit the front-end interface and Excel spreadsheet to make the program run normally. This method greatly reduces the complexity of programming and improves programming efficiency, providing a more efficient and intuitive method for the design and analysis of ship piping networks. Through this innovative method, it is possible to more effectively manage and optimize complex ship piping network systems, improving the reliability and efficiency of the system.

3.3. Data Integration

The data of the ship piping network is defined in both the front-end interface and the external Excel spreadsheet, and these two datasets need to correspond to each other. The data is defined in the front-end interface as follows:
Name: Used to name each control in the piping network, which can be defined by the programmer.
ID: Used to mark a unique name for each control in the piping network.
Coordinates: Used to mark the location information of each control in the piping network.
VariableID: A unique identifier for each control in the piping network.
Type: The related type of each control in the piping network, which can be defined by the programmer.
Color: The color of each control in the piping network, which can be defined by the programmer.
PipeID: The number of the pipe section and each control on the pipe, which corresponds to the external Excel spreadsheet.
The data of the ship piping network is stored in the external Excel spreadsheet, and the data in the spreadsheet is defined as follows (as shown in Table 1):
PipeID: The number of the pipe section and the controls on the pipe, which must correspond to the front-end interface one by one.
Name: The naming of the controls in the piping network, used for the program to recognize the controls on the pipe section.
PipeDirection: The direction of the pipe flow, if AB is defined as flowing from node A to node B, and BA is the opposite. If the pipe flow can move from A to B and from B to A, it is defined as CC (defining the upper left as node A and the lower right as node B (left and right weight is greater than up and down)).
PipeConnecterA: Other pipe nodes connected to pipe node A.
PipeConnecterB: Other pipe nodes connected to pipe node B.
IsSource: Whether it is a starting pipe, with no other pipes connected before the starting pipe.
IsTerminal: Whether it is a terminal pipe, with no other pipes connected after the terminal pipe.
PumpFlow: The flow produced by the pump when it is running normally in the pipe.
PumpMaxPressure: The operating pressure of the pump when the inlet is connected and the outlet is not, during the running of the pump.
PumpMinPressure: The operating pressure of the pump when it is normally connected during the running of the pump.
MaxFlow: The maximum flow limit of the pipe; the default maximum flow is infinite. If there is a preset maximum flow limit, the distribution of flow will proceed freely until this limit is reached. Once the actual flow exceeds this threshold, the excess flow will be temporarily stored in the upstream node of that pipeline and redistributed to other pipelines at the same level. If these pipelines have also reached their flow limit, then the excess flow will be drawn from the connected pipelines in a predetermined proportion and redistributed, and this adjustment process will continue to be executed until the flow is balanced and distributed to the end pipelines of the network. This mechanism ensures that every pipeline in the system receives an appropriate flow distribution, avoiding the risk of exceeding flow capacity.
G/Ppipe: The tags in the program that display the flow and pressure of the pipeline. When entering, Gpipe is in front, Ppipe at the pump inlet direction is after it, and Ppipe at the pump outlet direction is at the end. Use a semicolon to separate Gpipe and Ppipe, and use a comma to separate two Ppipes. Specifically, a pipe section can have at most one Gpipe and two Ppipes. When there is no corresponding tag in the pipe section, use 0 to replace it.

3.4. Data Analysis and Calculation

During program operation, when the user clicks a valve or pump, the color will change to the color of the piping to indicate that it has been opened, and at the same time, the opening signal will be transmitted to the calculation program. This visual effect intuitively displays the current state of the valves and pumps, enhancing the user experience.
Then, the program will analyze the piping network to determine which pipe sections can allow fluid flow. It works through a traversal method, reading and evaluating the state of controls on the pipe sections. When the number of open controls on a pipe section and the number of controls set in the external Excel spreadsheet match (for example, the controls on Pipe1 section are LineValve1, LineValve2, and LinePump1 when the program calculates the open property value of the pipe section as 3), the program will judge that pipe section as allowing flow. When all pipe sections from a source pipe section to an end pipe section allow flow, the pipes composed of these pipe sections will be considered capable of fluid flow. Once a pipe is determined to allow flow, the process of flow calculation and transmission will start.
The flow calculation process is detailed as follows. The program, based on the power of the pump and the flow direction of the pipe predetermined in the external Excel spreadsheet, will request flow from the source section starting from the pump inlet. In this process, if the maximum flow provided by an upstream pipe section exceeds the rated flow of the pump, the system will request according to the pump’s rated flow; otherwise, if the maximum flow that can be provided by the upstream pipe section does not reach the pump’s rated flow, it will adjust the request value according to the maximum flow limit of that section. In this process, the flow is temporarily stored at each upstream node of the pump and continues to request upstream until the source is reached.
In particular, when there are multiple branches at the upstream node, the system will implement an equal flow distribution strategy, that is, it will request flow from each branch node and create an average value. If the maximum flow limit of any branch is lower than the average value calculated, the system will request according to the maximum flow of that branch, and the remaining flow will be distributed to other branches at the same level. When all branches at the same level reach their maximum flow limit, the system will automatically adjust the maximum flow setting of the upstream node to the sum of the maximum flow limits of all branches at the same level.
After the flow is assigned to the source, it will be distributed downstream to each branch node along the piping. The processing of the pump outlet is similar, and the flow stored in the pump node will be adjusted downwards according to the maximum allowable value of the downstream section, following the same principle of average distribution and adjustment of maximum flow limit, until it reaches the terminal. The entire distribution process ensures the accurate and balanced distribution of flow from the source to the end pipe sections. All calculated and distributed flow values are detailed in the pipeline node processing scheme shown in Figure 5, to ensure the intuitiveness of the piping network operation and the clarity of logic.
This software provides a dynamic piping network control and flow display interface. Users can simply click to adjust the working status of valves and pumps, while tracking the flow dynamics of the piping network in real time. This visualization technology not only enhances the interactive experience of users but also makes the understanding and control of the ship piping network system more precise. Through the immediate adjustment of the colors and status of valves and pumps, combined with the intuitive display of flow dynamics, the program plays a crucial role in the visualization of ship piping network instruction and operation. Its interactive features effectively promote users’ intuitive awareness of piping network operation and reflect the results of the operation in real time, greatly enhancing the efficiency of the operation while reducing the risk of mis-operation.

4. Example of the Model’s Actual Execution

Taking a certain ship sewage system as an example, in terms of the user interface, through the linkage with the external Excel data table, we successfully realized the precise presentation of the ship piping network structure. When users enter the system, they can immediately observe an intuitive and graphical display of the ship piping network (as shown in Figure 2).
After the user clicks on controls such as pumps and valves, the corresponding controls will change color to indicate they are open, and after the piping network program judges the pipe to be connected, the corresponding flow and pressure values will be calculated and displayed on the respective tags after calculation. Figure 6 is the display of the program when there is no pump inlet for another pump outlet in the pipe; Figure 7 is the display of the program when there is a pump inlet for another pump outlet in the pipe.
From the above figures, it can be seen that the program can calculate the flow, pressure, and other parameters when there is no pump inlet for another pump outlet in the pipe and when there is a pump inlet for another pump outlet, and display them in the designated position, allowing users to intuitively observe how their operations affect the entire piping network system in real time.

5. Conclusions

The ship piping network programming tool developed in this study provides an effective solution to the problems encountered by traditional text description and calculation methods when dealing with complex and large data volume systems. Facing the challenges of large programming workload, susceptibility to errors, and difficulty in troubleshooting, we used Microsoft’s WPF technology and C# language to successfully create an innovative tool with an intuitive graphical interface, and by integrating Excel as a means of data input, we built a comprehensive logical model.
Based on a deep insight into industry practice, the tool allows users to intuitively build physical models of ship piping networks by dragging controls through the graphical interface. This not only simplifies the design process of complex systems but also significantly enhances the precision and efficiency of data processing and calculation. Users can define key attributes of piping by adjusting parameters in Excel, such as maximum flow and direction, thus enhancing the practicality and accuracy of the model.
After comparative analysis, our tool shows superiority over traditional methods in many aspects. First, it provides an intuitive platform for piping network design, greatly reducing the complexity of design and the difficulty in user instruction. Secondly, the integration of Excel as a data input tool greatly improves the flexibility and efficiency of data management, enabling even non-programming professionals to easily carry out piping network design and analysis.
In summary, the ship piping network programming tool successfully developed in this study not only overcomes the limitations of traditional methods but also provides a more efficient, intuitive, and user-friendly solution for the education and application of ship piping networks. The development and promotion of this tool could open new avenues for optimizing the operation and management of ship piping network systems and could have a profound impact on future teaching and practice in the field. Looking forward to the future, we expect this tool to play a greater role in the teaching and industry application of ship piping networks, bringing a more convenient and efficient design and operating experience.

Author Contributions

Conceptualization, X.W. and Z.H.; funding acquisition, Z.H.; methodology, X.W.; software, X.W.; validation, Z.W., Q.Z. and Z.F.; formal analysis, Z.W.; investigation, Q.Z.; resources, X.W.; data curation, X.W.; writing—original draft preparation, X.W.; writing—review and editing, X.W.; visualization, X.W.; supervision, Z.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Ministry of Industry and Information Technology Project: Innovation Project of the Offshore LNG Equipment Industry Chain: CBG3N21–2–7.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to privacy.

Acknowledgments

The authors extend their appreciation to the anonymous reviewers for their valuable feedback.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Chauvin, C. Human factors and maritime safety. J. Navig. 2011, 64, 625–632. [Google Scholar] [CrossRef]
  2. Pekcan, C.; Gatfield, D.; Barnett, M. Content and Context: Understanding the Complexities of Human Behaviour in Ship Operation; RINA, Royal Institution of Naval Architects International Conference-Human Factors in Ship Design, Safety, and Operation: London, UK, 2005. [Google Scholar]
  3. European Maritime Safety Agency (EMSA). Annual Overview of Marine Casualties and Incidents 2022; EMSA: Tulsa, OK, USA, 2022. [Google Scholar]
  4. Grech, M.; Horberry, T.; Koester, T. Human factors in the maritime domain. In Hum Factors Marit Domain; CRC Press: Boca Raton, FL, USA, 2019. [Google Scholar]
  5. Hanzu-Pazara, R.; Barsan, E.; Arsenie, P.; Chiotoroiu, L.; Raicu, G. Reducing of maritime accidents caused by human factors using simulators in training process. J. Mar. Res. 2018, 5, 3–18. [Google Scholar]
  6. Maran, N.J.; Glavin, R.J. Low-to High-Fidelity Simulation-a Continuum of Medical Education? Med. Educ. 2003, 37 (Suppl. 1), 22–28. [Google Scholar] [CrossRef] [PubMed]
  7. Balakrishnan, B.; Woods, P. Virtual laboratories in engineering education: The simulation lab and remote lab. Comput. Appl. Eng. Educ. 2009, 7, 109–1118. [Google Scholar]
  8. Benetazzo, L.; Bertocco, M.; Ferraris, F.; Ferrero, A.; Offelli, C.; Parvis, M.; Piuri, V. A web-based distributed virtual educational laboratory. IEEE Trans. Instrum. Meas. 2020, 49, 349–356. [Google Scholar] [CrossRef]
  9. Cong, Y.; Wang, B.; Zhang, D.; Zou, Y.; Du, T.; Han, Z. Application research of online simulation teaching platform for onshore engine room. In Proceedings of the International Forum on Scientific and Technological Development in Education (9th), Beijing, China, 25 July 2022; p. 4. [Google Scholar] [CrossRef]
  10. Yuan, Y.; Wang, J.; Yan, X.; Shen, B.; Long, T. A review of multi-energy hybrid power system for ships. Renew. Sustain. Energy Rev. 2020, 132, 110081. [Google Scholar] [CrossRef]
  11. Inal, O.B.; Charpentier, J.F.; Deniz, C. Hybrid power and propulsion systems for ships: Current status and future challenges. Renew. Sustain. Energy Rev. 2022, 156, 111965. [Google Scholar] [CrossRef]
  12. Sun, J.; Zhang, Q.; Huang, D.; Zhang, L. A Novel Networked Marine Engine Simulator for Crew Operation Examination with Auto Evaluation Using Virtual Reality Technology. In Proceedings of the 2014 International Conference on Virtual Reality and Visualization, Shenyang, China, 30–31 August 2014; pp. 1–6. [Google Scholar]
  13. Xin, R.; Zhai, J.; Liao, C.; Wang, Z.; Zhang, J.; Bazari, Z.; Ji, Y. Simulation Study on the Performance and Emission Parameters of a Marine Diesel Engine. J. Mar. Sci. Eng. 2022, 10, 985. [Google Scholar] [CrossRef]
  14. Dewan, M.H.; Godina, R.; Chowdhury, M.R.K.; Noor, C.W.M.; Wan Nik, W.M.N.; Man, M. Immersive and Non-Immersive Simulators for the Education and Training in Maritime Domain—A Review. J. Mar. Sci. Eng. 2023, 11, 147. [Google Scholar] [CrossRef]
  15. Wu, Q. Application and Development of Ship Propulsion Simulator. China Water Transp. 2023, 23, 43–45. [Google Scholar]
  16. Wu, D.; Cao, H. Design and Development of visual modeling software for Ship pipe network based on WPF. Comput. Netw. 2016, 42, 72–75. [Google Scholar]
  17. Liu, M. Hydraulic calculation and optimal operation of water supply network. J. Hydraul. Eng. 1995, 09, 32–39. [Google Scholar]
  18. Wang, E. Research on Modeling and Simulation of Liquid Cargo System of LNG Carrier. Master’s Thesis, Dalian Maritime University, Dalian, China, 2018. [Google Scholar]
  19. Wu, D. Research on Visual Modeling of Ship Pipe Network. Master’s Thesis, Dalian Maritime University, Dalian, China, 2017. [Google Scholar]
  20. Zhou, J.; Liu, X.; Song, L.; Sun, C. Ship Ballast Water simulation system based on mixed programming of C# and MATLAB. Shipbuild. Technol. 2021, 49, 6–11. [Google Scholar]
  21. Wu, X.; He, Z.; Feng, Y.; Ma, R. Program Design for Ship Piping Network Visualization Model Based on WPF and C#. IEEE Access 2023, 11, 116348–116355. [Google Scholar]
  22. Kozminski, A. Windows Presentation Foundation (WPF) technology meets the challenges of operator interface design in automatic test systems. In Proceedings of the 2012 IEEE AUTOTESTCON Proceedings, Anaheim, CA, USA, 10–13 September 2012; pp. 80–83. [Google Scholar]
  23. Shakhov, A.; Kupraty, O. Basic project of autonomous main engine control and it implementation in C# (C sharp) environment. In Proceedings of the 2021 IEEE 16th International Conference on Computer Sciences and Information Technologies (CSIT), Lviv, Ukraine, 22–25 September 2021; Volume 2, pp. 319–322. [Google Scholar]
  24. Goh, D.H.L.; Wang, J.C.E. Designing a virtual exhibition using Scalable Vector Graphics. In Aslib Proceedings; Emerald Group Publishing Limited: Bingley, UK, 2004; Volume 56, pp. 144–155. [Google Scholar]
Figure 1. Importing SVG images into WPF.
Figure 1. Importing SVG images into WPF.
Applsci 14 02497 g001
Figure 2. Adding required controls to the WPF interface.
Figure 2. Adding required controls to the WPF interface.
Applsci 14 02497 g002
Figure 3. Warning pops up when operated improperly.
Figure 3. Warning pops up when operated improperly.
Applsci 14 02497 g003
Figure 4. Display when the program runs incorrectly.
Figure 4. Display when the program runs incorrectly.
Applsci 14 02497 g004
Figure 5. Process of pipeline node processing.
Figure 5. Process of pipeline node processing.
Applsci 14 02497 g005
Figure 6. Display of the program when there is no pump inlet for another pump outlet in the pipe.
Figure 6. Display of the program when there is no pump inlet for another pump outlet in the pipe.
Applsci 14 02497 g006
Figure 7. Display of the program when there is a pump inlet for another pump outlet in the pipe.
Figure 7. Display of the program when there is a pump inlet for another pump outlet in the pipe.
Applsci 14 02497 g007
Table 1. Definition of data in external Excel spreadsheet.
Table 1. Definition of data in external Excel spreadsheet.
Pipe
ID
NamePipeDirectionPipeConnecterAPipeConnecterBIsSourceIsTerminalPumpFlowPumpMaxPressurePumpMinPressureMaxFlowG/Ppipe
1LineValve1, LineValve2, LinePump1AB 6B, 7ATUREFALSE50.050.04InfinityGpipe1; Ppipe1, Ppipe2
2LineValve3, LineValve4BA7B, 8A FALSETURE InfinityGpipe2; 0, 0
3LineValve5AB 4A, 5ATUREFALSE InfinityGpipe3; 0, 0
4LineValve6, LinePump2AB3B6AFALSEFALSE60.050.04InfinityGpipe4; Ppipe3, Ppipe4
5LineValve7, LinePump3AB3B6AFALSEFALSE60.050.04InfinityGpipe5; Ppipe5, Ppipe6
6LineValve8AB4B, 5B1B, 7AFALSEFALSE InfinityGpipe6; 0, 0
7LineValve9AB1B, 6B2A, 8AFALSEFALSE Infinity0; 0, 0
8LineValve12, LineValve13AB2A, 7B14B, 15AFALSEFALSE InfinityGpipe8; 0, 0
9LineValve18AB 10A, 11ATUREFALSE InfinityGpipe10; 0, 0
10LineValve19, LinePump4AB9B12AFALSEFALSE70.060.05InfinityGpipe11; Ppipe7, Ppipe8
11LineValve20, LinePump5AB9B12AFALSEFALSE70.060.05InfinityGpipe12; Ppipe9, Ppipe10
12LineValve21AB10B, 11B13A, 14AFALSEFALSE InfinityGpipe13; 0, 0
13LineValve10, LineValve11BA12B, 14A FALSETURE InfinityGpipe7; 0, 0
14LineValve22CC12B, 13A8B, 15AFALSEFALSE Infinity0; 0, 0
15LineValve23CC8B, 14B16A, 17AFALSEFALSE Infinity0; 0, 0
16LineValve14, LineValve15BA 15B, 17ATUREFALSE InfinityGpipe8; 0, 0
17LineValve24CC15B, 16A18B, 19AFALSEFALSE Infinity0; 0, 0
18LineValve16, LineValve17AB 17B, 19ATUREFALSE 2Gpipe9; 0, 0
19LineValve25, LineValve26AB17B, 18B24B, 25AFALSEFALSE InfinityGpipe14; 0, 0
20LineValve31AB 21A, 22ATUREFALSE InfinityGpipe17; 0, 0
21LineValve32, LinePump6AB20A23AFALSEFALSE80.060.05InfinityGpipe18; Ppipe11, Ppipe12
22LineValve33, LinePump7AB20A23AFALSEFALSE80.060.05InfinityGpipe19; Ppipe13, Ppipe14
23LineValve34AB21B, 22B24A, 31AFALSEFALSE InfinityGpipe20; 0, 0
24LineValve35CC23B, 31A19B, 25AFALSEFALSE Infinity0; 0, 0
25LineValve36CC19B, 24B26B, 27AFALSEFALSE Infinity0; 0, 0
26LineValve27, LineValve28AB 25B, 27ATUREFALSE 2Gpipe15; 0, 0
27LineValve37AB25B, 26B28A, 29AFALSEFALSE InfinityGpipe21; 0, 0
28LineValve38, LinePump8AB27B30AFALSEFALSE90.060.05InfinityGpipe22; Ppipe15, Ppipe16
29LineValve39, LinePump9AB27B30AFALSEFALSE90.060.05InfinityGpipe23; Ppipe17, Ppipe18
30 AB28B, 29B31B, 32AFALSEFALSE Infinity0; 0, 0
31LineValve40AB23B, 24A30B, 32AFALSEFALSE InfinityGpipe24; 0, 0
32LineValve29, LineValve30BA30B, 31B FALSETURE InfinityGpipe16; 0, 0
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wu, X.; He, Z.; Wei, Z.; Zhang, Q.; Fan, Z. Visualization Program Design for Complex Piping Systems in Marine Engine Simulation Systems. Appl. Sci. 2024, 14, 2497. https://doi.org/10.3390/app14062497

AMA Style

Wu X, He Z, Wei Z, Zhang Q, Fan Z. Visualization Program Design for Complex Piping Systems in Marine Engine Simulation Systems. Applied Sciences. 2024; 14(6):2497. https://doi.org/10.3390/app14062497

Chicago/Turabian Style

Wu, Xiaoyu, Zhibin He, Zhenghao Wei, Qi Zhang, and Zhibo Fan. 2024. "Visualization Program Design for Complex Piping Systems in Marine Engine Simulation Systems" Applied Sciences 14, no. 6: 2497. https://doi.org/10.3390/app14062497

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop