Basic Circuit Model of Voltage Source Converters: Methodology and Modeling

: Voltage source converters (VSCs) have emerged as the key components in modern power systems, facilitating efficient energy conversion and flexible power flow control. Understanding the fundamental circuit model of VSCs is essential for their accurate modeling and analysis in power system studies. A basic voltage source converter circuit model connected to an LC filter is essential because it lowers the harmonic distortions and enhances the overall power quality of the micro-grid. This guarantees a clean and steady power supply, which is necessary for the integration of multiple renewable energy sources and sensitive loads. A comprehensive methodology for developing a basic circuit model of VSCs, focusing on the key components and principals involved, is presented in this paper. The methodology includes the modeling of space vector pulse-width modulation (SVPWM) as well as the direct quadrature zero synchronous reference frame. Different design controls, including the design of current control loop in the S-domain, the design of the direct current (DC) bus voltage control loop in the S-domain, and the design of the alternating current (AC) voltage control loop in the S-domain, are explored to capture the dynamic behavior and control strategies of VSCs accurately. The proposed methodology provides a systematic framework for modeling VSCs, enabling engineers and researchers to analyze their performance and assess their impact on power system stability and operation. Future studies can be conducted by using case studies and simulation scenarios to show the efficiency and applicability of the developed models in analyzing VSC-based power electronics applications, including high-voltage direct current (HVDC) transmission systems and flexible alternating current transmission systems (FACTS). The significance of this work lies in its potential to advance the understanding and application of VSCs, contributing to more resilient and efficient power systems. By providing a solid foundation for future research and development, this study supports the ongoing integration of renewable energy sources and the advancement of modern electrical infrastructure.


Introduction
Voltage source converters (VSCs) have become integral components in modern power systems, playing a crucial role in facilitating efficient energy conversion and enabling flexible power flow control [1].As the demands for renewable energy integration, grid stabilization, and improved grid reliability continue to grow, the accurate modeling and analysis of VSCs have become paramount [2,3].The primary power interface connecting distributed generations (DGs) to micro-grids is the AC-DC converter.The voltage source converter functions in two distinct modes, operating as an active rectifier for direct current (DC) bus control and, as depicted in Figure 1, acting as an inverter during grid-feeding and grid-forming operations using distinct control loops [4].Understanding the basic circuit model of VSCs, along with methodologies for their control and modeling, is essential for engineers and researchers to effectively design, analyze, and optimize VSC-based power electronics applications [5].The aim of this paper is to present a comprehensive methodology overview, control strategies, and modeling techniques associated with the basic circuit model of VSCs.This paper delves into the fundamental principles underlying the operation of VSCs, focusing on the key components and their interactions within the circuit.An emphasis is placed on elucidating different methodologies, such as space vector pulse-width modulation (SVPWM), the direct quadrature zero synchronous reference frame, and their integration into VSC circuits.
AppliedMath 2024, 4, FOR PEER REVIEW 2 essential for engineers and researchers to effectively design, analyze, and optimize VSCbased power electronics applications [5].The aim of this paper is to present a comprehensive methodology overview, control strategies, and modeling techniques associated with the basic circuit model of VSCs.This paper delves into the fundamental principles underlying the operation of VSCs, focusing on the key components and their interactions within the circuit.An emphasis is placed on elucidating different methodologies, such as space vector pulse-width modulation (SVPWM), the direct quadrature zero synchronous reference frame, and their integration into VSC circuits.
Figure 1.Solid-state power converter groups based on their operating transformation [6].
A fundamental voltage source converter circuit model connected to the LC filter is crucial because it helps in reducing harmonic distortions and improving the overall power quality in the micro-grid.This ensures a stable and clean power supply, which is essential for sensitive loads and the integration of various renewable energy sources.It also plays a key role in converting DC power from renewable sources like solar panels or batteries to AC power, which is required for most loads and for synchronization with the main grid.The LC filter aids in smoothing out the output, making the conversion process more efficient.Understanding the VSC circuit model and its interaction with the LC filter is essential for designing systems that can seamlessly integrate with the main grid or operate in island mode.This ensures that the micro-grid can handle fluctuations in supply and demand without compromising stability.In essence, the significance of introducing the fundamental VSC circuit model connected to the LC filter lies in its ability to address key challenges in energy conversion, stability, integration, and the management of hybrid renewable micro-grid systems.
Furthermore, this paper explores various control strategies employed in VSCs to regulate the voltage, current, and power flow in both grid-connected and standalone applications.Various control techniques using pulse width modulation (PWM) and proportional integral (PI) control are discussed.Moreover, the modeling aspects of the design and control of VSCs are also introduced to develop accurate and dynamic models that capture the transient and steady-state behavior of these devices.To ensure the relevance and applicability of the presented models in real-world scenarios, practical considerations, such as parameter estimation, validation, and implementation challenges, need to be addressed.Case studies and simulations are recommended to be conducted to shown the efficiency and accuracy of the presented methodologies and control strategies in analyzing VSC-based power electronics applications, such as flexible alternating current transmission systems (FACTS), grid-connected renewable energy systems, and high-voltage direct current (HVDC) transmission systems.
The following sections describe the remaining paper parts: In Section 2, two-level grid-connected VSC modeling with an LC filter is presented.The design of the current control loop in the S-domain is introduced in Section 3. Section 4 presents the design of a DC bus voltage control loop in the S-domain.In Section 5, the design of an AC voltage A fundamental voltage source converter circuit model connected to the LC filter is crucial because it helps in reducing harmonic distortions and improving the overall power quality in the micro-grid.This ensures a stable and clean power supply, which is essential for sensitive loads and the integration of various renewable energy sources.It also plays a key role in converting DC power from renewable sources like solar panels or batteries to AC power, which is required for most loads and for synchronization with the main grid.The LC filter aids in smoothing out the output, making the conversion process more efficient.Understanding the VSC circuit model and its interaction with the LC filter is essential for designing systems that can seamlessly integrate with the main grid or operate in island mode.This ensures that the micro-grid can handle fluctuations in supply and demand without compromising stability.In essence, the significance of introducing the fundamental VSC circuit model connected to the LC filter lies in its ability to address key challenges in energy conversion, stability, integration, and the management of hybrid renewable micro-grid systems.
Furthermore, this paper explores various control strategies employed in VSCs to regulate the voltage, current, and power flow in both grid-connected and standalone applications.Various control techniques using pulse width modulation (PWM) and proportional integral (PI) control are discussed.Moreover, the modeling aspects of the design and control of VSCs are also introduced to develop accurate and dynamic models that capture the transient and steady-state behavior of these devices.To ensure the relevance and applicability of the presented models in real-world scenarios, practical considerations, such as parameter estimation, validation, and implementation challenges, need to be addressed.Case studies and simulations are recommended to be conducted to shown the efficiency and accuracy of the presented methodologies and control strategies in analyzing VSC-based power electronics applications, such as flexible alternating current transmission systems (FACTS), grid-connected renewable energy systems, and high-voltage direct current (HVDC) transmission systems.
The following sections describe the remaining paper parts: In Section 2, two-level grid-connected VSC modeling with an LC filter is presented.The design of the current control loop in the S-domain is introduced in Section 3. Section 4 presents the design of a DC bus voltage control loop in the S-domain.In Section 5, the design of an AC voltage control loop in the S-domain is provided.Section 6 gives a brief discussion, and Section 7 concludes the paper.

