Harmonic suppression method and system based on cooperation of ship shaft generation system and battery

By collecting and analyzing the current signals of the ship's shaft generator system and battery system, a phase reversal compensation logic matrix is ​​generated, and a bidirectional converter is used to output phase reversal current. This solves the problem of traditional harmonic suppression methods failing under ship shaking conditions, and improves the harmonic suppression efficiency and system stability.

CN120728600AActive Publication Date: 2025-09-30CSSC SILENT ELECTRIC SYSTEM (WUXI) TECHNOLOGY CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511239855.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-02
Publication Date
2025-09-30
Estimated Expiration
2045-09-02

AI Technical Summary

Technical Problem

Traditional harmonic suppression methods are unable to track the dynamic drift of the harmonic phase of the ship's shaft generator system in real time, resulting in low harmonic suppression efficiency and seriously affecting the stability and safety of the ship's power grid.

Method used

By synchronously collecting the current signals of the shaft transmission system and the battery system, a harmonic feature data set is generated, the dynamic coupling offset feature vector is extracted, the harmonic phase reversal direction that needs to be compensated for the battery system is determined, and a phase reversal compensation logic matrix is ​​generated. The active compensation current with phase reversal is output through the bidirectional converter to offset the harmonics.

Benefits of technology

It realizes real-time dynamic adjustment of harmonic phase, improves harmonic suppression efficiency and system stability, reduces the harmonic distortion rate of the ship's power grid, and adapts to the ship's swaying conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120728600A_ABST
    Figure CN120728600A_ABST
Patent Text Reader

Abstract

The invention discloses a harmonic suppression method and system based on cooperation of a ship shaft generation system and a battery, and belongs to the technical field of harmonic suppression of a ship power system. The method comprises the following steps: synchronously acquiring a three-phase current signal of a shaft generating system and a charging and discharging current signal of a battery system, and generating a harmonic characteristic data set; based on the data set, extracting a harmonic phase offset feature vector between the shaft generating system and the battery system; according to the offset feature vector, determining a harmonic phase inversion direction needing to be compensated for by the battery system; generating a phase inversion compensation logic matrix based on the harmonic phase inversion direction; generating a dynamic harmonic compensation instruction for driving the battery system according to the matrix; and executing an instruction through the bidirectional converter to enable the battery system to output an active compensation current opposite to the harmonic phase of the shaft generating system. The system comprises corresponding function modules. Harmonic phase dynamic drift caused by ship shaking can be tracked in real time, the optimal compensation strategy is generated in a self-adaptive mode, and the harmonic suppression efficiency and the power grid stability are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and system for suppressing harmonics in a coordinated manner between a ship's shaft generator system and a battery. Background Art

[0002] In ship power systems, shaft generators (shaft generator systems) are a crucial power source, offering energy-saving advantages. However, during operation, these systems inevitably generate current harmonics. These harmonics, when injected into the ship's power grid, can cause a range of power quality issues, including voltage waveform distortion, equipment overheating, relay protection malfunction, and communication interference, seriously threatening the safety and stability of ship operations. Therefore, effectively suppressing shaft generator harmonics is a key technical requirement for improving the quality of ship power grids.

[0003] Existing harmonic suppression technologies, whether based on passive filtering with fixed parameters or conventional active compensation strategies (especially passive compensation methods that rely on preset harmonic models or fixed reference phases), often lack the core control logic to detect and adaptively adjust to the rapid and large dynamic drift of harmonic phases. When the harmonic phase drift exceeds the phase tracking range or adaptability of the compensation device, a significant phase mismatch occurs between the compensation current and the actual shaft harmonic current. This mismatch not only fails to effectively offset the target harmonics, but may even generate larger harmonic currents or trigger system oscillations due to phase superposition, exacerbating the harmonic pollution level of the power grid and significantly reducing the efficiency of harmonic suppression and system stability. Summary of the Invention

[0004] The present invention provides a harmonic suppression method and system for a ship's shaft generator system in collaboration with a battery. The main purpose of the system is to solve the problem of dynamic drift of the harmonic phase of the ship's shaft generator system due to the shaking of the ship, which causes the traditional passive harmonic suppression method to fail.

[0005] To achieve the above objectives, the present invention provides a method for harmonic suppression in a ship's shaft generator system in conjunction with a battery, comprising: Synchronously collect the three-phase current signals output by the shaft generator system and the charge and discharge current signals of the battery system to generate a harmonic characteristic data set; extracting, based on the harmonic characteristic data set, an offset characteristic vector generated by the dynamic coupling between the shaft generator system and the battery system; determining a harmonic phase reversal direction to be compensated for the battery system according to the offset eigenvector; Based on the harmonic phase reversal direction, generating a phase reversal compensation logic matrix for offsetting the shaft-generated harmonics; generating a dynamic harmonic compensation instruction for driving the battery system according to the phase reversal compensation logic matrix; The dynamic harmonic compensation instruction is executed by a bidirectional converter, so that the battery system outputs an active compensation current with a phase opposite to the harmonics of the shaft generator system, thereby achieving harmonic energy offset of the ship's power grid.

[0006] In order to solve the above problems, the present invention also provides a harmonic suppression system for a ship shaft generator system and a battery, the system comprising: The current signal acquisition module is used to synchronously collect the three-phase current signals output by the shaft generator system and the charge and discharge current signals of the battery system to generate a harmonic characteristic data set; an offset feature extraction module, configured to extract an offset feature vector generated by the dynamic coupling between the shaft generator system and the battery system based on the harmonic feature data set; a compensation direction determining module, configured to determine a harmonic phase reversal direction to be compensated for the battery system according to the offset eigenvector; A compensation logic generation module, configured to generate a phase reversal compensation logic matrix for offsetting shaft-generated harmonics based on the harmonic phase reversal direction; a driving instruction generation module, configured to generate a dynamic harmonic compensation instruction for driving the battery system according to the phase reversal compensation logic matrix; The compensation execution module is used to execute the dynamic harmonic compensation instruction through a bidirectional converter, so that the battery system outputs an active compensation current with a phase opposite to the harmonic of the shaft generation system, thereby achieving harmonic energy offset of the ship's power grid.

