Electric vehicle charging and discharging method, system, terminal and storage medium based on networking algorithm
Through the grid-type algorithm, the characteristics of synchronous generators are simulated, and electric vehicles participate in grid frequency and voltage regulation, solving the stability problem of the V2G system when the grid fluctuates, and improving the overall stability and response performance of the power grid.
Patent Information
- Application Number
- CN202510615459.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2045-05-14
AI Technical Summary
The existing V2G system cannot be actively adjusted when the grid frequency and voltage fluctuate, resulting in poor grid stability and lack of reactive power regulation capabilities, which affects the frequency and voltage stability of the grid.
The grid-type algorithm is used to obtain grid-connected current, capacitance voltage and inductor current, calculate reactive power and active power, simulate the characteristics of synchronous generators, and realize the interaction between electric vehicles and grid energy in the form of voltage sources, and participate in the regulation of grid frequency and voltage.
It improves the stability and immunity of the power grid, can alleviate fluctuations during frequency disturbances, enhances the frequency and voltage regulation capabilities of the power system, and improves the dynamic response speed and control accuracy of the system.
Smart Images

Figure CN120156381B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of grid-type converters, and in particular relates to a method, system, terminal and storage medium for charging and discharging an electric vehicle based on a grid-type algorithm. Background Art
[0002] With the rapid development of the electric vehicle industry in recent years, electric vehicles are no longer simply viewed as a means of transportation; they are gradually evolving into mobile energy storage devices. This has led to the emergence of vehicle-grid interaction technologies, which allow electric vehicles to not only charge but also feed energy back into the grid, providing power during peak hours and storing energy during off-peak hours. This optimizes load distribution and improves the stability and reliability of the power system.
[0003] Existing V2G systems often use a grid-following algorithm, which causes the V2G system to operate in current source mode. This means that the V2G device delivers or absorbs a fixed current to the grid to control the flow of power. This approach can meet basic charging and discharging requirements, but it has significant drawbacks in terms of grid stability, dynamic regulation capabilities, and power quality. These shortcomings are primarily manifested as follows: First, traditional V2G systems use a grid-following algorithm for control. When the grid load fluctuates, the V2G system's current will rapidly adjust, potentially exacerbating grid frequency fluctuations and voltage instability. Furthermore, under the grid-following algorithm control mode, V2G devices can only passively adapt to grid voltage fluctuations and are unable to actively adjust the grid's frequency and voltage. This makes it easy for V2G devices to trigger power surges when connected to the grid, causing grid voltage fluctuations and impacting grid stability. Second, existing V2G systems rely primarily on power commands, outputting fixed currents based solely on set power values. These systems lack the ability to perceive the real-time state of the grid. When the grid frequency drops (e.g., due to a sudden increase in load), the V2G system cannot proactively provide active power support, potentially exacerbating the frequency drop. When the grid frequency rises (e.g., due to a sudden increase in power generation), the V2G system cannot proactively absorb the excess power, leading to frequency overshoot. Furthermore, existing V2G systems lack reactive power regulation capabilities, making them ineffective in supporting stable grid voltage operation. Summary of the Invention
[0004] In view of the problem that under the traditional V2G technology in the existing technology, when the frequency and amplitude of the power grid fluctuate, the current of the electric vehicle charging and discharging device will fluctuate rapidly, thereby causing greater frequency fluctuations and voltage instability in the power grid, the present invention provides an electric vehicle charging and discharging method, system, terminal and storage medium based on a network-building algorithm, so that the electric vehicle charging and discharging device simulates the characteristics of a synchronous generator, so that the electric vehicle can realize two-way energy transmission between the electric grid and the power grid in the form of a voltage source, and can participate in regulating the frequency and voltage fluctuations of the power grid during transmission, thereby improving the overall stability of the system and the power grid to solve the above technical problems.
[0005] In a first aspect, the present invention provides a method for charging and discharging an electric vehicle based on a network-building algorithm, comprising:
[0006] Obtain three-phase grid-connected current, capacitor voltage and inductor current;
[0007] Calculate reactive power and active power based on grid current and capacitor voltage;
[0008] Calculating a reference voltage based on a preset rated voltage effective value, preset reactive power and reactive energy;
[0009] Based on the preset rated angular velocity, the preset active energy and the active power, the output angular velocity is calculated, and based on the output angular velocity, the output phase is calculated;
[0010] Based on the grid-connected current and output angular velocity, a virtual voltage signal is calculated;
[0011] Based on the virtual voltage signal, the reference voltage, the output phase, the inductor current and the capacitor voltage, a three-phase half-bridge control signal is calculated, and based on the three-phase half-bridge control signal, the three-phase half-bridge is adjusted.
[0012] Furthermore, reactive power and active power are calculated based on the grid current and capacitor voltage, including:
[0013] Based on grid current and capacitor voltage , using the formula , calculate reactive power , where x=a,b,c;
[0014] Using the formula , calculate active power .
[0015] Furthermore, based on a preset rated voltage effective value, a preset reactive amount and reactive power, a reference voltage is calculated, including:
[0016] Based on the preset rated voltage RMS , preset reactive power and reactive power , using the formula , calculate the reference voltage , where S is the Laplace operator, is the reactive power droop coefficient, and is the controller parameter, =0.002, =0.001.
[0017] Furthermore, based on the preset rated angular velocity, the preset active energy and the active power, the output angular velocity is calculated, and based on the output angular velocity, the output phase is calculated, including:
[0018] Based on the preset rated angular velocity , preset active power and active power , using the formula , calculate the output angular velocity ,in, is the preset rated angular velocity, 50 Rad, is the active power droop coefficient, is the moment of inertia of the virtual generator, D is the damping coefficient of the virtual generator;
[0019] Based on the output angular velocity and the Laplace operator S, the output phase is calculated .
[0020] Furthermore, based on the grid-connected current and the output angular velocity, a virtual voltage signal is calculated, including:
[0021] and output angular velocity , using the formula , get the virtual current signal under virtual impedance , based on the virtual current signal , using the formula , calculate the virtual voltage signal , where Lv is the preset virtual inductance value.
[0022] Furthermore, based on the virtual voltage signal, the reference voltage, the output phase, the inductor current, and the capacitor voltage, a three-phase half-bridge control signal is calculated, including:
[0023] Based on virtual voltage signal , reference voltage , output phase , inductor current and capacitor voltage , the three-phase half-bridge control signal is calculated:
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032] in, =1, =0.1, =450, d is the component in the d-axis direction, q is the component in the q-axis direction, is the bus voltage value, C is the filter capacitor value, is the A-phase half-bridge control signal PWMA, is the B-phase half-bridge control signal PWMB, It is the C-phase half-bridge control signal PWMC.
[0033] In a second aspect, the present invention provides an electric vehicle charging and discharging system based on a network-building algorithm, comprising:
[0034] A data acquisition module is used to obtain three-phase grid-connected current, capacitor voltage and inductor current;
[0035] Power calculation module, used to calculate reactive power and active power based on grid current and capacitor voltage;
[0036] A reference voltage calculation module, configured to calculate a reference voltage based on a preset rated voltage effective value, preset reactive power, and reactive energy;
[0037] An output phase calculation module, configured to calculate an output angular velocity based on a preset rated angular velocity, preset active energy, and active power, and to calculate an output phase based on the output angular velocity;
[0038] A virtual voltage calculation module is used to calculate a virtual voltage signal based on the grid-connected current and the output angular velocity;
[0039] The control signal calculation module is used to calculate the three-phase half-bridge control signal based on the virtual voltage signal, the reference voltage, the output phase, the inductor current and the capacitor voltage, and adjust the three-phase half-bridge based on the three-phase half-bridge control signal.
[0040] Furthermore, the power calculation module includes:
[0041] Reactive power calculation unit for grid-connected current and capacitor voltage , using the formula , calculate reactive power , where x=a,b,c;
[0042] Active power calculation unit for using the formula , calculate active power .
[0043] According to a third aspect, a terminal is provided, including:
[0044] processor, memory, wherein
[0045] The memory is used to store computer programs,
[0046] The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.
[0047] In a fourth aspect, a computer storage medium is provided, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the methods described in the above aspects.
[0048] The beneficial effects of the present invention lie in the fact that the electric vehicle charging and discharging method, system, terminal, and storage medium based on a grid-based algorithm can effectively improve the system stability and responsiveness during energy interaction between electric vehicles and the power grid. Compared to traditional V2G systems that use current source control, the present invention introduces a virtual synchronous generator model. By simulating the inertia and damping characteristics of synchronous generators, electric vehicles participate in system operation as voltage sources during grid connection, providing stronger frequency and voltage regulation capabilities, thereby significantly improving the stability and anti-interference capabilities of the power grid.
[0049] Specifically, the present invention introduces the rotational inertia of the virtual generator and the damping coefficient D of the virtual generator, so that the electric vehicle can respond like a synchronous generator when frequency disturbance occurs, alleviating the rapid frequency fluctuation; at the same time, the angular velocity droop control strategy is introduced to adjust the The value can support the grid frequency and effectively prevent the grid frequency from collapsing. In addition, the present invention adopts the voltage reactive droop coefficient in the reactive control link. , dynamically adjust reactive power output according to real-time changes in grid voltage, improve voltage regulation capabilities, and alleviate voltage fluctuations. At the same time, a dual closed-loop voltage and current control structure consisting of a capacitor voltage outer loop and an inductor current inner loop, combined with a primary differential feedback mechanism, effectively suppresses circuit resonance, improving the system's dynamic response speed and control accuracy. Unlike traditional grid-following converters, the present invention enables the converter, i.e., the electric vehicle charging and discharging device, to simulate the characteristics of a synchronous generator, making it appear as a voltage source, capable of providing voltage and frequency support to the grid and enhancing the stability of the power system.
[0050] In addition, the present invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0052] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.
[0053] Figure 2 FIG. 4 is a schematic block diagram of a system according to an embodiment of the present invention.
[0054] Figure 3 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0055] In order to enable those skilled in the art to better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0057] The electric vehicle charging and discharging method based on the networking algorithm provided in the embodiment of the present invention is executed by a computer device. Accordingly, the electric vehicle charging and discharging system based on the networking algorithm runs in the computer device.
[0058] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention. Figure 1 The execution subject can be an electric vehicle charging and discharging system based on a network-based algorithm. According to different needs, the order of the steps in the flowchart can be changed, and some steps can be omitted.
[0059] To facilitate understanding of the present invention, the electric vehicle charging and discharging method based on a networking algorithm provided by the present invention is further described below based on the principle of the electric vehicle charging and discharging method based on a networking algorithm provided by the present invention.
[0060] The electric vehicle charging and discharging device (V2G) includes a V2G back stage (DC-DC) and a V2G front stage (AC-DC), which are connected through a DC bus and work together to achieve a bidirectional flow of energy between the battery and the grid.
[0061] The V2G backstage is responsible for energy exchange between the intermediate DC bus and the electric vehicle battery, thereby enabling charging and discharging of the electric vehicle battery according to scheduling requirements. During operation, it is primarily responsible for stabilizing the intermediate DC bus voltage. This is not relevant to the present invention and will not be described in detail.
[0062] The V2G front-end is responsible for energy exchange between the intermediate DC bus and the grid. By collecting the current voltage, frequency, and amplitude of the grid, it uses a virtual synchronous generator control method to adjust its own active and reactive output, thereby assisting in regulating the grid's voltage, frequency, and amplitude. Virtual synchronous generators are one of the grid-forming algorithms.
[0063] Specifically, such as Figure 1 As shown, the electric vehicle charging and discharging method based on the network-building algorithm includes:
[0064] S1. Obtain the three-phase grid-connected current, capacitor voltage, and inductor current.
[0065] S2. Calculate reactive power and active power based on grid-connected current and capacitor voltage.
[0066] Based on grid current and capacitor voltage , using the formula , calculate reactive power , where x=a,b,c; using the formula , calculate active power .
[0067] S3. Calculate and obtain a reference voltage based on a preset rated voltage effective value, preset reactive power, and reactive power.
[0068] Based on the preset rated voltage RMS , preset reactive power and reactive power , using the formula , calculate the reference voltage , where S is the Laplace operator, is the reactive power droop coefficient, and is the controller parameter, =0.002, =0.001. Specifically, It is usually set to 220V.
[0069] S4. Based on the preset rated angular velocity, the preset active energy and the active power, the output angular velocity is calculated, and based on the output angular velocity, the output phase is calculated.
[0070] Based on the preset rated angular velocity , preset active power and active power , using the formula , calculate the output angular velocity ,in, is the preset rated angular velocity, 50 Rad, is the active power droop coefficient, is the moment of inertia of the virtual generator, D is the damping coefficient of the virtual generator; based on the output angular velocity and the Laplace operator S, the output phase is calculated .
[0071] S5. Calculate and obtain a virtual voltage signal based on the grid-connected current and the output angular velocity.
[0072] Based on grid current and output angular velocity , using the formula , get the virtual current signal under virtual impedance , based on the virtual current signal , using the formula , calculate the virtual voltage signal , where Lv is the preset virtual inductance value.
[0073] Specifically, to ensure the VSG operates under inductive impedance conditions, a virtual impedance is introduced to enhance the stability of the device. This virtual impedance takes the form of adding inductive impedance. To ensure both good dynamic response and filtering effects, the virtual impedance part adopts the cascaded TOGI and SOGI.
[0074] S6. Calculate a three-phase half-bridge control signal based on the virtual voltage signal, the reference voltage, the output phase, the inductor current, and the capacitor voltage, and adjust the three-phase half-bridge based on the three-phase half-bridge control signal.
[0075] Based on virtual voltage signal , reference voltage , output phase , inductor current and capacitor voltage , the three-phase half-bridge control signal is calculated:
[0076]
[0077]
[0078]
[0079]
[0080]
[0081]
[0082]
[0083]
[0084] in, =1, =0.1, =450, d is the component in the d-axis direction, q is the component in the q-axis direction, is the bus voltage value, C is the filter capacitor value, is the A-phase half-bridge control signal PWMA, is the B-phase half-bridge control signal PWMB, It is the C-phase half-bridge control signal PWMC.
[0085] Specifically, the voltage-current dual closed-loop system uses the voltage and frequency commands generated by the active and reactive power loops to generate the switching signals required by the IGBTs through the dual closed-loop control section, achieving stable active and reactive power output. This dual closed-loop system utilizes a capacitor voltage outer loop and an inductor current inner loop control scheme. To suppress resonance, capacitor voltage primary differential feedback is introduced.
[0086] First, in the outer voltage loop, the system compares the set target voltage with the actual measured load voltage to generate a voltage error signal. This error signal is processed by a proportional-integral regulator, combined with capacitor voltage compensation and accounting for cross-coupling effects caused by grid frequency fluctuations. This generates target current values in two directions, representing the active and reactive components of power transmission, respectively. Then, in the inner current loop, the system compares these target current values with the actual feedback current to obtain the current error. A proportional regulator is then used to calculate target voltage values in both directions. These two target voltage values undergo coordinate transformation and are converted into three-phase sinusoidal modulation signals. To meet the inverter's modulation requirements, these modulation values are normalized based on the DC bus voltage. Finally, the normalized three-phase signals are compared with a fixed-frequency triangle wave carrier to generate three pulse-width modulated control signals, which are used to control the switching devices of the three-phase half-bridge in the inverter. These three PWM signals correspond to phases A, B, and C respectively, directly determining the conduction moment and conduction time of each phase, thereby achieving effective control of the inverter output waveform and enabling it to simulate the dynamic behavior of a synchronous generator.
[0087] In some embodiments, the electric vehicle charging and discharging system based on the network-based algorithm may include multiple functional modules composed of computer program segments. The computer program of each program segment in the electric vehicle charging and discharging system based on the network-based algorithm may be stored in the memory of a computer device and executed by at least one processor to perform (see Figure 1 (Description) The charging and discharging functions of electric vehicles based on a network-building algorithm.
[0088] In this embodiment, the electric vehicle charging and discharging system based on the network-based algorithm can be divided into multiple functional modules according to the functions it performs, such as Figure 2 As shown. The functional modules of system 200 may include: a data acquisition module 210, a power calculation module 220, a reference voltage calculation module 230, an output phase calculation module 240, a virtual voltage calculation module 250, and a control signal calculation module 260. A module as referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can perform fixed functions, and is stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0089] A data acquisition module is used to obtain three-phase grid-connected current, capacitor voltage and inductor current;
[0090] Power calculation module, used to calculate reactive power and active power based on grid current and capacitor voltage;
[0091] A reference voltage calculation module, configured to calculate a reference voltage based on a preset rated voltage effective value, preset reactive power, and reactive energy;
[0092] An output phase calculation module, configured to calculate an output angular velocity based on a preset rated angular velocity, preset active energy, and active power, and to calculate an output phase based on the output angular velocity;
[0093] A virtual voltage calculation module is used to calculate a virtual voltage signal based on the grid-connected current and the output angular velocity;
[0094] The control signal calculation module is used to calculate the three-phase half-bridge control signal based on the virtual voltage signal, the reference voltage, the output phase, the inductor current and the capacitor voltage, and adjust the three-phase half-bridge based on the three-phase half-bridge control signal.
[0095] Optionally, as an embodiment of the present invention, the power calculation module includes:
[0096] Reactive power calculation unit for grid-connected current and capacitor voltage , using the formula , calculate reactive power , where x=a,b,c;
[0097] Active power calculation unit for using the formula , calculate active power .
[0098] Figure 3 A schematic structural diagram of a terminal 300 provided in an embodiment of the present invention. The terminal 300 can be used to execute the electric vehicle charging and discharging method based on the networking algorithm provided in an embodiment of the present invention.
[0099] The terminal 300 may include a processor 310, a memory 320, and a communication unit 330. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention. The server structure may be a bus structure or a star structure, and may include more or fewer components than shown, or may combine certain components or arrange the components differently.
[0100] Memory 320 can be used to store execution instructions of processor 310. Memory 320 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. When the execution instructions in memory 320 are executed by processor 310, terminal 300 can perform some or all of the steps in the above-described method embodiments.
[0101] The processor 310 is the control center of the storage terminal. It uses various interfaces and lines to connect various parts of the entire electronic terminal. It executes various functions of the electronic terminal and / or processes data by running or executing software programs and / or modules stored in the memory 320, and calling data stored in the memory. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 310 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0102] The communication unit 330 is configured to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals, or send user data to other terminals.
[0103] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program that, when executed, may include some or all of the steps of each embodiment provided herein. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0104] Therefore, this invention can effectively improve the system stability and responsiveness during energy interaction between electric vehicles and the power grid. Compared to traditional V2G systems that use current source control, this invention introduces a virtual synchronous generator model. By simulating the inertia and damping characteristics of synchronous generators, electric vehicles participate in system operation as voltage sources during grid connection, providing stronger frequency and voltage regulation capabilities, thereby significantly improving the stability and anti-interference capabilities of the power grid.
[0105] Specifically, the present invention introduces the rotational inertia of the virtual generator and the damping coefficient D of the virtual generator, so that the electric vehicle can respond like a synchronous generator when frequency disturbance occurs, alleviating the rapid frequency fluctuation; at the same time, the angular velocity droop control strategy is introduced to adjust the The value can support the grid frequency and effectively prevent the grid frequency from collapsing. In addition, the present invention adopts the voltage reactive droop coefficient in the reactive control link. , dynamically adjusting reactive power output based on real-time changes in grid voltage, improving voltage regulation capabilities and alleviating voltage fluctuations. Furthermore, a dual closed-loop voltage and current control structure consisting of an outer capacitor voltage loop and an inner inductor current loop, combined with a primary differential feedback mechanism, effectively suppresses circuit resonance, improving the system's dynamic response speed and control accuracy. The technical effects achieved by this embodiment can be found in the description above and will not be elaborated upon here.
[0106] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus a necessary general-purpose hardware platform. Based on this understanding, the technical solutions in the embodiments of the present invention, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, among other media capable of storing program code, and includes instructions for causing a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention.
[0107] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
[0108] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or modules, and can be electrical, mechanical or other forms.
[0109] 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 modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected to achieve the purpose of the present embodiment according to actual needs.
[0110] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0111] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and such modifications or substitutions shall be within the scope of the present invention. Any person skilled in the art who is familiar with the present invention may easily conceive of changes or substitutions within the technical scope disclosed in the present invention, and such changes or substitutions shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A method for charging and discharging an electric vehicle based on a network-building algorithm, characterized in that: include: Obtain three-phase grid-connected current, capacitor voltage and inductor current; Calculate reactive power and active power based on grid current and capacitor voltage; Calculating a reference voltage based on a preset rated voltage effective value, preset reactive power and reactive energy; Based on the preset rated angular velocity, the preset active energy and the active power, the output angular velocity is calculated, and based on the output angular velocity, the output phase is calculated; Based on the grid-connected current and output angular velocity, a virtual voltage signal is calculated; Based on the virtual voltage signal, the reference voltage, the output phase, the inductor current and the capacitor voltage, a three-phase half-bridge control signal is calculated, and the three-phase half-bridge is adjusted based on the three-phase half-bridge control signal; Calculate reactive power and active power based on grid current and capacitor voltage, including: Based on grid current and capacitor voltage , using the formula: , calculate reactive power , where x=a,b,c; Using the formula , calculate active power ; Based on the preset rated voltage RMS value, preset reactive power and reactive energy, the reference voltage is calculated, including: Based on the preset rated voltage RMS , preset reactive power and reactive power , using the formula , calculate the reference voltage , where S is the Laplace operator, is the reactive power droop coefficient, and is the controller parameter, =0.002, =0.001; Based on the preset rated angular velocity, the preset active energy and the active power, the output angular velocity is calculated. Based on the output angular velocity, the output phase is calculated, including: Based on the preset rated angular velocity , preset active power and active power , using the formula , calculate the output angular velocity ,in, is the preset rated angular velocity, 50 Rad, is the active power droop coefficient, is the moment of inertia of the virtual generator, D is the damping coefficient of the virtual generator; Based on the output angular velocity and the Laplace operator S, the output phase is calculated .
2. The method according to claim 1, characterized in that Based on the grid-connected current and output angular velocity, the virtual voltage signal is calculated, including: Based on grid current and output angular velocity , using the formula , get the virtual current signal under virtual impedance , based on the virtual current signal , using the formula , calculate the virtual voltage signal , where Lv is the preset virtual inductance value.
3. The method according to claim 1, characterized in that Based on the virtual voltage signal, reference voltage, output phase, inductor current and capacitor voltage, the three-phase half-bridge control signal is calculated, including: Based on virtual voltage signal , reference voltage , output phase , inductor current and capacitor voltage , the three-phase half-bridge control signal is calculated: in, =1, =0.1, =450, d is the component in the d-axis direction, q is the component in the q-axis direction, is the bus voltage value, C is the filter capacitor value, is the A-phase half-bridge control signal PWMA, is the B-phase half-bridge control signal PWMB, It is the C-phase half-bridge control signal PWMC.
4. An electric vehicle charging and discharging system based on a network-building algorithm, characterized in that: include: A data acquisition module is used to obtain three-phase grid-connected current, capacitor voltage and inductor current; Power calculation module, used to calculate reactive power and active power based on grid current and capacitor voltage; A reference voltage calculation module, configured to calculate a reference voltage based on a preset rated voltage effective value, preset reactive power, and reactive energy; An output phase calculation module, configured to calculate an output angular velocity based on a preset rated angular velocity, preset active energy, and active power, and to calculate an output phase based on the output angular velocity; A virtual voltage calculation module is used to calculate a virtual voltage signal based on the grid-connected current and the output angular velocity; A control signal calculation module is used to calculate a three-phase half-bridge control signal based on a virtual voltage signal, a reference voltage, an output phase, an inductor current, and a capacitor voltage, and to adjust the three-phase half-bridge based on the three-phase half-bridge control signal; The power calculation module includes: Reactive power calculation unit for grid-connected current and capacitor voltage , using the formula , calculate reactive power , where x=a,b,c; Active power calculation unit for using the formula , calculate active power ; Based on the preset rated voltage RMS value, preset reactive power and reactive energy, the reference voltage is calculated, including: Based on the preset rated voltage RMS , preset reactive power and reactive power , using the formula , calculate the reference voltage , where S is the Laplace operator, is the reactive power droop coefficient, and is the controller parameter, =0.002, =0.001; Based on the preset rated angular velocity, the preset active energy and the active power, the output angular velocity is calculated. Based on the output angular velocity, the output phase is calculated, including: Based on the preset rated angular velocity , preset active power and active power , using the formula , calculate the output angular velocity ,in, is the preset rated angular velocity, 50 Rad, is the active power droop coefficient, is the moment of inertia of the virtual generator, D is the damping coefficient of the virtual generator; Based on the output angular velocity and the Laplace operator S, the output phase is calculated .
5. A terminal, characterized in that: include: A memory for storing an electric vehicle charging and discharging program based on a networking algorithm; A processor is used to implement the steps of the electric vehicle charging and discharging method based on a networking algorithm as described in any one of claims 2 to 3 when executing the electric vehicle charging and discharging program based on the networking algorithm.
6. A computer-readable storage medium storing a computer program, characterized in that: The readable storage medium stores an electric vehicle charging and discharging program based on a networking algorithm. When the electric vehicle charging and discharging program based on a networking algorithm is executed by a processor, the steps of the electric vehicle charging and discharging method based on a networking algorithm as described in any one of claims 2-3 are implemented.
Citation Information
Patent Citations
Electric car power-grid voltage compensation method based on virtual synchronous generator algorithm
CN106130077A
Virtual resistor-based pre-synchronization control method and system for network-forming converter
CN117277414A