Two-Level Grid-Connected VSC Modeling with LC Filter
A typical circuit model of a two-level inverter with an LC filter connected to a threephase load is presented in Figure 2. The signal applied to terminals a, à, b, b, c, and c regulates the power of the six switches that form the output, denoted as S1 to S6.It is assumed that switches S1 through S6 are complementary [7].Typically, a voltage source converter with an LCL filter is regulated by a conventional linear controller augmented by a damping loop to ensure the stability of the system [8].Furthermore, both the threephase AC system and the DC-side voltage source can directly receive power from the VSC.Consequently, there are two different modes of operation for the VSC, either the inverter (DC/AC) or rectifier (AC/DC) modes.
AppliedMath 2024, 4, FOR PEER REVIEW 3 control loop in the S-domain is provided.Section 6 gives a brief discussion, and Section 7 concludes the paper.

Two-Level Grid-Connected VSC Modeling with LC Filter
A typical circuit model of a two-level inverter with an LC filter connected to a threephase load is presented in Figure 2. The signal applied to terminals , , ,  , , and ̀ regulates the power of the six switches that form the output, denoted as S1 to S6.It is assumed that switches S1 through S6 are complementary [7].Typically, a voltage source converter with an LCL filter is regulated by a conventional linear controller augmented by a damping loop to ensure the stability of the system [8].Furthermore, both the threephase AC system and the DC-side voltage source can directly receive power from the VSC.Consequently, there are two different modes of operation for the VSC, either the inverter (DC/AC) or rectifier (AC/DC) modes.To connect the distributed generation systems to the grid, three-phase pulse-width modulation voltage source converters (PWM-VSCs) are commonly employed because of their superior controllability and higher efficiency compared to the other converters [9].To enable DC-side voltage control and power factor at the point of common coupling (PCC), a two-level PWM-VSC topology is used.However, the implementation of the PWM results in baseband and sideband harmonics appearing in the AC voltage harmonic spectrum, necessitating the use of filters to reduce the harmonics of the grid current [10].