[0007] Compared with the prior art, the present invention has the following beneficial effects: First, the present invention synchronously collects the three-phase current of the shaft generator system and the charge and discharge current signals of the battery system to construct a harmonic feature dataset. From this dataset, the present invention analyzes and extracts the harmonic phase offset feature vectors generated by the dynamic coupling between the shaft generator system and the battery system due to the ship's sway. This method can capture the dynamic changes in the harmonic phase in real time, overcoming the shortcomings of traditional methods in being slow to perceive phase drift. Secondly, based on the extracted offset eigenvector, the present invention intelligently analyzes the phase offset polarity law and dynamically determines the harmonic phase reversal direction required for compensation of the battery system; and then generates a phase reversal compensation logic matrix that can be adjusted in real time with the phase drift; finally, the battery system is driven to output an active compensation current with precise phase reversal and amplitude matching through a bidirectional converter, and the active compensation current is injected into the ship's power grid. The compensation current is opposite in phase to the harmonic current of the shaft generation system, and the dynamic cancellation of harmonic energy is directly achieved, which significantly improves the efficiency of harmonic suppression and the adaptability to the ship's swaying conditions. The phase change can be tracked in real time without presetting fixed parameters, which effectively solves the suppression failure problem caused by harmonic phase drift under the ship's swaying conditions and reduces the harmonic distortion rate of the ship's power grid. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 A schematic flow chart of a method for harmonic suppression using a ship's shaft generator system and batteries in collaboration, provided in accordance with one embodiment of the present invention; Figure 2 This is a functional module diagram of a harmonic suppression system that combines a ship's shaft generator system with batteries, provided in one embodiment of the present invention.

[0009] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0010] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0011] The embodiment of the present application provides a method for harmonic suppression in collaboration with a ship's shaft generator system and a battery. The execution subject of the method for harmonic suppression in collaboration with a ship's shaft generator system and a battery includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided in the embodiment of the present application. In other words, the method for harmonic suppression in collaboration with a ship's shaft generator system and a battery can be executed by software or hardware installed on a terminal device or a server device. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms.

[0012] Reference Figure 1 FIG. 1 is a flow chart of a method for harmonic suppression in which a ship's shaft generator system and a battery are coordinated, according to an embodiment of the present invention. In this embodiment, the method for harmonic suppression in which a ship's shaft generator system and a battery are coordinated comprises: S1. Synchronously collect the three-phase current signals output by the shaft transmission system and the charge and discharge current signals of the battery system to generate a harmonic feature data set.

[0013] In some embodiments, the synchronous acquisition of the three-phase current signal output by the shaft transmission system and the charge and discharge current signal of the battery system to generate a harmonic characteristic data set includes: The three-phase current original signal at the generator end of the shaft-generating system is collected through the current sensor; The original charge and discharge current signals of the battery system DC bus are collected through the Hall sensor; A harmonic characteristic data set is generated according to the three-phase current original signal and the charge and discharge current original signal.

[0014] In an embodiment of the present application, the shaft generation system is a power supply system in a ship composed of a main engine shaft-driven generator, and its output current contains harmonic components; the three-phase current signal is an electrical signal of the A, B, and C three-phase alternating current output from the generator end of the shaft generation system.

[0015] In an embodiment of the present application, the battery system is a system on a ship used for energy storage and capable of charging and discharging operations, comprising a DC bus and a bidirectional converter; the charging and discharging current signal is an electrical signal of the current passing through the DC bus during the charging and discharging process of the battery system.

[0016] In the embodiment of the present application, the harmonic feature data set is a data set containing features such as harmonic amplitude and phase extracted after processing the collected three-phase current signal and charge and discharge current signal.

[0017] In the embodiment of the present application, the current sensor is a device that can detect the magnitude of the three-phase current at the generator end of the shaft generator system and convert it into a measurable signal; the Hall sensor is a sensor based on the Hall effect and is used to detect the charging and discharging current of the DC bus of the battery system.

[0018] In the embodiment of the present application, the three-phase current original signal is the unprocessed A, B, and C three-phase current signal at the generator end of the shaft generator system directly collected by the current sensor; the charge and discharge current original signal is the unprocessed charge and discharge current signal of the DC bus of the battery system directly collected by the Hall sensor.

[0019] In the embodiment of the present application, the step of synchronously collecting the three-phase current signal output by the shaft transmission system and the charging and discharging current signal of the battery system to generate a harmonic feature data set first requires completing the collection of the two current signals, and then generating the harmonic feature data set based on the collected original signals. The specific process is as follows: First, the three-phase current raw signals at the generator end of the shaft generator system are collected using current sensors. A current sensor with an accuracy level of 0.2 and a measurement range of 0-500A is selected and installed at the output end of the shaft generator system, connected to the three-phase lines A, B, and C respectively. The sensor sampling frequency is set to 10kHz to ensure that the high-frequency harmonic components in the current signal can be captured. During normal navigation of the ship, the current sensor detects the current changes in the three-phase line in real time, converts the current signal into a standard 4-20mA analog signal, and transmits it to the data acquisition module. For example, when the shaft generator system is in a stable operating state, the instantaneous value of the raw current signal of phase A at a certain moment is 200A, phase B is 195A, and phase C is 205A. These values ​​are collected and recorded in real time.

[0020] Next, the raw charge and discharge current signals of the battery system's DC bus are collected using Hall sensors. A Hall sensor with a response time of less than 1μs and a measurement range of -200A to +200A is selected and connected in series to the battery system's DC bus. The sampling frequency is also set to 10kHz, consistent with the sampling frequency of the current sensor, to achieve synchronous signal acquisition. The Hall sensor converts the detected charge and discharge current signals into 0-5V analog signals and transmits them to the same data acquisition module. For example, when the battery system is in a discharging state, the raw charge and discharge current signal at a certain moment is -100A (the negative sign indicates discharge). This signal is accurately collected and stored at the same timestamp as the three-phase current raw signals.

[0021] Finally, a harmonic feature data set is generated based on the three-phase current original signal and the charge and discharge current original signal. The data acquisition module converts the received analog signal into a digital signal and processes the digital signal using the fast Fourier transform algorithm. For the three-phase current original signal, the amplitude and phase of the 3rd, 5th, and 7th main harmonics in each phase current are extracted respectively; for the charge and discharge current original signal, the amplitude and phase of the main harmonics contained therein are also extracted. These extracted harmonic features are sorted in time sequence and phase sequence to form a harmonic feature data set. For example, after processing, the amplitude of the 3rd harmonic of the A-phase current is 5A and the phase is 30°, and the amplitude of the 3rd harmonic of the battery system charge and discharge current is 2A and the phase is 25°. These data are incorporated into the data set in an orderly manner.

[0022] In an embodiment of the present application, by synchronously collecting two current signals and generating a harmonic characteristic data set, the dynamic changes in the harmonic phase of the shaft transmission system under working conditions such as ship shaking and the response of the battery system can be captured in a timely manner, thereby providing data support for solving the problem of traditional suppression failure caused by the dynamic drift of the harmonic phase of the ship's shaft transmission system.

[0023] S2. Extracting an offset feature vector generated by the dynamic coupling between the shaft transmission system and the battery system based on the harmonic feature data set.

[0024] In some embodiments, extracting the offset feature vector generated by the dynamic coupling between the shaft transmission system and the battery system based on the harmonic feature data set includes: Based on the harmonic characteristic data set, identifying the dynamic coupling waveform of the shaft harmonic current and the battery harmonic current under the ship swaying condition; Comparing the zero-crossing time difference between the dynamic coupling waveform and a preset reference waveform; The real-time phase offset angle of the harmonics of the shaft-generating system relative to the battery system is calculated according to the zero-crossing time difference, and an offset feature vector is generated.

[0025] In the embodiment of the present application, the ship swaying condition refers to the operating state in which the ship undergoes posture changes such as rolling and pitching due to the action of wind and waves or during turning.

[0026] In the embodiment of the present application, the shaft harmonic current is a current formed by harmonic components in the output current of the shaft generation system whose frequencies are integer multiples of the fundamental wave; the battery harmonic current is a current containing harmonic components generated during the charging and discharging process of the battery system; and the dynamic coupling waveform is a waveform formed by the interaction and superposition of the shaft harmonic current and the battery harmonic current under the ship shaking condition.

[0027] In an embodiment of the present application, the preset reference waveform is a standard waveform formed by the superposition of the shaft harmonic current and the battery harmonic current when the ship is in a stable operating condition, which serves as a reference for phase comparison; the zero-crossing time difference is the time difference between the dynamic coupling waveform and the preset reference waveform when passing through the current zero point; the real-time phase offset angle is the phase deviation angle of the shaft system harmonic relative to the battery system harmonic at a certain moment.

[0028] In the embodiment of the present application, the offset characteristic vector generated by dynamic coupling is a vector used to describe the phase offset between the shaft transmission system harmonics and the battery system harmonics caused by dynamic coupling, which includes information such as the real-time phase offset angle.

[0029] In the embodiment of the present application, based on the harmonic feature data set, the step of extracting the offset feature vector generated by the dynamic coupling between the shaft transmission system and the battery system is intended to mine the phase offset information caused by the dynamic coupling between the shaft transmission system and the battery system from the acquired harmonic feature data. This is specifically achieved by identifying the dynamic coupling waveform, calculating the zero-crossing time difference, and determining the real-time phase offset angle, including: First, based on the harmonic signature dataset, the dynamic coupled waveforms of the shaft harmonic current and battery harmonic current under ship sway conditions are identified. This requires extracting waveform data of the shaft harmonic current and battery harmonic current at different times from the harmonic signature dataset. This data contains information about the amplitude, phase, and frequency of each harmonic.

[0030] Then, for the ship's swaying condition, the shaft generator harmonic current waveforms and battery harmonic current waveforms within the corresponding time period were selected to analyze the time-varying waveform superposition effect. For example, the third harmonic was selected for analysis. The waveform of the shaft generator's third harmonic current at time t1 was a sine wave with an amplitude of 5A and a phase of 30°, while the waveform of the battery's third harmonic current at time t1 was a sine wave with an amplitude of 2A and a phase of 25°. These two waveforms were superimposed along the time axis to obtain the superimposed waveform at time t1. By continuously analyzing the superimposed waveforms at multiple moments, a dynamic coupling waveform that reflects the phase drift characteristics was extracted. This waveform exhibits dynamic phase shift characteristics as the shaft generator speed changes due to the ship's swaying.

[0031] In an embodiment of the present application, the zero-crossing time difference between the dynamic coupling waveform and the preset reference waveform is compared, including: the preset reference waveform is a superimposed waveform of the shaft harmonic current and the battery harmonic current obtained by the same method when the ship is sailing smoothly and without obvious shaking, and its zero-crossing position is relatively stable. The identified dynamic coupling waveform and the preset reference waveform are compared in the same time coordinate system to find their respective zero-crossing points (i.e., the moment when the current value is zero). For example, the dynamic coupling waveform passes through the zero point at time t2, and the preset reference waveform passes through the zero point at time t0, then the difference between these two moments Δt=t2-t0 is the zero-crossing time difference. When the ship shakes, due to the fluctuation of the shaft generator speed, the zero-crossing point of the dynamic coupling waveform will be advanced or delayed relative to the zero-crossing point of the preset reference waveform. By accurately capturing these moments, the zero-crossing time difference at different moments can be obtained.

[0032] In this embodiment of the present application, the real-time phase offset angle of the shaft-generating system harmonics relative to the battery system is calculated based on the zero-crossing time difference, generating an offset feature vector. This includes the following: The frequency f of the known AC current (typically 50 Hz for a shipboard power grid) is known, its period T = 1 / f = 0.02 seconds, and the corresponding phase shift is 360°. Based on the zero-crossing time difference Δt, the real-time phase offset angle can be calculated using the formula: "Real-time phase offset angle = (Δt / T) × 360°." For example, when the zero-crossing time difference Δt is detected to be 0.001 seconds, substituting this formula yields the real-time phase offset angle = (0.001 / 0.02) × 360° = 18°. The zero-crossing time differences at multiple consecutive moments are calculated to obtain a series of real-time phase offset angles. These angles are then arranged in chronological order to form a vector, the offset feature vector. For example, if the real-time phase offset angles at three consecutive moments are 18°, 20°, and 22°, respectively, the generated offset feature vector is [18°, 20°, 22°].

[0033] In some embodiments, identifying the dynamic coupling waveform of the shaft harmonic current and the battery harmonic current under the ship swaying condition based on the harmonic characteristic data set includes: Based on the shaft harmonic current and battery harmonic current in the harmonic feature data set, a time-varying waveform superposition effect analysis is performed on the shaft current spectrum characteristics and the battery current spectrum characteristics, and a dynamic coupling waveform representing the phase drift characteristic is extracted.

[0034] In the embodiment of the present application, the shaft current spectrum characteristics are a collection of characteristics such as the frequency, amplitude, and phase of each harmonic in the shaft current; the battery current spectrum characteristics are a collection of characteristics such as the frequency, amplitude, and phase of each harmonic in the battery current.

[0035] In the embodiment of the present application, the time-varying waveform superposition effect analysis is an analysis of the effect of the superposition of the shaft current waveform and the battery current waveform that change with time, so as to extract the phase drift related characteristics; the dynamic coupling waveform that characterizes the phase drift characteristics is a superimposed waveform that can reflect the phase offset between the shaft system harmonics and the battery system harmonics over time.

[0036] In an embodiment of the present application, based on the shaft harmonic current and the battery harmonic current in the harmonic feature data set, a time-varying waveform superposition effect analysis is performed on the shaft current spectrum characteristics and the battery current spectrum characteristics to extract a dynamic coupling waveform characterizing the phase drift characteristics, including: First, the shaft current spectrum features and battery current spectrum features are separated from the harmonic feature dataset. The shaft current spectrum features contain the time-varying data of the frequency, amplitude, and phase of the third, fifth, and seventh harmonics. The battery current spectrum features also contain the time-varying data of the corresponding harmonics.