Space Vector Pulse-Width Modulation (SVPWM) Methodology
Using the triangle comparison strategy simplifies the execution of this procedure.Compared to triangle comparison PWM, it achieves a 15% increase in AC voltage and reduces voltage and current total harmonic distortion (THD).A standard space vector diagram of a two-level voltage source inverter (VSI) with switching states in the six sectors is presented in Figure 3 [11].Table 1 illustrates that a typical three-phase, two-level voltage source inverter has eight switching states, with six active states producing voltage vectors of either + or − , and two null states generating voltage vectors with zero amplitude.In Figure 3, the switch states 000 and 111 represent the null states, while the space vector plane is divided into six equal sectors by the active states.This methodology employs a revolving reference vector, as depicted in Figure 3, sampled once during each sub-cycle,  [12].The main objective is to estimate the vector of the reference voltage  utilizing eight switching models.To connect the distributed generation systems to the grid, three-phase pulse-width modulation voltage source converters (PWM-VSCs) are commonly employed because of their superior controllability and higher efficiency compared to the other converters [9].To enable DC-side voltage control and power factor at the point of common coupling (PCC), a two-level PWM-VSC topology is used.However, the implementation of the PWM results in baseband and sideband harmonics appearing in the AC voltage harmonic spectrum, necessitating the use of filters to reduce the harmonics of the grid current [10].

Space Vector Pulse-Width Modulation (SVPWM) Methodology
Using the triangle comparison strategy simplifies the execution of this procedure.Compared to triangle comparison PWM, it achieves a 15% increase in AC voltage and reduces voltage and current total harmonic distortion (THD).A standard space vector diagram of a two-level voltage source inverter (VSI) with switching states in the six sectors is presented in Figure 3 [11].Table 1 illustrates that a typical three-phase, two-level voltage source inverter has eight switching states, with six active states producing voltage vectors of either +V dc or −V dc , and two null states generating voltage vectors with zero amplitude.In Figure 3, the switch states 000 and 111 represent the null states, while the space vector plane is divided into six equal sectors by the active states.This methodology employs a revolving reference vector, as depicted in Figure 3, sampled once during each sub-cycle, T s [12].The main objective is to estimate the vector of the reference voltage V re f utilizing eight switching models.The null voltage vector time was arbitrary assumed to be divided equally between t 0 and t 7 for the SVPWM approach, meaning that T 0 = T 7 .The null voltage vector time was arbitrary assumed to be divided equally between  and  for the SVPWM approach, meaning that  =  .
The following is used to calculate the sampling interval: or with Table 1.Phase voltages, output line-to-line voltages, and switching vectors.

Voltage Vectors Switching Vectors Line-to-Neutral Voltage Line-to-Line Voltage
The following is used to calculate the sampling interval: or with where T mod is the modulation time; T 0 , T 1, and T 2 are the time intervals; and T s is the sampling interval.When examining the first sector, the reference voltage vector → V re f may be presented as function vectors: Equation ( 5) can be divided into two parts and expressed as follows: The sample interval equations are obtained by solving for T 2 using Equation ( 7), and then substituting the results in Equation ( 6).
The modulation index, m = , is represented as 0 ≤ α ≤ 60 • , and T S is the halfperiod for switching carriers.The following formulas represent the dwell periods for each sector: Figure 4 shows the SVPWM output switching sequence in the first sector.
Equation ( 5) can be divided into two parts and expressed as follows: ⃗  =   ⃗ sin(0) +   ⃗ sin(/3) The sample interval equations are obtained by solving for  using Equation ( 7), and then substituting the results in Equation (6).
The modulation index,  = , is represented as 0 ≤  ≤ 60°, and  is the halfperiod for switching carriers.The following formulas represent the dwell periods for each sector: Figure 4 shows the SVPWM output switching sequence in the first sector.The switching periods for the upper and lower switches for each sector are summarized in Table 2 [13].The switching periods for the upper and lower switches for each sector are summarized in Table 2 [13].