[0037] Then, for each harmonic, the shaft generator current harmonic waveform and the battery current harmonic waveform are superimposed in a time series, and the temporal variation of the amplitude, frequency, and phase of the superimposed waveforms is analyzed, i.e., the time-varying waveform superposition effect. For example, for the 5th harmonic, the shaft generator 5th harmonic has a phase of 40° at time t3, while the battery 5th harmonic has a phase of 35° at time t3. The phase of the superimposed waveform is affected by the combined phase variations of both harmonics. By analyzing this superposition effect, waveforms that clearly reflect the phase drift between the shaft generator system harmonics and the battery system harmonics are selected, i.e., dynamically coupled waveforms that characterize the phase drift characteristics.

[0038] In an embodiment of the present application, by extracting the offset eigenvector, the phase offset of the shaft transmission system harmonics relative to the battery system harmonics can be captured in real time, which helps to solve the problem that the dynamic drift of the shaft transmission system harmonic phase caused by the ship's shaking makes the traditional suppression method ineffective.

[0039] S3. Determine a harmonic phase reversal direction that needs to be compensated for the battery system according to the offset eigenvector.

[0040] In some embodiments, determining the harmonic phase reversal direction to be compensated for by the battery system according to the offset eigenvector includes: Analyzing the polarity distribution of the phase offset angle in the offset eigenvector; When the polarity distribution is positively monotonically increasing, it is indicated that the battery system needs to adopt the forward compensation mode; When the polarity distribution oscillates in a negative direction, the reverse compensation logic of the battery system is triggered to generate instructions.

[0041] In the embodiment of the present application, the harmonic phase reversal direction is the direction opposite to the shaft-generated harmonic phase that needs to be maintained in order to offset the shaft-generated system harmonics when the battery system outputs the compensation current; the polarity distribution law is the distribution and change trend of the positive and negative values ​​of the phase offset angle in the offset characteristic vector in the time series.

[0042] In the embodiment of the present application, the positive monotonic increase is a state in which the polarity of the phase offset angle is continuously positive and the value is continuously increasing; the forward compensation mode is an operating mode in which the battery system adjusts the compensation current phase according to the positive increasing phase offset.

[0043] In the embodiment of the present application, negative oscillation is a state in which the polarity of the phase offset angle frequently alternates between positive and negative; the reverse compensation logic generation instruction is a control instruction that triggers the battery system to output a reverse compensation current.

[0044] In some embodiments, analyzing the polarity distribution of the phase offset angle in the offset eigenvector includes: Performing polarity conversion on the phase offset angle in the offset feature vector, mapping the angle value at each sampling moment into a discrete positive polarity symbol or a discrete negative polarity symbol, and generating an initial polarity symbol sequence; The initial polarity symbol sequence is subjected to continuous interval statistics and change trend analysis. When a monotonically increasing length of a continuous positive polarity symbol interval is detected, it is marked as a positive increasing mode. When a high-frequency alternation of positive polarity symbols and negative polarity symbols is detected, it is marked as a negative oscillation mode.

[0045] In the embodiment of the present application, polarity conversion is the process of converting the numerical value of the phase offset angle into a sign indicating positive or negative; the initial polarity symbol sequence is a sequence consisting of consecutive symbols obtained after the phase offset angle is polarity converted.

[0046] In the embodiment of the present application, continuous interval statistics are statistics of the length of intervals in which the same symbol appears continuously in the initial polarity symbol sequence; change trend analysis is an analysis of the alternation pattern of symbols and the change of interval length in the initial polarity symbol sequence.

[0047] In the embodiment of the present application, the positive increasing mode is a mode in which the length of consecutive positive polarity symbol intervals in the initial polarity symbol sequence continuously increases; the negative oscillation mode is a mode in which positive and negative symbols in the initial polarity symbol sequence appear alternately at a high frequency.

[0048] In some embodiments, when the polarity distribution oscillates negatively, triggering the reverse compensation logic of the battery system to generate an instruction includes: When the pattern recognition result of the polarity distribution law shows a negative oscillation mode, a reverse compensation enable signal of the battery system is generated, and it is marked that the current ship is in a turning or strong wind and wave condition; In response to the reverse compensation enable signal, a reverse compensation instruction frame with a time window identifier is generated as a reverse compensation logic generation instruction of the battery system.

[0049] In an embodiment of the present application, the reverse compensation enable signal is a signal that allows the battery system to start the reverse compensation function; the time window identifier is an identifier that marks the effective time range of the reverse compensation instruction; and the reverse compensation instruction frame is an instruction data packet containing reverse compensation parameters and time window information.

[0050] In the embodiment of the present application, determining the harmonic phase reversal direction to be compensated for the battery system according to the offset characteristic vector means analyzing the polarity change pattern of the phase offset angle in the offset characteristic vector to determine the compensation mode to be adopted by the battery system, and then determining the harmonic phase reversal direction. The specific process is as follows: First, the polarity distribution of the phase offset angles in the offset eigenvector is analyzed. Each phase offset angle in the offset eigenvector is polarized. If the angle value is greater than 0, it is mapped to a positive polarity symbol (e.g., "+"); if the angle value is less than 0, it is mapped to a negative polarity symbol (e.g., "-"). This generates an initial polarity symbol sequence. For example, if the offset eigenvector is [10°, 15°, -5°, 8°, -3°], the initial polarity symbol sequence after polarity conversion is ["+", "+", "-", "+", "-"].

[0051] Next, the sequence is statistically analyzed for continuous intervals and trend changes. The length of consecutive "+" or "-" intervals is counted. For example, in the above sequence, the length of the first consecutive "+" interval is 2, the length of the "-" interval is 1, the length of the second "+" interval is 1, and the length of the second "-" interval is 1. At the same time, the trend of change is analyzed. If the length of consecutive "+" intervals increases from 2 to 3 or 4, it conforms to the positive increasing pattern. If the alternating interval between "+" and "-" is less than 3 sampling periods, it is marked as a negative oscillation pattern.

[0052] Then, when the polarity distribution is monotonically increasing in a positive direction, the battery system is marked as needing to adopt the forward compensation mode. If the initial polarity symbol sequence is ["+", "+", "+", "+"], the length of the continuous positive polarity symbol interval increases from 1 to 4, showing a positive monotonically increasing trend. At this time, it is determined that the phase of the harmonics of the shaft-generated system is stably positively offset relative to the battery system, and the battery system is marked as adopting the forward compensation mode. In this mode, the phase of the compensation current is adjusted synchronously with the positive offset of the shaft-generated harmonic phase to ensure that it always maintains an opposite phase to the shaft-generated harmonic. For example, if the shaft-generated harmonic phase is 30° and the phase offset angle is 10°, the battery system compensation current phase is set to 30° + 180° - 10° = 200° to achieve phase reversal.