Direct Quadrature Zero Synchronous Reference Frame Methodology
The Direct Quadrature Zero (DQZ) synchronous reference frame methodology is a control technique widely used in power electronics, particularly in VSIs, to achieve the precise and efficient control of three-phase AC systems [14].This methodology is widely applied in grid-connected renewable energy systems (such as wind and solar inverters), adjustable speed drives for motors, active power filters for harmonic mitigation, and other applications requiring the precise control of the AC voltage and the current waveform [15].The DQZ synchronous reference frame methodology involves transforming the three-phase AC signals (typically voltages or currents) into a rotating reference frame aligned with the AC frequency of the system.This transformation simplifies the control of the VSIs by decoupling the components of interest (such as active power, reactive power, and harmonic components) from each other.
The three-phase AC signals are transformed from the time domain (a, b, c reference frame) to the rotating DQZ reference frame using Clarke and Park transformations [16].Park transformation rotates the αβ components to a stationary DQZ reference frame (d, q, 0), where d and q components represent the direct and quadrature components of the signals, respectively, and 0 represents the zero sequence component [17].Clarke transformation converts three-phase quantities (a, b, c) into two-phase quantities (α, β), representing the symmetrical components of the AC signals.In the DQZ reference frame, control strategies such as proportional integral (PI) controllers or more advanced algorithms are applied to regulate the d and q components of the reference signals.These controllers adjust the switching patterns of the VSI's semiconductor devices typically insulated gate bipolar transistors (IGBTs) to generate the desired AC output voltage waveform, ensuring the precise control of the voltage magnitude, frequency, and waveform quality [18].Figure 5 shows a space phasor with the αβ0 reference frame.
The revised three-phase current values (i a , i b , i c ) are shown in Figure 5 as projections onto the new reference axis (i α , i β ).When a three-phase, three-wire system is balanced and the zero axis represents the common mode component, the total phase current is nullified.Thus, the variables α and β can fully characterize a system defined in the ABC reference frame.
The output variables ABC are described in Equation ( 13) below: where t is the amount of time needed to reach steady state and ω is the constant synchronous frequency.Equation ( 14) expresses the αβ0 transformation in complex form, while Equation (15) expresses it in matrix form.
The reference axis currents are i α , i β , and i 0 , while the three-phase currents are i α , i b , and i c .The revised three-phase current values ( ,  ,  ) are shown in Figure 5 as projections onto the new reference axis ( ,  ).When a three-phase, three-wire system is balanced and the zero axis represents the common mode component, the total phase current is nullified.Thus, the variables α and β can fully characterize a system defined in the ABC reference frame.
The output variables ABC are described in Equation ( 13) below: where  is the amount of time needed to reach steady state and ω is the constant synchronous frequency.Equation ( 14) expresses the αβ0 transformation in complex form, while Equation ( 15) expresses it in matrix form.
The reference axis currents are  ,  , and  , while the three-phase currents are  ,  , and  .
Using Park transformation with a −90° shift, the frame rotates around the 0 axis at the same frequency as the sinusoids defining the phasors, while the system is in the αβ0 frame.As it can be seen in Figure 6, the component is transformed to Q axis, which is positioned 90° at a quadrature angle to the direct component, and the −β component is transformed to the d-axis, which is in line with the rotating vector.
Equations ( 16) and ( 17) express the DQ0 transformation in complex and matrix representations, respectively.Using Park transformation with a −90 • shift, the frame rotates around the 0 axis at the same frequency as the sinusoids defining the phasors, while the system is in the αβ0 frame.As it can be seen in Figure 6, the component is transformed to Q axis, which is positioned 90 • at a quadrature angle to the direct component, and the −β component is transformed to the d-axis, which is in line with the rotating vector.Consequently, the rotation generates DC values from the periodic signals.Since the spinning frame trails the a-axis by 90 degrees, at t = 0, the Q-and A-axes coincide.When  is precisely aligned with the reference angle ,  = 1,  = 0, and  = 0 are the DQ0 components.The full transformations from DQ0 to ABC and their corresponding inverses are presented as follow: Equations ( 16) and ( 17) express the DQ0 transformation in complex and matrix representations, respectively.
Consequently, the rotation generates DC values from the periodic signals.Since the spinning frame trails the a-axis by 90 degrees, at t = 0, the Q-and A-axes coincide.When I s is precisely aligned with the reference angle ωt, i d = 1, i q = 0, and i 0 = 0 are the DQ0 components.The full transformations from DQ0 to ABC and their corresponding inverses are presented as follow:

Design of the Control Loop for the Current in the S-Domain
The current control loop design in the S-domain for a three-phase two-level VSI is a crucial aspect of ensuring the precise and stable operation of the inverter.This design methodology leverages the classical control theory in the S-domain to achieve the effective regulation of the output currents of the inverter.According to Wencong et al., this control loop modifies the output voltage of the inverter to allow the injection of the necessary current in the utility grid [19].The three-phase VSI is typically modeled using a set of differential equations that describe the relationship between the input DC voltage, the switching states of the inverter, and the output AC currents.These equations are transformed into the synchronous reference frame (dq-frame) to decouple the three-phase AC currents into two orthogonal components (d-axis and q-axis), simplifying the control design.The system dynamics are represented by transfer functions in the S-domain, which relate the control inputs (reference voltages) to the outputs (actual currents).For a VSI, the transfer function typically includes the LC filter dynamics of the inverter and the influence of the load impedance.Figure 7 illustrates the schematic representation of a three-phase, two-level VSC with an L filter.R f and L f represent the resistance and the inductance, respectively, between the converter switches and the PCC.A reduced equivalent per-phase circuit can be produced by applying the voltage law of Kirchhoff to the circuit shown above, as illustrated in Figure 8.A reduced equivalent per-phase circuit can be produced by applying the voltage law of Kirchhoff to the circuit shown above, as illustrated in Figure 8.A reduced equivalent per-phase circuit can be produced by applying the voltage law of Kirchhoff to the circuit shown above, as illustrated in Figure 8.The grid voltage,  , is shown in Figure 8 as a relatively fixed component that may be considered disruptive.As a result, the current,  , can be regulated by altering the output voltage of the inverter  .Consequently, the VSC functions as an energy source that feeds electricity into the grid.The voltage law of Kirchhoff, when applied to the three circuits per phase, yields the following: The variables  ,  , and  represent the three per-phase inverter output voltages;  and  denote the inductance and resistance between the converter switches and the point of common coupling (PCC);  ,  , and  stand for the three per-phase grid voltages; and  ,  , and  represent the three per-phase inverter currents.By consolidating all three equations from (20) into a single equation, we obtain the following: The grid voltage, v gn , is shown in Figure 8 as a relatively fixed component that may be considered disruptive.As a result, the current, i tn , can be regulated by altering the output voltage of the inverter v tn .Consequently, the VSC functions as an energy source that feeds electricity into the grid.The voltage law of Kirchhoff, when applied to the three circuits per phase, yields the following: The variables v tan , v tbn , and v tcn represent the three per-phase inverter output voltages; L f and R f denote the inductance and resistance between the converter switches and the point of common coupling (PCC); v gan , v gbn , and v gcn stand for the three per-phase grid voltages; and i a , i b , and i c represent the three per-phase inverter currents.By consolidating all three equations from (20) into a single equation, we obtain the following: Equation ( 15) is used to translate Equation ( 21) into the reference frame αβ0, which results in Using the reference frame dq0 in ( 16) and repeating the process for Equation ( 22), the result is The a, b, c frame can be split into the two components, d and q, as was indicated in Section 2.1.
m q , where m dq is the index of modulation, and is the SVPWM gain converter.
The i d and i q dynamics are related because of the L f ω term found in Equations ( 24) and (25).To decouple the d and q subsystems and account for the grid disruption inputs v gd and v gq , the index of modulation for each must be stated as follows: For the d subsystem, the anticipatory term is −L f ωi q + v gd , while for the q subsystem, it is −L f ωi d + v gq .Equation (26) can be substituted into (24), yielding Equation ( 27) can be substituted into (25) in the same way to obtain with u q as the output of PI compensator.
The control systems of the current control loops are the same in the d and q axes, as seen in ( 28) and (29).Therefore, the linked compensators can be the same.As a result, only the current control compensator gains in the d-axis will be determined.When Equation ( 29) is transformed using the Laplace method, the following results are obtained: The control plant can therefore be expressed as follows: The following Equation (32) indicates that the compensator is a PI controller: By replacing the compensator and control plant Equations by their terms, Equation (33), will be: Once the terms are equalized by applying the pole cancelation approach, the open-loop gain Equation ( 34) is reduced from the second to the first order transfer function as follows: Equation ( 36) represents the current control gain in the closed loop in the d-axis: Equation ( 35) can be substituted into (36) to obtain the following expression for the closed-look gain: , the closed-look gain will become The resultant closed-loop control constant time is written as τ i .Therefore, the following formula provides the first-order settling time in the closed-loop system:

Design of the Control Loop for the DC Bus Voltage in the S-Domain
For maintaining balanced power flow, the DC bus voltage control technique is essential.Implementing this control is imperative as it enables the voltage source converter to function as a rectifier, converting AC power to DC power and facilitating control of the DC link capacitor voltage to supply an output load.Moreover, for intermittent DC power sources such as PV systems, this control technique assists in adjusting the current control loop reference to regulate the input of DC power effectively [20].The circuit from Figure 7   The resistance and inductance between the PCC and the inverter output are  and  .The fact that the active power transfer enables to charge and discharge the DC link capacitor, the circuit shown in the DQ synchronous reference frame configuration can only be modeled for the d-axis component.As a result, an instantaneous reactive current is not needed, neither the q-axis component for this procedure, as Figure 11 shows.The resistance and inductance between the PCC and the inverter output are R f and L f .The fact that the active power transfer enables to charge and discharge the DC link capacitor, the circuit shown in the DQ synchronous reference frame configuration can only be modeled for the d-axis component.As a result, an instantaneous reactive current is not needed, neither the q-axis component for this procedure, as Figure 11 shows.
The following equations illustrate the voltage dynamic equation of the DC link capacitor: The resistance and inductance between the PCC and the inverter output are  and  .The fact that the active power transfer enables to charge and discharge the DC link capacitor, the circuit shown in the DQ synchronous reference frame configuration can only be modeled for the d-axis component.As a result, an instantaneous reactive current is not needed, neither the q-axis component for this procedure, as Figure 11 shows.Equation ( 40) can be transformed using the Laplace transform to obtain Equation ( 40) can be transformed using the Laplace transform to obtain The formula for calculating the PI compensator output, u d (s), is u d (s) = I DC (s) − I L (s), where I L (s) is the feedback term.This allows for the controller to avoid making up a measured value.Considering this, the control system is written as follows: The relationship between these currents is represented as follows, assuming a converter without losses and the fact that the i DC can only be directly controlled by the current pulled from the grid: The active power is given as The DC bus power is obtained by replacing Equation ( 44) with (43), which yields the following: The following Equation describes the relationship between the time constant τ DC of the control loop for the DC bus voltage and the time constant τ i of the current control loop: The relationship between these two control loops may be expressed by the following Equation (47) if the condition in Equation ( 46) is satisfied, i d = I dre f , and the two control loops are decoupled.
The inner gain coefficient is obtained from the relationship between I dre f and I DC and is stated as follows: Based on the following, it is presumed that the compensator is a PI controller expressed as The selected method for DC voltage control adopts a cascade approach, including an outer loop for the voltage control of the DC bus and an inner loop for the current control.This tactic guarantees that the time reaction of current controller is faster than that for the controller of the DC voltage in accordance with Equation (46).The DC voltage loop considers the current loop as a constant gain, which permits a gradual shift in the current reference, and hence an error-free response from the current controller.Consequently, the dynamics of the two circuits depicted in Figure 11 are effectively disconnected.Figure 12 shows a DC link voltage loop block diagram of a VSC system in a simplified form.With respect to the current control in d-axis, the closed loop gain is expressed in Equation (52): Equation (51) substituted into (52) will result in Seeing that the Equation ( 53) has a first-order numerator, a pre-filter will be established to eliminate this term, enabling the alignment of (53) with the standard secondorder transfer function, which is: The gain in closed loop of the current control in d-axis can be obtained by multiplying Equations ( 53) and (54).The result is as follows: The gain in closed loop of the current control in d-axis can be obtained by multiplying Equations ( 53) and (54).The result is as follows: Thus, the following is the second closed-loop system settling time:

Design of the Control Loop for the AC Voltage in the S-Domain
When a fault or power outage prevents the main grid from supplying power, a VSC system in grid-forming mode creates a grid reference and makes it easier to transfer active Equations ( 42) and ( 49) can be substituted into (50) to obtain the following: With respect to the current control in d-axis, the closed loop gain is expressed in Equation (52): Equation (51) substituted into (52) will result in Seeing that the Equation (53) has a first-order numerator, a pre-filter will be established to eliminate this term, enabling the alignment of (53) with the standard second-order transfer function, which is: The gain in closed loop of the current control in d-axis can be obtained by multiplying Equations ( 53) and (54).The result is as follows: The gain in closed loop of the current control in d-axis can be obtained by multiplying Equations ( 53) and (54).The result is as follows: Thus, the following is the second closed-loop system settling time: When a fault or power outage prevents the main grid from supplying power, a VSC system in grid-forming mode creates a grid reference and makes it easier to transfer active or reactive powers during micro-grid operation in isolated mode.This enables the microgrid to continue operating [21].The three-phase VSI is modeled using differential equations that describe the relationship between the input DC voltage, the switching states of the inverter, and the output AC voltages.The dynamics of the VSI system, including the LC filter (which is typically used to smooth the inverter output), as presented in Figure 13, are represented in the S-domain by transfer functions [22].
AppliedMath 2024, 4, FOR PEER REVIEW 15 or reactive powers during micro-grid operation in isolated mode.This enables the microgrid to continue operating [21].The three-phase VSI is modeled using differential equations that describe the relationship between the input DC voltage, the switching states of the inverter, and the output AC voltages.The dynamics of the VSI system, including the LC filter (which is typically used to smooth the inverter output), as presented in Figure 13, are represented in the S-domain by transfer functions [22].The resistances between the converter and the filter capacitor are presented as  and  .A condensed per-phase equivalent circuit produced by using the voltage law of Kirchhoff is shown in Figure 14.The phase currents for each of the three per-phase circuits can be obtained by using the current law of Kirchhoff as follows: Combining the three equations from (59) results in the following: Using the ABC-αβ0 transform on Equation (60), the following result is obtained: Using Equation ( 16), the αβ0-dq0 transform can be converted to The resistances between the converter and the filter capacitor are presented as R L1 and L 1 .A condensed per-phase equivalent circuit produced by using the voltage law of Kirchhoff is shown in Figure 14.
AppliedMath 2024, 4, FOR PEER REVIEW 15 or reactive powers during micro-grid operation in isolated mode.This enables the microgrid to continue operating [21].The three-phase VSI is modeled using differential equations that describe the relationship between the input DC voltage, the switching states of the inverter, and the output AC voltages.The dynamics of the VSI system, including the LC filter (which is typically used to smooth the inverter output), as presented in Figure 13, are represented in the S-domain by transfer functions [22].The resistances between the converter and the filter capacitor are presented as  and  .A condensed per-phase equivalent circuit produced by using the voltage law of Kirchhoff is shown in Figure 14.The phase currents for each of the three per-phase circuits can be obtained by using the current law of Kirchhoff as follows: Combining the three equations from (59) results in the following: Using the ABC-αβ0 transform on Equation (60), the following result is obtained: Using Equation ( 16), the αβ0-dq0 transform can be converted to The phase currents for each of the three per-phase circuits can be obtained by using the current law of Kirchhoff as follows: Combining the three equations from (59) results in the following: Using the ABC-αβ0 transform on Equation (60), the following result is obtained: Using Equation ( 16), the αβ0-dq0 transform can be converted to Consequently, as described in Section 2.1, the a, b, c frame reference may be divided into d and q components and cascaded via the current control loops in d and q axes, resulting in The existence of the C f ω terms in Equations ( 64) and (65) causes the v sd and v sq dynamics to be coupled.The feedforward terms −C f ωv sq + i Ld for the d-axis component and C f ωv sd + i Lq for the q-axis component are introduced in order to decouple them and account for the load disturbance inputs i Ld and i Lq .Furthermore, the control units of the d-axis and q-axis components are the same, as shown in Equations ( 64) and (65); thus, u d is the PI compensator output.Equation ( 66) is solved by applying the Laplace transform, which yields the following: As a result, the following is the control plant: Furthermore, it is presumed that the control loop time constant of the AC voltage, τ v , will be five times greater than that of the current control loop, τ i .If this assumption is met, the two control loops will be decoupled.The circumstance is as follows: Therefore, the inputs of the current control loops are presented in Equations ( 70) and (71), and I dq (s) = I dqre f (s) for the control loop of AC voltage.
Equation (72) gives the PI controller gain.
Since the control plants of Equation (68) for the d and q components are the same, the corresponding compensators may also be the same.With reference to Figure 15, the only information that needs to be collected next is the gains of the voltage control compensators in d-axis.The following is the open loop gain: () = The VSC system AC voltage loop block diagram in a simplified form is shown in Figure 15.Given that the first-order numerator of Equation ( 76) must be cancelled, a pre-filter needs to be developed in order to allow for Equation (76) to correspond to the conventional transfer function of the second order.As stated below, a pre-filter is required.
The following is the result of multiplying Equations ( 76) and (77): By resolving the results of the denominator coefficients of Equation ( 78), the gains of the proportional and integral controllers are solved for As a result, the control loop time constant of the AC voltage is provided as To decouple the two control loops, the system settling time for this second order in the closed loop is considered to be five times longer than the existing control loop settling time.In other words,