[0053] Finally, when the polarity distribution exhibits negative oscillations, the reverse compensation logic of the battery system is triggered to generate instructions. If the initial polarity symbol sequence is ["+", "-", "+", "-", "+"], with alternating positive and negative symbols every sampling period, it exhibits negative oscillations. This indicates that the ship may be experiencing severe swaying conditions, with unstable phase offsets of the shaft harmonics, necessitating the reverse compensation logic to generate instructions.

[0054] In this embodiment of the present application, analyzing the polarity distribution of the phase offset angle in the offset eigenvector includes determining the analysis window length based on the sampling frequency of the ship's power grid (e.g., 10 kHz), typically taking 100 sampling points as one analysis window. Statistics are then collected on the initial polarity symbol sequence within each window, calculating the proportion of positive polarity symbols and the maximum length of the continuous interval. If the lengths of the continuous positive polarity intervals in three consecutive windows are 5, 8, and 12, respectively, a positive increasing mode is determined. If the number of alternating positive and negative symbols within the same window exceeds 20, a negative oscillation mode is determined.

[0055] In an embodiment of the present application, when the polarity distribution exhibits negative oscillation, the reverse compensation logic of the battery system is triggered to generate an instruction, including: when the pattern recognition result is a negative oscillation pattern, the control system generates a reverse compensation enable signal and, through feedback from the ship's attitude sensor (such as a gyroscope), marks the current vessel as being in a turning or strong wind and wave condition. In response to this enable signal, the system generates a reverse compensation instruction frame with a time window identifier. The time window identifier is typically set to 500ms, meaning that the instruction is valid within 500ms. The instruction frame includes an amplitude adjustment coefficient for the compensation current (e.g., 1.2 times the baseline value) and a phase correction parameter to ensure that the battery system quickly outputs reverse compensation current within a short period of time. For example, if the shaft harmonic phase is 45°, the compensation current phase is set to 45° + 180° + 5° = 230° (the additional 5° is a correction value) to offset the phase offset caused by high-frequency changes.

[0056] In the embodiment of the present application, by accurately identifying the polarity distribution pattern of the phase offset, the battery system can dynamically adjust the compensation direction, solving the problem that traditional passive compensation cannot track the dynamic drift of the shaft harmonic phase, ensuring that the compensation current always remains in the opposite direction of the shaft harmonic, and improving the harmonic suppression effect.

[0057] S4. Based on the harmonic phase reversal direction, generate a phase reversal compensation logic matrix for canceling the shaft-generated harmonics.

[0058] In some embodiments, generating a phase reversal compensation logic matrix for offsetting shaft-generated harmonics based on the harmonic phase reversal direction includes: The harmonic phase reversal direction is mapped to the switching timing rule of the bidirectional converter, the duty cycle parameter of the switching timing rule is adjusted according to the real-time phase offset angle, and a phase reversal compensation logic matrix including the switching timing rule and the duty cycle parameter is output.

[0059] In an embodiment of the present application, the harmonic phase reversal direction is the direction opposite to the shaft harmonic phase that the compensation current output by the battery system needs to maintain in order to offset the shaft harmonics of the shaft transmission system; the phase reversal compensation logic matrix is ​​a matrix used to control the switching state of the bidirectional converter to achieve harmonic phase reversal compensation, which includes switching timing rules and duty cycle parameters.

[0060] In an embodiment of the present application, a bidirectional converter is a power electronic device that connects a battery system to a ship's power grid, and can realize bidirectional conversion of electric energy, controlling the current output by turning on and off switching devices; the switching timing rule is a rule that specifies the turn-on and turn-off sequence and time interval of the switching devices in the bidirectional converter.

[0061] In an embodiment of the present application, the real-time phase offset angle is the phase deviation angle of the shaft transmission system harmonic relative to the battery system harmonic at the current moment; the duty cycle parameter is the ratio of the conduction time of the bidirectional converter switching device in one cycle to the total cycle time, which is used to adjust the amplitude of the output current.

[0062] In an embodiment of the present application, based on the harmonic phase reversal direction, a phase reversal compensation logic matrix is ​​generated to offset the shaft-generated harmonics, which converts the determined harmonic phase reversal direction into specific logic parameters that can control the action of the bidirectional converter, and finally forms a phase reversal compensation logic matrix by mapping the switching timing rules and adjusting the duty cycle parameters.

[0063] In this embodiment of the present application, the harmonic phase reversal direction is mapped to the switching timing rules of the bidirectional converter. This includes: The harmonic phase reversal direction determines the phase relationship between the compensation current and the shaft harmonic current, which is achieved through the switching actions of the bidirectional converter. The bidirectional converter includes six IGBT switching devices (corresponding to the three-phase bridge legs), and the combination of their switching states determines the phase of the output current.

[0064] For example, when the harmonic phase reversal direction requires the compensation current phase to be the shaft harmonic phase plus 180°, for the A-phase current, if the shaft harmonic current is in the positive half-cycle at a certain moment, the compensation current needs to be in the negative half-cycle. At this time, the upper-arm switching device of phase A is turned off and the lower-arm switching device is turned on. This on-off sequence is arranged in a time series to form the switching timing rule of phase A. Similarly, the switching timing rules of phases B and C are generated, and after combination, the overall switching timing rule of the bidirectional converter is obtained.

[0065] In an embodiment of the present application, the duty cycle parameters of the switching timing rule are adjusted based on the real-time phase offset angle. The real-time phase offset angle reflects the dynamic changes in the phase of the shaft-generated harmonics, and the duty cycle parameters need to be adjusted to ensure that the compensation current amplitude matches the shaft-generated harmonic current amplitude to achieve effective compensation. The initial baseline value of the duty cycle parameter is set based on the rated amplitude of the shaft-generated harmonic current. For example, a baseline duty cycle of 0.5 corresponds to a compensation current amplitude of 5A. When the real-time phase offset angle is 10° (assuming a positive correlation between the phase offset angle and the harmonic amplitude), the adjusted duty cycle is calculated according to the formula: "Adjusted duty cycle = baseline duty cycle × (1 + real-time phase offset angle / maximum phase offset angle)." For a maximum phase offset angle of 30°, the adjusted duty cycle = 0.5 × (1 + 10° / 30°) ≈ 0.67. At this point, the compensation current amplitude increases accordingly to accommodate the change in the shaft-generated harmonic current amplitude.