Discussion
This Discussion section explores the key aspects of the basic circuit model of VSCs.The different methodologies and control strategies employed in VSCs, including the G C (s) and G P (s) can be substituted with their corresponding values to obtain the following result: The gain of the current control in d-axis in closed loop can be represented as follows: When Equation ( 74) is substituted into (75), this results in The VSC system AC voltage loop block diagram in a simplified form is shown in Figure 15.
Given that the first-order numerator of Equation (76) must be cancelled, a pre-filter needs to be developed in order to allow for Equation (76) to correspond to the conventional transfer function of the second order.As stated below, a pre-filter is required.
The following is the result of multiplying Equations ( 76) and (77): By resolving the results of the denominator coefficients of Equation ( 78), the gains of the proportional and integral controllers are solved for As a result, the control loop time constant of the AC voltage is provided as To decouple the two control loops, the system settling time for this second order in the closed loop is considered to be five times longer than the existing control loop settling time.In other words, t v,settling = 4.6 ξω n = 4.6 × 5 × τ i = 5 × t i,settling (82)

Discussion
This Discussion section explores the key aspects of the basic circuit model of VSCs.The different methodologies and control strategies employed in VSCs, including the SVPWM methodology, the DQZ synchronous reference frame methodology, the design of the current, the DC bus voltage, and the AC voltage control loops in the S-domain, are presented in Table 3.

SVPWM methodology
SVPWM is a widely used technique for controlling VSCs because it can produce excellent output waveforms with less harmonic distortion.By effectively synthesizing the desired output voltage vector, SVPWM enables the precise control of the VSC output.However, challenges, such as computational complexity and switching frequency constraints, need to be carefully addressed to ensure an optimal performance.

DQZ synchronous reference frame methodology
The DQ0 synchronous reference frame methodology provides a powerful tool for analyzing and controlling VSCs, particularly in grid-connected applications.By transforming the three-phase system into a two-dimensional space with direct (d) and quadrature (q) axes, this methodology simplifies the control and modeling processes.It allows for the accurate representation of the system dynamics and facilitates the design of control algorithms, enhancing the overall performance and stability of VSC-based systems.
Design of the control loop for the current in the S-domain Effective current control is crucial for ensuring accurate and dynamic response in VSCs, especially in applications requiring the precise regulation of current flow.By designing current control loops in the S-domain, engineers can leverage advanced control techniques to achieve desired performance objectives, such as fast response, low overshoot, and robust stability.Implementing sophisticated control algorithms, such as proportional integral controllers or model predictive control (MPC), can further improve the current control loops efficiency in VSCs.

Design of the control loop for the DC Bus voltage in the S-domain
The control loop for DC bus voltage plays a critical role in maintaining stable operation and ensuring reliable performance of VSCs.By regulating the DC bus voltage, this control loop enables efficient energy conversion and smooth power transfer between the VSC and the grid or load.Designing the DC bus voltage control loop in the S-domain allows for the precise tuning of controller parameters and dynamic response characteristics, ensuring optimal performance under varying operating conditions and load profiles.