[0066] In an embodiment of the present application, outputting a phase reversal compensation logic matrix containing the switching timing rules and the duty cycle parameters includes: integrating the generated switching timing rules and the adjusted duty cycle parameters into a matrix according to a specific format. The rows of the matrix correspond to the switching devices of the three-phase bridge arms, and the columns correspond to sampling points in the time series. Each element contains the on / off state of the switching device at that moment (using "1" to indicate on and "0" to indicate off) and the corresponding duty cycle value.

[0067] For example, the element of the upper bridge arm of phase A in the matrix at time t1 is "0 (off), 0.67", indicating that the switch device is off at that moment, corresponding to a duty cycle of 0.67. In this way, the switching timing rules and duty cycle parameters are systematically organized to form a phase reversal compensation logic matrix, providing complete control logic for driving the bidirectional converter.

[0068] In an embodiment of the present application, by generating a phase reversal compensation logic matrix, the abstract harmonic phase reversal direction is converted into specific control parameters executable by the bidirectional converter, ensuring that the compensation current can accurately track the dynamic phase drift of the shaft harmonics, thereby solving the problem of fixed control logic and inability to adapt to phase changes in traditional compensation methods, and improving the accuracy of harmonic suppression.

[0069] S5. Generate a dynamic harmonic compensation instruction for driving the battery system according to the phase reversal compensation logic matrix.

[0070] In some embodiments, generating a dynamic harmonic compensation instruction for driving the battery system according to the phase reversal compensation logic matrix includes: Converting the phase reversal compensation logic matrix into a pulse code sequence recognizable by the battery system; The current amplitude of the pulse code sequence is dynamically scaled according to the real-time state of charge of the battery system, and a drive instruction queue with a time stamp is generated as a dynamic harmonic compensation instruction for the battery system.

[0071] In an embodiment of the present application, the dynamic harmonic compensation instruction is an instruction for driving the battery system to output a specific compensation current to offset the shaft harmonics, which includes current amplitude, phase and time information; the pulse code sequence is a binary code sequence converted from the switching timing and duty cycle parameters in the phase reversal compensation logic matrix, which can be recognized by the control module of the battery system.

[0072] In an embodiment of the present application, the real-time state of charge is the ratio of the current remaining power of the battery system to the total capacity, which is used to reflect the available energy state of the battery; the current amplitude is the size of the compensation current, which needs to be dynamically adjusted according to the amplitude of the shaft harmonics; dynamic scaling is the process of adjusting the current amplitude according to the real-time state of charge of the battery to ensure that the compensation current is within the safe output range of the battery; the timestamp mark is a time mark added to the drive instruction to ensure that the instruction is synchronized with the frequency of the ship's power grid; the drive instruction queue is a series of drive instructions arranged in chronological order, which is used to achieve continuous dynamic harmonic compensation.

[0073] In an embodiment of the present application, a dynamic harmonic compensation instruction for driving the battery system is generated based on the phase reversal compensation logic matrix, which converts the phase reversal compensation logic matrix into an instruction that can be directly executed by the battery system, and forms a continuous driving instruction through encoding conversion and amplitude adjustment.

[0074] In an embodiment of the present application, the phase reversal compensation logic matrix is ​​converted into a pulse code sequence recognizable by the battery system, including: the phase reversal compensation logic matrix contains switching timing rules and duty cycle parameters, which need to be converted into a binary pulse sequence through a coding algorithm.

[0075] For example, the switching state of the upper bridge arm of phase A in the matrix is ​​"on-off-on," corresponding to a time interval of 1ms-2ms-1ms and a duty cycle of 0.67. This can be converted into a pulse code sequence of "101" (1 represents on, 0 represents off), where the width of each pulse corresponds to the time interval, and the pulse density reflects the duty cycle. During the conversion process, ensure that the format of the code sequence matches the interface protocol of the battery system control module. For example, the frame structure specified by the RS485 communication protocol, including the start bit, data bits, and check bit, must be used.

[0076] In an embodiment of the present application, the current amplitude of the pulse code sequence is dynamically scaled according to the real-time state of charge of the battery system, including: the real-time state of charge is collected by the battery management system, for example, the current state of charge is 80%. The maximum compensation current amplitude of the battery at full charge (100%) is set to 10A. When the state of charge is lower than 20%, the maximum amplitude is limited to 5A to avoid over-discharge. The linear scaling formula "adjusted current amplitude = reference current amplitude × real-time state of charge" is used. If the reference current amplitude is 8A (determined according to the shaft harmonic amplitude), the adjusted current amplitude = 8A × 80% = 6.4A. Dynamic adjustment of the current amplitude is achieved by modifying the corresponding amplitude field in the pulse code sequence.

[0077] In an embodiment of the present application, a drive instruction queue with a timestamp is generated as a dynamic harmonic compensation instruction for the battery system, including: assigning a 32-bit binary value to the timestamp, accurate to the millisecond level, for example, the current timestamp is "1694567890123". The converted pulse code sequence, the adjusted current amplitude and the timestamp are sequentially combined into an instruction frame, and each instruction frame corresponds to a compensation task of a sampling period (such as 20ms). Multiple consecutive instruction frames are sorted by timestamp to form a drive instruction queue. For example, the queue contains an instruction frame with a timestamp of "1694567890123" corresponding to 6.4A and an instruction frame with a timestamp of "1694567890143" corresponding to 6.3A (the state of charge is slightly reduced), ensuring that the battery system continuously outputs the compensation current in chronological order and matches the dynamic changes of the shaft harmonics in real time.

[0078] In an embodiment of the present application, by converting the logic matrix into executable instructions and dynamically adjusting the current amplitude, it is ensured that the compensation current output by the battery system can not only accurately match the phase and amplitude of the shaft harmonics, but also adapt to changes in its own state of charge. This solves the poor adaptability problem caused by the fixed traditional compensation instructions and improves the stability of harmonic suppression.

[0079] S6. Executing the dynamic harmonic compensation instruction through a bidirectional converter causes the battery system to output an active compensation current with a phase opposite to the harmonics of the shaft generator system, thereby achieving harmonic energy offset of the ship's power grid.

[0080] In some embodiments, the dynamic harmonic compensation instruction is executed by a bidirectional converter, so that the battery system outputs an active compensation current with a phase opposite to the harmonics of the shaft generator system, thereby achieving harmonic energy offset of the ship power grid: parsing the pulse code sequence and time stamp mark in the dynamic harmonic compensation instruction; generating a power semiconductor drive signal synchronized with the ship power grid frequency based on the pulse code sequence and the timestamp mark; Through the bidirectional converter, a compensation current waveform with a phase opposite to the harmonics of the shaft generation system is output to the ship power grid according to the power semiconductor drive signal, thereby achieving harmonic energy cancellation of the ship power grid.

[0081] In an embodiment of the present application, the active compensation current is the current output by the battery system under the drive of the dynamic harmonic compensation instruction, and its phase is opposite to the harmonic phase of the shaft generation system, which is used to offset the harmonic energy; the power semiconductor drive signal is an electrical signal used to control the on and off of the power semiconductor devices (such as IGBT) in the bidirectional converter, and its frequency is synchronized with the ship power grid frequency.

[0082] In the embodiment of the present application, the compensation current waveform is the form of the active compensation current changing with time, and it needs to maintain a phase opposite and amplitude matching with the harmonic waveform of the shaft generation system; harmonic energy cancellation is the process of mutual reduction of harmonic energy after the active compensation current and the harmonic current of the shaft generation system are superimposed due to opposite phases, so as to reduce the harmonic distortion of the ship's power grid.

[0083] In an embodiment of the present application, the dynamic harmonic compensation instruction is executed by a bidirectional converter, so that the battery system outputs an active compensation current with a phase opposite to the harmonic of the shaft generation system, thereby achieving harmonic energy offset of the ship's power grid. This step is the execution link of the entire harmonic suppression process, and the harmonic energy offset is finally completed by parsing the instruction, generating the drive signal and outputting the compensation current.

[0084] In an embodiment of the present application, parsing the pulse code sequence and timestamp mark in the dynamic harmonic compensation instruction includes: after the control unit of the bidirectional converter receives the dynamic harmonic compensation instruction, extracting the pulse code sequence and timestamp mark therein through a decoding algorithm.

[0085] For example, a pulse code sequence of "10101" in a command corresponds to the "on-off-on-off-on-off-on" timing sequence of a switching device; a timestamp of "1694567890143" indicates that the command must take effect at this moment. During parsing, the control unit verifies the integrity of the code sequence (for example, through a CRC check) to ensure that the command has not been tampered with. It also synchronizes the timestamp with the local clock to ensure the timing of command execution.

[0086] In an embodiment of the present application, a power semiconductor drive signal synchronized with the ship power grid frequency is generated based on the pulse code sequence and the timestamp mark, including: the ship power grid frequency is 50 Hz (period 20 ms), and the control unit decomposes the switching action into each power grid cycle according to the timing information in the pulse code sequence.

[0087] For example, the pulse code sequence requires a 5ms on-time and 5ms off-time cycle to complete within 10ms. The control unit generates a square wave drive signal with a 50% duty cycle based on this. Furthermore, the start phase of the drive signal is adjusted based on the timestamp to ensure synchronization with the zero-crossing point of the grid voltage waveform (for example, the first on-time cycle starts when the grid voltage crosses zero), thus avoiding the generation of additional harmonics from the switching operation.

[0088] In an embodiment of the present application, a bidirectional converter outputs a compensating current waveform with an opposite phase to the harmonics of the shaft generator system to the ship's power grid based on the power semiconductor drive signal, thereby achieving harmonic energy cancellation in the ship's power grid. This includes: The IGBT devices in the bidirectional converter are sequentially turned on and off under the control of the power semiconductor drive signal, converting the direct current of the battery system into alternating current. For example, when the third harmonic current of phase A of the shaft generator system is a sinusoidal wave (phase 30°, amplitude 5A), the compensating current waveform output by the bidirectional converter is a sinusoidal wave with a phase 210° (30°+180°) and an amplitude of 5A, with opposite phases. This compensating current is filtered by a filter circuit (such as an LC filter) to remove high-frequency noise before being injected into the ship's power grid and superimposed with the harmonic current of the shaft generator system. Due to the opposite phase, the amplitude of the superimposed harmonic current is significantly reduced, achieving harmonic energy cancellation. For example, the amplitude of the third harmonic current of phase A is reduced from 5A to below 1A after superposition, effectively controlling the harmonic distortion rate of the ship's power grid.

[0089] In the embodiment of the present application, through the precise execution of the bidirectional converter, the active compensation current output by the battery system can track the dynamic phase drift of the shaft generator system harmonics in real time, solving the problem of suppression failure caused by the inability of traditional passive compensation to adapt to phase changes, effectively reducing the harmonic content of the ship's power grid and improving the stability of the power grid operation.

[0090] like Figure 2 , which is a functional module diagram of a harmonic suppression system for a ship shaft generator system and a battery in cooperation with each other, provided by one embodiment of the present invention.

[0091] The harmonic suppression system 100 for a ship's shaft generator system and battery, described in the present invention, can be installed in an electronic device. Depending on the functionality to be implemented, the system 100 may include a current signal acquisition module 101, an offset feature extraction module 102, a compensation direction determination module 103, a compensation logic generation module 104, a drive instruction generation module 105, and a compensation execution module 106. A module, also referred to as a unit, is a series of computer program segments that can be executed by an electronic device's processor and perform a fixed function. These modules are stored in the electronic device's memory.

[0092] In this embodiment, the functions of each module / unit are as follows: The current signal acquisition module 101 is used to synchronously acquire the three-phase current signal output by the shaft generator system and the charge and discharge current signal of the battery system to generate a harmonic characteristic data set; An offset feature extraction module 102 is configured to extract an offset feature vector generated by the dynamic coupling between the shaft generator system and the battery system based on the harmonic feature data set; a compensation direction determining module 103, configured to determine a harmonic phase reversal direction to be compensated for the battery system according to the offset eigenvector; A compensation logic generation module 104 is configured to generate a phase reversal compensation logic matrix for canceling shaft-generated harmonics based on the harmonic phase reversal direction; A driving instruction generation module 105 is configured to generate a dynamic harmonic compensation instruction for driving the battery system according to the phase reversal compensation logic matrix; The compensation execution module 106 is used to execute the dynamic harmonic compensation instruction through the bidirectional converter, so that the battery system outputs an active compensation current with a phase opposite to the harmonic of the shaft generator system, thereby achieving harmonic energy offset of the ship power grid.

[0093] In the several embodiments provided by the present invention, it should be understood that the disclosed methods and systems can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the module division is merely a logical function division, and other division methods may be used in actual implementation.

[0094] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected to achieve the purpose of the solution of this embodiment according to actual needs.

[0095] In addition, the functional modules in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional modules.

[0096] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0097] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to achieve optimal results.