Design of the control loop for the AC voltage in the S-domain
In grid-connected VSC applications, the control loop for the AC voltage is essential for regulating the output voltage to meet grid requirements, such as voltage magnitude and frequency.By designing the control loop for the AC voltage in the S-domain, engineers can develop robust control strategies to maintain grid stability, mitigate voltage harmonics, and ensure the seamless integration of renewable energy sources.Advanced control techniques, such as predictive control and adaptive control, can be employed to enhance the AC voltage control loop efficiency and flexibility in VSCs.

Conclusions
The basic VSC circuit model with an output LC filter has been presented in this paper.The main power interface between distributed generators and the micro-grid is the AC-DC converter.Two forms of operation for a voltage source converter have been observed.It acts as an active rectifier when utilized as a DC bus control.It uses a variety of control loops to operate as an inverter when in the grid-feeding and grid-forming modes.A thorough manual that covers a variety of techniques has also been introduced, including the SVPWM, the DQZ synchronous frame, and the phase lock loop.In addition, this paper serves as a comprehensive guide to understanding the basic circuit model of VSCs, methodologies for their control, and techniques for their accurate modeling.By providing insights into the fundamental principles and practical considerations associated with VSCs, this paper aims to contribute to the advancement of VSC-based power electronics applications and their integration into modern power systems for enhanced efficiency,

Figure 1 .
Figure 1.Solid-state power converter groups based on their operating transformation [6].

Figure 3
Figure 3 illustrates that two of the potential output voltage vectors (

Figure 3
Figure 3 illustrates that two of the potential output voltage vectors ( ⃗ and  ⃗ ) are null or zero vectors, represented by equal values in all three phases (000 or 111).The remaining six vectors ( ⃗ , … , ⃗ ) are non-zero and are all spatially separated by 60°.

Figure 3 .
Figure 3.A typical SVPWM diagram for a voltage source inverter with two levels.

Figure 3 .
Figure 3.A typical SVPWM diagram for a voltage source inverter with two levels.

Figure 4 .
Figure 4. Output switching sequence at the first sector.

Figure 4 .
Figure 4. Output switching sequence at the first sector.

AppliedMath 2024, 4 ,
FOR PEER REVIEW phase, two-level VSC with an L filter. and  represent the resistance and the induct ance, respectively, between the converter switches and the PCC.

Figure 7 .
Figure 7.A two-level VSC circuit diagram with an L filter included.

Figure 7 .
Figure 7.A two-level VSC circuit diagram with an L filter included.

Figure 7 .
Figure 7.A two-level VSC circuit diagram with an L filter included.

Figure 8 .
Figure 8.An L filter in a simplified VSC per-phase circuit.

Figure 8 .
Figure 8.An L filter in a simplified VSC per-phase circuit.

32 )Figure 9 11 𝐺Figure 9
Figure 9 illustrates the transfer function of the closed loop in the d-axis:

Figure 9 .
Figure 9. Current-controlled VSC system block diagram in simplified form.Equation (33) gives the following open loop gain: is shown in Figure 10, with a bleeding resistor R B and extra feedback signals (i DC and i L ) added to simplify DC control modeling.functionas a rectifier, converting AC power to DC power and facilitating control of the DC link capacitor voltage to supply an output load.Moreover, for intermittent DC power sources such as PV systems, this control technique assists in adjusting the current control loop reference to regulate the input of DC power effectively[20].The circuit from Figure7is shown in Figure10, with a bleeding resistor  and extra feedback signals ( and  ) added to simplify DC control modeling.

Figure 10 .
Figure 10.Two-level VSC with an L filter and a DC link circuit bleed resistor.

Figure 10 .
Figure 10.Two-level VSC with an L filter and a DC link circuit bleed resistor.

Figure 11 .
Figure 11.VSC d-axis component configuration with a bleed resistor and a L filter.The following equations illustrate the voltage dynamic equation of the DC link capacitor:  =  +  +   =  −  −     =  −   −

Figure 11 .
Figure 11.VSC d-axis component configuration with a bleed resistor and a L filter.

Figure 12 .
Figure 12.Simplified DC link voltage loop model of the VSC system.

Figure 12 .
Figure 12.Simplified DC link voltage loop model of the VSC system.Equation (50) provides the gain in the open loop based on Figure 12.

5 .
Design of the Control Loop for the AC Voltage in the S-Domain

Figure 13 .
Figure 13.Two level VSC with an LC filter.

Figure 14 .
Figure 14.A VSC with an LC filter per-phase circuit in a simplified.

Figure 13 .
Figure 13.Two level VSC with an LC filter.

Figure 13 .
Figure 13.Two level VSC with an LC filter.

Figure 14 .
Figure 14.A VSC with an LC filter per-phase circuit in a simplified.

Figure 14 .
Figure 14.A VSC with an LC filter per-phase circuit in a simplified.

Figure 15 .
Figure 15.A block diagram for the VSC system AC voltage loop in a simplified form.

Figure 15 .
Figure 15.A block diagram for the VSC system AC voltage loop in a simplified form.

Table 2 .
Switching time calculation for every sector.

Table 3 .
Summary of the basic circuit model of voltage source converters.