[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A method for harmonic suppression in a ship's shaft generator system and battery, characterized in that: The method comprises: Synchronously collect the three-phase current signals output by the shaft generator system and the charge and discharge current signals of the battery system to generate a harmonic feature data set; extracting, based on the harmonic characteristic data set, an offset characteristic vector generated by the dynamic coupling between the shaft generator system and the battery system; determining a harmonic phase reversal direction to be compensated for the battery system according to the offset eigenvector; Based on the harmonic phase reversal direction, generating a phase reversal compensation logic matrix for offsetting the shaft-generated harmonics; generating a dynamic harmonic compensation instruction for driving the battery system according to the phase reversal compensation logic matrix; The dynamic harmonic compensation instruction is executed by a bidirectional converter, so that the battery system outputs an active compensation current with a phase opposite to the harmonics of the shaft generator system, thereby achieving harmonic energy offset of the ship's power grid.

2. The method for harmonic suppression by the coordinated use of a ship's shaft generator system and a battery according to claim 1, characterized in that: The synchronous acquisition of the three-phase current signal output by the shaft transmission system and the charge and discharge current signal of the battery system to generate a harmonic characteristic data set includes: The three-phase current original signal of the generator end of the shaft-generating system is collected through the current sensor; The original charge and discharge current signals of the battery system DC bus are collected through the Hall sensor; A harmonic characteristic data set is generated according to the three-phase current original signal and the charge and discharge current original signal.

3. The method for harmonic suppression by the coordinated use of a ship's shaft generator system and a battery according to claim 1, characterized in that: The extracting, based on the harmonic characteristic data set, an offset characteristic vector generated by the dynamic coupling between the shaft transmission system and the battery system includes: Based on the harmonic characteristic data set, identifying the dynamic coupling waveform of the shaft harmonic current and the battery harmonic current under the ship swaying condition; Comparing the zero-crossing time difference between the dynamic coupling waveform and a preset reference waveform; The real-time phase offset angle of the harmonics of the shaft-generating system relative to the battery system is calculated according to the zero-crossing time difference, and an offset feature vector is generated.

4. The method for harmonic suppression by the coordinated use of a ship shaft generator system and a battery according to claim 1, characterized in that: The determining, according to the offset eigenvector, a harmonic phase reversal direction to be compensated for the battery system includes: Analyzing the polarity distribution of the phase offset angle in the offset eigenvector; When the polarity distribution is positively monotonically increasing, it is indicated that the battery system needs to adopt the forward compensation mode; When the polarity distribution oscillates in a negative direction, the reverse compensation logic of the battery system is triggered to generate instructions.

5. The method for harmonic suppression by the coordinated use of a ship's shaft generator system and a battery according to claim 4, characterized in that: The analyzing the polarity distribution law of the phase offset angle in the offset eigenvector includes: Performing polarity conversion on the phase offset angle in the offset feature vector, mapping the angle value at each sampling moment into a discrete positive polarity symbol or a discrete negative polarity symbol, and generating an initial polarity symbol sequence; The initial polarity symbol sequence is subjected to continuous interval statistics and change trend analysis. When a monotonically increasing length of a continuous positive polarity symbol interval is detected, it is marked as a positive increasing mode. When a high-frequency alternation of positive polarity symbols and negative polarity symbols is detected, it is marked as a negative oscillation mode.

6. The method for harmonic suppression by the coordinated use of a ship's shaft generator system and a battery as claimed in claim 4, characterized in that: When the polarity distribution oscillates negatively, triggering the reverse compensation logic of the battery system to generate an instruction includes: When the pattern recognition result of the polarity distribution law shows a negative oscillation mode, a reverse compensation enable signal of the battery system is generated, and it is marked that the current ship is in a turning or strong wind and wave condition; In response to the reverse compensation enable signal, a reverse compensation instruction frame with a time window identifier is generated as a reverse compensation logic generation instruction of the battery system.

7. The method for harmonic suppression by the coordinated use of a ship's shaft generator system and a battery as claimed in claim 3, characterized in that: The generating of a phase reversal compensation logic matrix for offsetting shaft-generated harmonics based on the harmonic phase reversal direction includes: The harmonic phase reversal direction is mapped to a switching timing rule of a bidirectional converter, a duty cycle parameter of the switching timing rule is adjusted according to the real-time phase offset angle, and a phase reversal compensation logic matrix including the switching timing rule and the duty cycle parameter is output.

8. The method for harmonic suppression by the coordinated use of a ship's shaft generator system and a battery as claimed in claim 1, characterized in that: Generating a dynamic harmonic compensation instruction for driving the battery system according to the phase reversal compensation logic matrix includes: Converting the phase reversal compensation logic matrix into a pulse code sequence recognizable by the battery system; The current amplitude of the pulse code sequence is dynamically scaled according to the real-time state of charge of the battery system, and a drive instruction queue with a time stamp is generated as a dynamic harmonic compensation instruction for the battery system.

9. The method for harmonic suppression by the coordinated use of a ship's shaft generator system and a battery as claimed in claim 1, characterized in that: The dynamic harmonic compensation instruction is executed by the bidirectional converter, so that the battery system outputs an active compensation current with a phase opposite to the harmonics of the shaft generator system, thereby achieving harmonic energy offset of the ship power grid. parsing the pulse code sequence and time stamp mark in the dynamic harmonic compensation instruction; generating a power semiconductor drive signal synchronized with the ship power grid frequency based on the pulse code sequence and the timestamp mark; Through the bidirectional converter, a compensation current waveform with a phase opposite to the harmonics of the shaft generation system is output to the ship power grid according to the power semiconductor drive signal, thereby achieving harmonic energy cancellation of the ship power grid.

10. A harmonic suppression system for a ship's shaft generator system and a battery, characterized in that: The system comprises: The current signal acquisition module is used to synchronously collect the three-phase current signals output by the shaft generator system and the charge and discharge current signals of the battery system to generate a harmonic characteristic data set; an offset feature extraction module, configured to extract an offset feature vector generated by the dynamic coupling between the shaft generator system and the battery system based on the harmonic feature data set; a compensation direction determining module, configured to determine a harmonic phase reversal direction to be compensated for the battery system according to the offset eigenvector; A compensation logic generation module, configured to generate a phase reversal compensation logic matrix for offsetting shaft-generated harmonics based on the harmonic phase reversal direction; a driving instruction generation module, configured to generate a dynamic harmonic compensation instruction for driving the battery system according to the phase reversal compensation logic matrix; The compensation execution module is used to execute the dynamic harmonic compensation instruction through a bidirectional converter, so that the battery system outputs an active compensation current with a phase opposite to the harmonic of the shaft generation system, thereby achieving harmonic energy offset of the ship's power grid.

Citation Information

Patent Citations

  • Apparatus for inhibiting secondary synchronous resonance of turbo generator set

    CN101499667A

  • Harmonic current tracking control method for active power filter

    CN103595051A

  • Harmonic suppression method of electric propulsion ship power grid

    CN112564111A

  • Harmonic current dynamic compensation method, device and equipment for permanent magnet wind driven generator and medium

    CN118249694A

  • Method for suppressing input three-phase harmonic current of ship power supply equipment

    CN119834601A