Abstract
Single-phase on-board chargers (OBCs) often regulate the power-factor-correction (PFC) current with a proportional-resonant (PR) controller and full grid-voltage feedforward, which is suspected of degrading stability on weak grids, while fixed-frequency resonant controllers lose harmonic rejection when the grid frequency drifts. This paper evaluates a frequency-adaptive multi-resonant (FA-MR) current controller, tuned online by the frequency estimate of the existing second-order generalized integrator phase-locked loop (SOGI-PLL), combined with full or fundamental-only feedforward. Five configurations are compared in 75 switched-model simulations of a 3.3 kW totem-pole PFC + LLC charger under background voltage distortion, frequency steps and ±2 Hz/s ramps, voltage sags, load steps, short-circuit ratios (SCR) down to 2.5, and non-ideal sensing, delay and inductance. In every feasible steady-state case, FA-MR with full feedforward gives the lowest current total harmonic distortion (THD), 0.42–0.83% against 0.52–1.91% for the original controller; the margin is largest with a filtered feedforward voltage (0.50% against 1.91%). Without frequency adaptation, the THD of a multi-resonant controller rises to 2.06% and 2.84% at the end of +2 and −2 Hz/s ramps, against 1.01% and 1.11% with adaptation. The added cost is about 40 floating-point operations per sample and no sensor, and the response to sags and load steps is unchanged. A loss of synchronism at SCR 2.5 after a frequency step, common to all configurations, was traced to the integral gain of the reference PLL and removed by retuning it. The study is simulation-based, the controller does not raise the power-transfer limit of very weak grids, and experimental validation remains future work.
1. Introduction
AC charging through an on-board charger (OBC) remains the most common way electric vehicles are charged at homes and workplaces [1,2]. The OBC front end is a single-phase power-factor-correction (PFC) stage, increasingly a bridgeless totem-pole PFC built with wide-bandgap devices to reach efficiencies near 99% [2,3]. It is followed by an isolated DC/DC stage, typically an LLC-resonant converter that regulates the battery current [4,5]. The power-quality impact of EV chargers on distribution systems was recognized early [6] and is now measurable in the field. Measurements of individual chargers report current total harmonic distortion (THD) of about 6–7% [7]. A multi-vehicle study found an aggregate worst-case THD of about 25%, with half of the vehicles tested exceeding the applicable limits [8], and the harmonic currents of chargers on the same feeder may add or cancel depending on their operating points [9]. Recent reviews of high-power and megawatt-class charging likewise identify harmonics and stability among the main grid-integration concerns [10]. Two conditions typical of residential feeders make the problem harder: the supply voltage already carries background third, fifth, and seventh harmonics within the EN 50160 levels [11], and the feeder impedance is far from negligible. Measurement campaigns on low-voltage networks also report chronic under-voltage, interruptions, and phase imbalance [12], and current distortion of grid-connected converters that rises sharply at low loading [13]. Finally, the charger is only one element of the vehicle power-conversion chain, whose design increasingly interacts with on-board energy management and hybrid storage [14].
The PFC current loop of an OBC is usually built around a proportional-resonant (PR) controller tuned at the fundamental frequency [15,16], and the published reference design used in this work follows exactly that structure [4]. A PR controller alone cannot reject harmonics of the grid voltage, so designers add a feedforward of the measured grid voltage to the modulator reference. Full grid-voltage feedforward was shown to suppress the current distortion caused by grid-voltage harmonics in grid-connected inverters [17]. For the totem-pole PFC itself, input-voltage feedforward has been used as active damping to suppress input-current harmonics [18], and noise-immune feedforward terms have been proposed to limit current distortion in high-frequency interleaved designs [19]. When the grid has a significant impedance, however, the measured voltage at the point of common coupling (PCC) depends on the converter’s own current, and the feedforward path closes an additional loop through the grid impedance. The interaction between grid impedance and current control has been studied extensively for photovoltaic and wind inverters [20,21,22,23]. A benchmarking study of LCL-filtered inverters showed that grid-voltage feedforward can either damp or destabilize the system, depending on where the filter resonance lies [24], and a recent study showed that conventional grid-voltage feedforward reduces the stability margin of weak-grid inverters, which it restored by reshaping the output admittance with an all-pass filter in the feedforward path [25], and hybrid active damping with capacitor-voltage feedforward, verified on a hardware-in-the-loop (HIL) platform, was recently proposed for LCL-filtered inverters on weak grids [26]. Because N identical converters on a common grid impedance behave like one converter seeing an N-times larger impedance [27], these effects grow as converter penetration rises. The usual design tool is the passivity of the converter’s input admittance [28]. For EV chargers, the input impedance and grid-impedance stability of an integrated OBC, in which the motor windings form an LCL input filter, were analyzed recently [29]. None of the feedforward studies above, however, addresses the dedicated totem-pole PFC stage of an on-board charger, whose rectifier-mode operation and input X-capacitor differ from those of an LCL-filtered inverter.
Recent research on OBC current control has instead focused on improving the controller itself on a stiff grid. Model-predictive control (MPC) has been used to improve the dynamic response of an integrated OBC [30], and a model-predictive current controller with a harmonic reference recently reduced the current THD of a single-phase EV charger to 2.85% [31]. Neither study evaluated grid impedance or a change in grid frequency. Multi-resonant (MR) controllers are a well-established alternative for harmonic rejection, and their stability can be designed with Nyquist and sensitivity-function methods [32]. Discrete realizations with two integrators allow the resonant frequency to be updated online without recomputing coefficients [33], provided that the discretization method is chosen carefully [34]. That makes them compatible with the frequency estimate already produced by the converter’s frequency-locked loop (FLL) or phase-locked loop (PLL) [35,36,37]. A fixed-frequency MR controller, by contrast, loses most of its harmonic gain as soon as the grid frequency deviates, because each resonant peak is very narrow.
Frequency-adaptive resonant control is not new in itself, and it is well established in applications where the fundamental frequency varies widely. In variable-frequency aircraft networks, adaptive selective-harmonic compensation tuned by the estimated frequency was developed for active power filters [38]; in electric-vehicle motor drives, adaptive proportional–integral–resonant controllers suppress current harmonics whose frequencies follow the speed [39]; in doubly fed induction generators, resonant controllers compensate the stator harmonic currents caused by a distorted grid [40]; and frequency-adaptive repetitive control rejects all harmonics at once in grid-tied inverters at the cost of a long delay line [41]. Resonant harmonic-current compensation in networks with high background distortion has also recently been verified on HIL platforms [42]. In these applications the frequency changes by tens of percent, or the harmonic content is the primary control objective, so adaptation is a necessity. Utility grids, by contrast, deviate by only fractions of a hertz, although rates-of-change of frequency (RoCoF) of up to 2 Hz/s over 500 ms are now specified as a withstand requirement for grid-connected equipment in Europe [43]. What has not been established is whether, for an OBC whose existing full feedforward already rejects most background harmonics, adaptive resonant terms still bring a measurable benefit, at what computational cost, and under which grid conditions. This is the knowledge gap addressed in this paper; the individual techniques are borrowed from the cited work, and the contribution lies in their combination and systematic assessment for the OBC PFC stage.
Two practical questions therefore remain open for OBCs. First, should harmonic rejection come from the voltage feedforward, from resonant terms, or from both? Second, does full feedforward actually endanger stability on a weak grid once the charger’s own input filter is included? Accordingly, the objectives of this work are (i) to quantify the benefit that frequency-adaptive resonant terms add to an existing full-feedforward PFC controller under distorted, frequency-varying and weak grids, including realistic rates-of-change of frequency, voltage sags, and load steps; (ii) to weigh that benefit against the added computational cost; and (iii) to identify which of the observed operating limits are caused by the current controller and which are caused by other parts of the charger control. Table 1 positions this work against the literature.
Table 1.
Positioning of this work against related studies.
The contributions of this paper are as follows:
- A frequency-adaptive multi-resonant (FA-MR) current controller is designed for the PFC stage of an OBC. Its resonant frequencies follow the existing second-order generalized integrator (SOGI) PLL estimate, and each harmonic has a delay-compensating phase lead. It replaces the existing PR block without extra sensors. Resonant control, frequency adaptation, and grid-voltage feedforward are each established techniques [17,32,33,34,35]; the contribution lies in their combination for the OBC PFC stage and in the systematic comparison of where the harmonic rejection should come from. The added computational cost is about 40 floating-point operations per sample (Section 5).
- Five combinations of current controller and grid-voltage feedforward are compared in 75 switched-model simulations, covering distorted voltage, ±1 Hz frequency steps, ±2 Hz/s frequency ramps, voltage sags and interruptions, battery-current steps, short-circuit ratios (SCR) of 10, 5, and 2.5 at rated power, a 33 mH grid inductance at rated and reduced power, and robustness tests with a filtered feedforward voltage, extra control delay, a boost-inductance error, and higher background distortion, with the IEC 61000-3-2 Class-A limits [44] as the assessment criterion. Adding FA-MR to full feedforward gives the lowest THD in every feasible steady-state case, its advantage is largest when the fed-forward voltage is filtered, and frequency adaptation is shown to be necessary.
- The weak-grid concern about full feedforward is examined for an OBC with an input X-capacitor. A simple analysis shows that feedforward through the control delay turns the grid inductance into a frequency-dependent negative resistance, while the X-capacitor contributes a positive one. No configuration becomes unstable in the switched model, even with two extra samples of control delay. The averaged model correctly locates a lightly damped mode near 450 Hz but overestimates its loss of damping, and a direct test shows that the loop delay alone does not explain this conservatism. At rated power, the static power-transfer limit of the grid was reached before any control instability was observed. On the weakest grid, a +1 Hz step led to a loss of synchronism with every configuration; this was traced to the integral gain of the reference-design PLL and removed by retuning that gain, which identifies the limit as a synchronization issue rather than a current-control one.
2. System Description and Test Conditions
2.1. Charger Power Stage
The study uses the open AN010 on-board charger model from the imperix knowledge base [4] in MATLAB/Simulink R2024b with Simscape components (Figure 1). The PFC stage is a totem-pole rectifier with a 2.2-mH boost inductor that regulates a 340 V DC bus, and a full-bridge LLC resonant converter charges a 400-V battery at 8 A. The main parameters are listed in Table 2. Because a practical OBC has an electromagnetic-interference (EMI) filter at its input, an X-capacitor branch (Cx = 2 µF in series with a damping resistor Rd = 10 Ω) was added at the PCC for all grid-impedance cases. Without it, a series-grid inductance would carry the converter’s switching-frequency current directly and the sensed PCC voltage would no longer be meaningful. Figure 1a shows the complete power stage: the totem-pole rectifier with a 50-kHz leg (S1, S2) and a line-frequency leg (S3, S4), the DC-link capacitor, the full-bridge LLC converter (Q1–Q4) with its resonant tank and transformer, and the output rectifier that feeds the battery. Figure 1b shows the control structure.
Figure 1.
(a) Circuit-level power stage of the on-board charger with the main component values; (b) PFC control structure. The two selectors define the five configurations A–E: the current controller (original PR or FA-MR) and the voltage feedforward (full measured vg or the fundamental component from the SOGI). Blue lines denote measured signals.
Table 2.
Power-stage and control parameters.
2.2. Baseline Control
The PFC control runs at 50 kHz in single precision, as in the original model. A SOGI-PLL [36] provides the grid angle θ, the frequency estimate and the in-phase fundamental component of the measured PCC voltage. The DC-bus PI controller produces the current amplitude command (output saturated at ±14√2, the model default), and the sinusoidal current reference is . In the original design, a PR controller with a fixed resonant frequency acts on the current error , and the measured grid voltage is fed forward, so that the converter voltage reference is
where u is the current-controller output. The LLC stage regulates the battery current with a proportional–integral–resonant (PIR) controller that includes a 100-Hz resonant term to suppress the double-line-frequency ripple.
Two selectors were added to the model without altering any other block (Figure 1). The first chooses between the original PR controller and the FA-MR controller of Section 3. The second chooses the feedforward (FF) signal: the full measured vg, or the fundamental component from the SOGI. Because the SOGI in-phase output is a band-pass filter, is not perfectly clean; its gain at harmonic h is
so that with k = 0.8 it passes 29%, 16%, and 12% of the third, fifth, and seventh voltage harmonics. The resulting configurations are:
- A: original PR + full feedforward (reference design [4]);
- B: FA-MR + full feedforward;
- C: PR + fundamental feedforward;
- D: fixed-frequency MR + fundamental feedforward (FA-MR with frozen at 2π·50 rad/s);
- E: FA-MR + fundamental feedforward.
2.3. Grid Model and Test Scenarios
The grid is represented by an ideal source with 2%, 4%, and 3% third, fifth, and seventh voltage harmonics (THD 5.4%, within EN 50160 levels [11]) behind an impedance Zg = sLg + Rg. The impedance is defined by the short-circuit ratio on a base power Pn = 3.4 kW, with Rg/Xg = 0.1:
The resulting values are given in Table 3. The scenarios are:
Table 3.
Grid impedance used in the weak-grid cases (3.4 kW base).
- S1: ideal 230 V/50 Hz grid, original control (validation);
- S2: stiff, distorted grid at 50 Hz;
- S3: S2 with a + 1 Hz frequency step at t = 0.65 s;
- SCR 10, 5 and 2.5: distorted weak grid at rated power;
- 33 mH: the SCR 1.5 impedance, at rated power and at reduced power (battery reference 3 A, about 1.2 kW);
- Robustness tests (Section 4.5): a 1-kHz first-order filter on the fed-forward voltage, two extra samples of control delay, a −20% error in the boost inductance, higher background distortion (3/5/4%, THD 7.1%), a −1-Hz step on the stiff grid, and a +1-Hz step at SCR 5 and 2.5;
- Dynamic tests (Section 4.6): frequency ramps of +2 and −2 Hz/s lasting 0.5 s, the RoCoF withstand level specified in [43], on the stiff grid and at SCR 5; a 50% voltage sag lasting 100 ms; a voltage interruption to 5% lasting one cycle; and a battery-current step from 8 A to 4 A and back to 8 A;
- PLL retuning (Section 4.7): the +1-Hz step at SCR 2.5 and on the stiff grid, and the nominal stiff grid, repeated with a larger PLL integral gain.
In total, seventy-five switched-model runs are reported: one validation run (S1), ten on the stiff distorted grid (S2 and S3, five configurations each), fifteen on the weak grid at rated power (SCR 10, 5, and 2.5, five configurations each), six with the 33-mH inductance (A, B, and E at two power levels) twenty robustness runs (Section 4.5), eighteen dynamic-disturbance runs (Section 4.6), and five runs with a retuned PLL (Section 4.7). Each case is simulated for 1.1 s (1.2–1.27 s for the frequency steps on the weak grid and for the frequency ramps) with a variable-step solver. The transformer pre-magnetization interval of the model was shortened from 3 s to 0.3 s, and the battery current reaches its 8-A reference at about 0.46 s. All metrics are computed over ten fundamental cycles from t = 0.85 s, which is 0.2 s after the frequency steps; after a step, the harmonics are evaluated at the new grid frequency. For the frequency ramps the window starts at the end of the ramp (1.05 s), and for the sag, interruption, and load-step tests at 0.90 s. The current distortion is evaluated as
where Ih is the rms value of the h-th harmonic current, and the individual harmonic currents up to the 40th order are compared with the IEC 61000-3-2 Class-A limits [44].
The rated input current of the charger, 3.27 kW at 230 V, and unity power factor, is about 14.2 A rms. The charger therefore falls within the scope of IEC 61000-3-2, which covers equipment with a rated input current of up to 16 A per phase; equipment rated between 16 A and 75 A per phase would be assessed against IEC 61000-3-12 instead [45]. On the weakest grids the operating fundamental current rises to about 17 A rms because the PCC voltage sags, but the applicable standard is determined by the rated current at rated voltage, not by the operating current on a weak feeder. Formal compliance tests also prescribe a test supply with very low impedance and distortion. The distorted and weak-grid results in this paper are therefore assessments of the harmonic currents against the Class-A limits, not compliance tests.
3. Frequency-Adaptive Multi-Resonant Control and Feedforward Analysis
3.1. FA-MR Controller
The FA-MR controller adds resonant terms at h = 1, 3, 5, and 7 to a proportional gain Kp:
where ωc sets the bandwidth of each peak and φh is a phase lead that compensates the delay of the current loop at harmonic h. Following [33], each term is implemented with two integrators, so that the resonant frequency enters only as a gain and can change every sample (Figure 2):
Figure 2.
Discrete two-integrator realization of one FA-MR term (6). The PLL-frequency estimate enters only through the gain , so the resonant frequency adapts online.
The forward/backward Euler pair in (6) is the two-integrator discretization recommended in [33,34]; at a 50-kHz sampling rate its resonant-frequency error is negligible for harmonics up to the seventh. The frequency is taken directly from the SOGI-PLL, so the controller needs no extra sensing or estimation. The total output, u = Kpe + u1 + u3 + u5 + u7, is limited to with a small back-off, and the integrator states are reset whenever the PFC is disabled. For configuration D, is replaced by the nominal value 2π·50 rad/s.
The phase leads are chosen so that each resonant term acts on the closed proportional loop with zero phase error at its own frequency. With the plant , an effective delay Td = 1.5 Ts = 30 µs (one sample of computation plus half a sample of PWM [46]), and T(s) = KpGp(s)/(1 + KpGp(s)),
which gives 7.88°, 13.06°, and 18.16° for the third, fifth, and seventh harmonics. The fundamental term keeps Kr,1 = 350 and φ1 = 0, identical to the original PR controller, so configurations A and B differ only by the added harmonic terms. The harmonic gains (150, 100 and 80) were selected by a simple trade-off between harmonic loop gain and stiff-grid phase margin, not by formal optimization. With these values the loop gains are 38, 30, and 26 dB at the third, fifth, and seventh harmonics, while the phase margin of the stiff-grid current loop falls only from 73.5° (PR alone) to 68.9°, at a crossover frequency of about 1.1 kHz and an unchanged gain margin of 17.6 dB. Doubling all harmonic gains adds about 5 dB of harmonic loop gain but reduces the phase margin to 64.5°, and quadrupling them reduces it to 56.8°; halving them gives 71.2° at the cost of about 6 dB of loop gain. The selected set lies where further gain buys little additional rejection for a growing loss of margin. If the resonant frequencies are not adapted, a +1 Hz grid-frequency error reduces the harmonic loop gain to 34, 24, and 18 dB, i.e., by 4–8 dB. The computational cost is small: each harmonic term needs about ten multiply–accumulate operations and two trigonometric constants per sample, and the gains are computed once per sample from the PLL output. Section 5 compares this cost quantitatively with the classical alternatives.
Design procedure and robustness of the gains. The controller design can be summarized in five steps that can be repeated for another charger. (1) Keep Kp and the fundamental term of the existing PR controller, so that the fundamental current dynamics and the DC-bus loop are unchanged. (2) Choose the resonant bandwidth ωc = 2π·2 rad/s for all terms: wide enough to tolerate the residual ripple of the PLL frequency estimate (about 0.13 Hz), narrow enough to leave the phase margin almost unchanged. (3) Compute the phase leads φh from (7) for the nominal plant and delay. (4) Raise the harmonic gains Kr,h from zero until the harmonic loop gain exceeds about 25 dB at every compensated harmonic while the stiff-grid phase margin stays above about 65°, which gives the values above. (5) Check the margins over the expected range of grid impedance and plant parameters. For step (5), the same gains were used in every case of Section 4 without rescheduling. With fundamental feedforward, the phase margin computed with the averaged model falls from 68.9° on a stiff grid to 56.2°, 44.5°, and 38.8° at SCR 10, 5, and 2.5; with full feedforward it falls to 47.0°, 34.0°, and 19.6°. A ±20% error in L changes the required phase leads by at most 3.5° (at the seventh harmonic), which is negligible for a resonant term, and the −20% inductance case in Section 4.5 indeed left the THD unchanged. The gains therefore did not need to be adapted to the operating condition in the range studied; on much weaker grids, the harmonic gains of the full-feedforward configuration would be the first to reduce.
3.2. Role of the Feedforward in the Current Loop
Let the converter voltage be , with v* from (1), and let the PCC voltage be vg = H(s) vs − Zp(s) ig. Here vs is the source voltage, Zp = Zg∥Zx is the impedance seen from the PCC with Zx = Rd + 1/(sCx), and H = Zx/(Zg + Zx). The boost-inductor equation (sL + R) ig = vg − vc then gives, for full feedforward (vff = vg),
and, for fundamental feedforward (),
where vs,h is the harmonic content of the source. Equation (8) shows why full feedforward rejects voltage harmonics: the source enters only through , which is small at low frequency. With fundamental feedforward, the harmonic voltage acts directly on the loop and must be rejected by the gain of C(s) at each harmonic, which is what the resonant terms provide.
The same factor multiplies the grid impedance in the characteristic equation of (8). For ωTd≪1, , so that an inductive grid contributes
which is a negative resistance that grows with frequency and with the grid inductance. With Lg = 33 mH it is about −8 Ω at 450 Hz, compared with the 15 Ω virtual resistance created by Kp. The X-capacitor branch has the opposite effect, because
which is a positive resistance Td/Cx = 15 Ω in the frequency range where Zx dominates Zp. With fundamental feedforward (9), Zp appears unmodified; being a passive impedance, it can only add damping. These approximations explain qualitatively why full feedforward is a concern on weak grids, and why an OBC equipped with an input X-capacitor branch such as the one considered here may be less exposed than an LCL-filtered inverter with grid-side current control.
3.3. Averaged Small-Signal Model
The closed-loop poles of (8) and (9) were computed with C(s) from (5), a fourth-order Padé approximation of , and Zp including Rg, Lg, Cx, and Rd. Figure 3 shows the damping ratio of the least-damped mode above 365 Hz, which excludes the resonant-controller poles, for configurations A, B, C, and E.
Figure 3.
Damping ratio of the least-damped closed-loop mode above 365 Hz versus SCR, obtained from the averaged model. The dotted lines mark the simulated SCR values (2.5, 5, and 10).
With full feedforward (A, B), the critical mode moves from about 1.1 kHz at SCR 10 (ζ ≈ 0.25) to about 555 Hz at SCR 2.5, where ζ = 0.10 for A and ζ = 0.045 for B. The resonant terms of B reduce the damping further because their phase lead acts in the same frequency band. With fundamental feedforward (C, E), the critical mode stays near 2.7–3.0 kHz with ζ ≈ 0.33–0.37, almost independent of the SCR. The averaged model predicts zero damping for B at SCR ≈ 1.71 (Lg ≈ 29 mH). As shown in Section 4.4, the switched model did not confirm this instability, so Figure 3 is used only as a qualitative indicator of the trend. The averaged model neglects the discretization of the actual controllers, the exact PWM delay, the SOGI dynamics in the feedforward path and the damping of the switched plant.
To identify which of these assumptions matters most, the predicted stability boundary of B was recomputed for different effective delays and X-capacitor values (Table 4). The boundary depends strongly on the delay: it moves from SCR 1.30 for Td = 1.0 Ts to SCR 2.15 for Td = 2.0 Ts. By comparison, varying Cx from 1 µF to 4.7 µF or Rd from 5 Ω to 20 Ω moves it only within SCR 1.42–1.87. A shorter effective delay in the switched model was therefore a plausible explanation for its stable behavior, and it was tested directly by adding two samples of delay to the converter voltage reference (Section 4.5). For that case the averaged model predicts that B becomes unstable at SCR 2.5 (ζ = −0.05 at 445 Hz), while A (ζ = 0.04) and E (ζ = 0.18) remain stable. In the switched model all three remained stable, although the ninth-harmonic current of the two full-feedforward configurations roughly tripled. The averaged model thus predicts the correct trend, but its conservatism is not explained by the loop delay alone; the remaining candidates (discretization of the controllers, SOGI dynamics in the feedforward path, damping of the switched plant) were not separated in this study. Table 4 is therefore reported as a sensitivity of the model rather than as an explanation of the discrepancy.
Table 4.
Sensitivity of the averaged-model stability boundary (lowest stable SCR) to the effective loop delay.
The remaining discrepancy limits the quantitative use of the averaged model, and three observations constrain its origin. First, the switched model shows the predicted mode where the averaged model places it: the ninth-harmonic current of the full-feedforward configurations increases with the grid inductance and with the added delay (Section 4.4 and Section 4.5), whereas it stays one to two orders of magnitude lower with fundamental feedforward. The location and the trend of the mode are therefore modeled correctly, and only its damping is underestimated. Second, the discrepancy is not caused by the loop delay, which was tested directly. Third, the averaged model represents the plant by the boost-inductor equation and treats the sampled controllers as continuous, whereas the switched plant also contains the 300-ns dead time, the losses of the devices and of the damping branch, and sampled measurements; these effects are candidates for the additional damping, but they were not separated here. For this reason, the conclusions of this paper on weak-grid operation rest on the demonstrated behavior of the switched model, and the averaged model is used only to locate the critical mode and its trend.
4. Simulation Results
4.1. Validation of the Baseline Model
On an ideal 230 V/50 Hz grid (S1), the original control draws 3.27 kW at a power factor of 0.99998 with 0.31% current THD. The DC-bus ripple is 12.8 V peak-to-peak, and the battery-current ripple is 0.69 A peak-to-peak at 8.0 A. These values are consistent with the laboratory measurements published for the same reference design (1.8% THD, 14.2 Vpp and 0.85 App) [4]. The lower simulated THD is expected, because sensor noise, quantization and device non-idealities are not modeled; all results below are therefore compared between configurations rather than against absolute laboratory values.
4.2. Stiff Distorted Grid and Frequency Step
Table 5 and Figure 4 summarize the current THD of the five configurations. With 5.4% background voltage distortion on a stiff grid (S2), the original controller A gives 0.53%, and adding the FA-MR terms to it (B) lowers this to 0.43%. Removing the harmonic content from the feedforward without adding resonant terms (C) raises the THD to 5.74%, which confirms that, in the reference design, the full feedforward is what rejects the background voltage harmonics. The resonant terms recover most of that rejection without relying on the measured harmonic voltage (D and E: 0.87%).
Table 5.
Grid-current THD (%) on the stiff distorted grid. In all cases the harmonic currents remain below the IEC 61000-3-2 Class-A limits.
Figure 4.
Grid-current THD of the five configurations under all rated-power operating conditions (logarithmic scale).
The frequency step (S3) separates the fixed and adaptive resonant controllers. The SOGI-PLL estimate settles at 51.0 Hz about 0.1 s after the step, with a residual ripple of about 0.13 Hz. The fixed-frequency controller D then more than doubles its THD, from 0.87% to 2.06%, because its resonant peaks, about 4 Hz wide at −3 dB, no longer coincide with the shifted harmonics. Its third, fifth, and seventh current harmonics rise from 0.37, 0.58, and 0.49% of I1 to 0.91, 1.38, and 1.22%, whereas the adaptive controller E keeps them at 0.66, 0.60, and 0.41% (Figure 5). The values in Table 5 and Figure 5 are steady-state values from the ten-cycle analysis of Section 2.3, evaluated at the actual grid frequency; the least-squares method described next is used only for the transient of Figure 6. Both full-feedforward configurations also degrade slightly after the step (A: 0.86%, B: 0.76%), and B remains the best. Frequency adaptation is therefore necessary whenever resonant terms carry the harmonic rejection: a frequency deviation of only 2% is enough to undo most of their benefit.
Figure 5.
Third, fifth, and seventh grid-current harmonics of the fixed (D) and frequency-adaptive (E) multi-resonant controllers with fundamental feedforward, at 50 Hz (S2) and after the +1 Hz step (S3). Steady-state values from the ten-cycle analysis.
Figure 6.
Transient after the +1-Hz frequency step (least-squares fit at the PLL frequency over a 60-ms sliding window, orders 2–15): (a) grid-current THD of A, B, D, and E; (b) fifth and seventh harmonic currents of the fixed (D) and frequency-adaptive (E) controllers.
Figure 6 shows the transient after the step. Because a fixed-frequency Fourier transform over a short window would suffer from spectral leakage while the frequency changes, the harmonics in Figure 6 were extracted by a least-squares fit of a DC term and sinusoids at the first 15 multiples of the PLL frequency estimate (its median within the window) over a 60-ms window (three cycles) advanced in 5-ms steps. The fitted THD therefore covers orders 2–15 only, and values within one window length of the step mix pre- and post-step conditions; they indicate the settling behavior, whereas the steady-state values in Table 5 come from the ten-cycle analysis of Section 2.3. The PLL estimate converges within about 0.1 s, and the FA-MR controller follows it. In E, the THD peaks briefly at 1.39% about 35 ms after the step and then returns towards 1.0% within 0.1–0.2 s, whereas the fixed controller D rises to 2.06% and stays there. With full feedforward the change is small (A: 0.52% to 0.87%; B: 0.41% to 0.76%), and B settles within about 60 ms. Frequency adaptation therefore introduces no transient penalty beyond the settling of the PLL itself. In each window the current is modeled as i (t) ≈ c0 + Σh [ah cos (2πht) + bh sin (2πht)], h = 1, …, 15, where is the PLL estimate; the coefficients are obtained by linear least squares, and the amplitude of each harmonic is (ah2 + bh2)1/2. Unlike a discrete Fourier transform, this fit does not require the window to contain an integer number of periods, so it remains unbiased while the frequency differs from 50 Hz.
4.3. Weak Grid at Rated Power
Table 6 gives the results for SCR 10, 5, and 2.5 with the same background distortion. All configurations remain stable, deliver 3.27 kW to the battery at 8.0 A, and their harmonic currents remain below the IEC 61000-3-2 Class-A limits. The ranking seen on the stiff grid is preserved (B < A < D ≈ E < C): configuration B gives 0.43%, 0.42%, and 0.51% at SCR 10, 5, and 2.5, against 0.52%, 0.54%, and 0.57% for the original controller. As the grid weakens, the PCC voltage falls and the fundamental current rises, from 14.4 A at SCR 10 to 17.0 A at SCR 2.5, so that the power factor drops slightly to 0.997. Across all steady-state cases in Table 5 and Table 6, the DC-bus voltage stays at 340 V with a 100 Hz ripple of 11.9–13.2 V peak-to-peak, the battery current stays at 8.0 A with a ripple of about 0.7 A peak-to-peak, and the power factor lies between 0.997 and 0.9996. None of these quantities depends measurably on the current controller, because they are set by the DC-bus and LLC control loops.
Table 6.
Weak-grid performance at rated power (background harmonics 2/4/3%).
Figure 7 shows the grid current and PCC voltage at SCR 2.5 for A, B, and E. The currents are sinusoidal in all three cases, although the PCC voltage is visibly distorted. Figure 8 compares the harmonic currents with the IEC limits. With full feedforward (A, B), small ninth, eleventh, and thirteenth components appear, at 0.01–0.03 A; with fundamental feedforward (E) they are an order of magnitude smaller or below the resolution of the analysis. These components lie close to the lightly damped mode predicted in Section 3.3 (about 555 Hz at SCR 2.5). D and E are identical in steady state at 50 Hz, as expected, and differ only when the frequency deviates (Table 5).
Figure 7.
Grid current and PCC voltage (divided by 10) at SCR 2.5 for (a) the original controller A, (b) FA-MR with full feedforward B, and (c) FA-MR with fundamental feedforward E.
Figure 8.
Grid-current harmonics (A rms) at SCR 2.5 compared with the IEC 61000-3-2 Class-A limits.
The PCC voltage THD in Table 6 is lowest with C (4.13% at SCR 2.5). In that case the uncompensated harmonic currents flow through the grid impedance and partly cancel the source distortion. When the charger draws a sinusoidal current it no longer provides this incidental compensation, and the PCC voltage THD rises above the 5.4% source value, to 6.8% with E and 8.0–8.2% with A and B. The higher values with full feedforward are consistent with the reduced damping near the 9th–13th harmonics. This trade-off between current quality at the charger terminals and voltage quality at the PCC is discussed in Section 5.
4.4. Very Weak Grid: 33-mH Grid Inductance
To test the stability boundary suggested by the averaged model (B unstable below SCR ≈ 1.71), the three main configurations were simulated with the SCR 1.5 impedance (Lg = 33 mH). The results are given in Table 7 and Figure 9.
Table 7.
Very weak grid, Lg = 33 mH (SCR 1.5 on a 3.4 kW base).
Figure 9.
Battery current and cycle-by-cycle PCC voltage with Lg = 33 mH: (a,b) at rated power, where all configurations exceed the power-transfer limit; (c,d) at 1.2 kW, where all configurations are stable (the three curves overlap).
At rated power, no configuration can deliver the requested power. The battery current rises towards 8 A, peaks at about 7 A, and then falls to about 2.8 A as the DC bus sags from 340 V to about 286 V. This is an observed power limitation of this model, caused by the static power-transfer capability of the grid rather than by a loss of control stability. For a unity-power-factor load behind an inductive grid, the maximum transferable power is approximately [47]
At SCR 1.5 this is about 2.55 kW, below the 3.27 kW that the charger draws. In this infeasible operating region the controller only affects how the charger behaves: with full feedforward the PCC voltage is held at 205–218 V with a distorted current, whereas with fundamental feedforward it collapses to 58 V. The THD of E in this case is not meaningful, and that of A could not be evaluated because the run reached the simulation time-out. These runs show that rated power cannot be delivered at this grid strength; they do not establish whether the controllers would remain dynamically stable throughout all infeasible operating conditions.
At about 1.2 kW with the same inductance, the drawn power is roughly half of Pmax and every configuration is stable, with a constant current envelope. B again gives the lowest THD (0.61%, against 1.10% for A and 2.10% for E). The averaged model predicted that B would be unstable at this impedance, so the instability itself was not confirmed. However, the ninth harmonic (450 Hz), which lies at the frequency of the predicted lightly damped mode (about 450 Hz at 33 mH), is about 0.25% of I1 with full feedforward and only 0.01% with fundamental feedforward. The averaged model therefore identifies the mode and its frequency correctly but overestimates its loss of damping.
4.5. Robustness Tests
The results above assume an ideal voltage measurement, the nominal control delay, and an exactly known plant. Twenty further runs, together with the three SCR 10 cases added to Table 6, examine how the conclusions depend on these assumptions and extend the frequency-step test to the opposite direction and to weak grids. The results are summarized in Table 8, where each case is compared with the corresponding nominal case.
Table 8.
Robustness tests: grid-current THD (%) and, in brackets, the THD of the corresponding nominal case. In all steady-state cases the harmonic currents remain below the IEC 61000-3-2 Class-A limits.
Filtered feedforward voltage. A first-order filter with a 1-kHz cut-off, typical of a voltage-sensing and anti-aliasing chain, delays the fed-forward voltage by 8.5°, 14°, and 19° at the third, fifth, and seventh harmonics. The feedforward then leaves about 15%, 24%, and 33% of these background harmonics uncompensated, and the THD of the original controller rises from 0.53% to 1.91%, with fifth and seventh components of 1.37% and 1.11% of I1. The resonant terms of B reject what the filtered feedforward misses, and its THD changes only from 0.43% to 0.50%. The margin between B and A therefore grows from 0.1 to 1.4 percentage points once the measurement is not ideal. This is the strongest practical argument for adding the resonant terms to the existing feedforward.
Extra control delay. With two additional samples (40 µs) on the converter voltage reference at SCR 2.5, all configurations remain stable. The THD of the full-feedforward configurations increases (A: 0.57% to 1.16%; B: 0.51% to 0.83%), mainly because the ninth-harmonic current rises from about 0.17% to 0.50–0.59% of I1, whereas E is almost unaffected (1.05%, 9th harmonic 0.02%). This agrees with the trend of Section 3.3, a full-feedforward mode near 450 Hz that loses damping as the delay grows, but not with the predicted instability of B.
Plant uncertainty and higher distortion. A 20% lower-boost inductance with unchanged controller gains has no measurable effect on the THD (A: 0.57%; B: 0.52%), although the switching ripple of the current increases as expected. Raising the background distortion from 5.4% to 7.1% increases the THD by 0.11, 0.08, and 0.25 percentage points for A, B, and E respectively, so the ranking is preserved.
Frequency steps in both directions and on a weak grid. After a −1-Hz step on the stiff grid, the fixed-frequency controller D degrades even more than after the +1-Hz step (2.85% against 2.06%), with fifth and seventh components of 1.69% and 2.15% of I1, whereas the adaptive controller E stays at 1.12% and B at 0.69%. At SCR 5, all four configurations ride through a +1-Hz step: the PLL estimate reaches 51.0 Hz within about 0.15 s, the DC bus stays at 340 V, and the ranking of the stiff grid is preserved (B 0.81%, A 0.93%, E 1.18%, D 2.86%). At SCR 2.5, however, the same step caused a loss of synchronism in all three configurations tested, including the original controller. The PLL estimate stalled at about 50.85 Hz instead of 51 Hz, the DC-bus voltage fell from 340 V to about 290 V within 0.3 s, and the grid current kept rising, exceeding 40 A peak at 1.1 s. Because the original PR controller behaves in the same way, the loss of synchronism is not caused by the resonant terms. Section 4.7 traces it to the integral gain of the reference-design PLL and shows that it disappears when that gain is raised.
4.6. Dynamic Disturbances
The tests above use steps and steady-state conditions. Three kinds of dynamic disturbance were therefore added (Table 9, Figure 10): linear frequency ramps of ±2 Hz/s lasting 0.5 s, which corresponds to the RoCoF withstand-level specified for grid-connected equipment in Europe [43] and takes the frequency to 51 or 49 Hz; a 50% voltage sag lasting 100 ms and a voltage interruption to 5% lasting one cycle; and a step of the battery-current reference from 8 A to 4 A at 0.60 s and back to 8 A at 0.75 s. All runs use the stiff distorted grid unless stated otherwise.
Table 9.
Dynamic disturbances: grid-current THD (%). For the ramps, the first value is the 60-ms least-squares estimate at 0.90 s (0.35 s into the ramp) and the second the ten-cycle value after the ramp; for the other tests, the ten-cycle value from 0.90 s. In all cases the harmonic currents remain below the IEC 61000-3-2 Class-A limits.
Figure 10.
Dynamic disturbances on the stiff distorted grid: (a) grid-current THD (60-ms least-squares window) during ±2-Hz/s frequency ramps (shaded) for B, D, and E; (b) DC-bus voltage averaged over one 100-Hz ripple period for the 50% sag, the one-cycle interruption, and the load step (configuration B), with A and E for the sag; (c) grid current during and after the 50% sag (shaded) for A, B, and E.
Frequency ramps. During a +2 Hz/s ramp, the PLL estimate lags the actual frequency by a nearly constant 0.06 Hz. The adaptive controllers therefore follow the ramp, and their current THD changes little: E stays between 0.84% and 0.97% during the ramp and reaches 1.01% at 51 Hz, while B rises gradually from 0.43% to 0.69% and settles at 0.76%. The fixed-frequency controller D degrades progressively as the frequency moves away from 50 Hz, from 0.86% at the start of the ramp to 1.97% at its end and 2.06% at 51 Hz (Figure 10a). The −2-Hz/s ramp gives the same picture with a larger penalty for D (2.84% at 49 Hz), whereas B and E end at 0.69% and 1.11%. At SCR 5, B and E ride through the +2-Hz/s ramp with 0.81% and 1.17%. The values after the ramps agree within 0.02 percentage points with those after the corresponding frequency steps (Table 5 and Table 8), so the conclusions drawn from the step tests also hold for realistic rates-of-change of frequency.
Voltage sags and interruptions. The 50% sag lowers the DC-bus voltage, averaged over one ripple period, by about 52 V. When the voltage returns, the DC-bus controller recharges the bus with a peak grid current of about 45 A and an overshoot of about 30 V, and the bus returns to within 2% of its reference about 0.43 s after the start of the sag. The one-cycle interruption gives a dip of about 37 V, a peak current of about 31 A and a recovery time of about 0.29 s. These transients are practically identical for A, B, and E (Figure 10b,c), because they are governed by the DC-bus and LLC loops and by the voltage step itself, not by the harmonic terms of the current controller. After the disturbances the THD ranking is unchanged (Table 9); the higher values after the sag (B: 0.73%) are measured while the DC bus is still recovering. The inrush peak after the sag, about 2.2 times the rated peak current, is a property of the reference design and would in practice be limited by a current-limit or ramp-rate function in the DC-bus loop.
Load steps. Halving the battery-current reference and restoring it changes the DC-bus voltage by less than 3 V, and the battery current follows the reference between 4.0 A and 8.0 A without overshoot in all three configurations. The grid current changes its amplitude without visible distortion, and the THD after the steps (0.40%, 0.49%, and 0.81% for B, A, and E) is close to the nominal values. The added resonant terms therefore impose no penalty on the dynamic response of the charger.
4.7. PLL Synchronization on a Very Weak Grid
The loss of synchronism at SCR 2.5 (Section 4.5) occurred with all current controllers, which points to the synchronization loop. The SOGI-PLL of the reference design uses a PI controller with kp = 0.1 and ki = 0.02 acting on the q-axis voltage in volts (Table 2). With a voltage amplitude Vm ≈ 325 V, the loop gain is kpVm ≈ 32 rad/s, whereas the zero of the PI controller lies at ki/kp = 0.2 rad/s. Over the time scale of the tests the loop therefore behaves almost as a type-1 loop, and a frequency step Δf leaves a phase error of approximately
which is 0.19 rad (11°) for Δf = 1 Hz. The simulations confirm this estimate. After the +1 Hz step on the stiff grid, the angle between the fundamental current and the PCC voltage settles at about −11.5° and decays only very slowly, so that the power factor falls from 0.998 to 0.978 in all configurations (Figure 11a); during the ±2 Hz/s ramps of Section 4.6 the angle grows almost linearly to about 10°. On a weak grid the lower PCC voltage reduces kpVm and increases the error further, and the resulting displacement adds a reactive current component that depresses the PCC voltage. At SCR 2.5 this interaction ended in the loss of synchronism, with the angle growing beyond 15–20° and the DC-bus voltage falling (Figure 11b,c).
Figure 11.
Effect of the PLL integral gain: (a) angle between the fundamental grid current and the PCC voltage after a +1-Hz step on the stiff grid (configuration B); (b) DC-bus voltage averaged over one ripple period, and (c) current–voltage angle after a +1-Hz step at SCR 2.5, with the original (ki = 0.02) and the retuned (ki = 0.8) PLL.
To test this explanation, the integral gain was raised to ki = 0.8 while kp was kept at 0.1, so that the PLL bandwidth, and hence its filtering of voltage harmonics, is essentially unchanged. With Vm ≈ 325 V this gives a natural frequency of about 16 rad/s and a damping ratio of about 1.0. The results are summarised in Table 10 and Figure 11. On the stiff grid, the phase error after the +1 Hz step now peaks at about 9° and decays below 1° within 0.35 s, the power factor returns to 0.998, and the THD is unchanged (0.76%). At SCR 2.5, all three configurations A, B, and E now keep synchronism: the DC-bus voltage dips to about 329 V, overshoots to about 353 V and settles, the frequency estimate converges to 51 Hz with an overshoot of about 0.25 Hz, and the displacement angle falls below 3° about 0.25 s after the step. The THD values in Table 10 (1.16–1.48%) are higher than the nominal SCR 2.5 values because the measurement window, 0.30–0.50 s after the step, still contains this slow settling. With the retuned PLL, the nominal stiff-grid case is unchanged (THD 0.43%, power factor 0.9985).
Table 10.
Effect of the PLL integral gain on the response to a +1 Hz frequency step (power factor 0.25–0.35 s after the step).
The loss of synchronism observed in Section 4.5 is therefore a property of the PLL tuning of the reference design, not of the current controllers compared here, and a single gain change removes it in the cases studied. More elaborate remedies, such as frequency-locked loops [35], advanced single-phase PLL structures [48], synchronization designs that account for the grid impedance [49], and online grid-impedance estimation [50], could extend the operating range further but are beyond the scope of this paper.
5. Discussion
Is full feedforward a weak-grid risk for an OBC? Within the conditions simulated here, it was not. All configurations remained stable from a stiff grid down to SCR 2.5 at rated power, and down to a 33-mH grid inductance at reduced power. The simplified analysis of Section 3.2 offers a qualitative explanation, not a stability guarantee. The input X-capacitor branch considered here contributes a positive resistance Td/Cx (about 15 Ω here) to the full-feedforward loop, and the proportional gain adds a virtual resistance of 15 Ω; together they tend to offset the negative resistance −ω2TdLg that the feedforward creates from the grid inductance. How much margin this leaves depends on the X-capacitor, the delay, and the grid impedance, so it should be checked for each design. Moreover, at rated power the static power-transfer limit (12) appears at SCR ≈ 2P/Pn ≈ 1.9, above the SCR ≈ 1.71 at which the averaged model predicts instability for B. At rated power the predicted unstable region therefore lies beyond the power-transfer limit, and at reduced power it did not materialize in the switched model, nor at SCR 2.5 with two extra samples of control delay. The averaged model remains useful for locating the critical mode and its trend, but it should not be used alone to rule out full feedforward on weak grids.
Which configuration should be used? Adding FA-MR terms to the existing full feedforward (B) gave the lowest current THD in every feasible steady-state case tested, with a relative THD reduction of 9–45% compared with the original PR controller under nominal sensing (0.05–0.49 percentage points) and of 74% with a filtered feedforward voltage (1.41 percentage points). It also kept its advantage after a frequency step, because the resonant terms follow the PLL frequency while the feedforward handles the rest. The change is confined to the current-controller block and needs no extra sensor. Fundamental-only feedforward with FA-MR (E) is a valid alternative when the measured voltage cannot be fed forward, for example with a slow or noisy voltage sensor. It meets the IEC limits with margin and keeps the closed-loop damping almost independent of the grid strength, but its THD is about 1%, roughly double that of B. It also kept its advantage during and after ±2-Hz/s frequency ramps, and its response to voltage sags, interruptions, and load steps was indistinguishable from that of the original controller (Section 4.6).
When does the added resonant control pay off? With an ideal voltage measurement on a moderately strong grid, full feedforward already rejects most of the background distortion, and the FA-MR terms reduce the current THD only from about 0.53% to 0.43%. The benefit becomes substantial in three situations identified here: on the weakest grid considered (33 mH at reduced power), where the THD falls from 1.10% to 0.61%; whenever the feedforward is restricted to the fundamental for robustness or noise reasons, where the resonant terms reduce the THD from 5.74% (C) to 0.87% (E); and after grid-frequency deviations, provided the resonant frequencies are adapted. The fourth, and practically the most relevant, is a filtered voltage measurement: with a 1-kHz sensing filter in the feedforward path, the original controller’s THD rises to 1.91%, whereas B stays at 0.50% (Table 8).
Performance versus complexity. Table 11 compares the classical options with the proposed controller in terms of computational burden and performance. The original PR controller needs about 10 floating-point operations per sample and two state variables. A fixed-frequency multi-resonant controller with three harmonic terms needs about 46 operations and eight states, and frequency adaptation adds one multiplication per harmonic, giving about 50 operations; the PLL frequency estimate is already available, so no additional sensor, estimator or memory is required. Measured on a 2.1 GHz x86 core in single precision, the execution time per sample is about 6, 7, and 9 ns for the PR, fixed MR, and FA-MR controllers, respectively, i.e., well below 0.1% of the 20-µs control period. On an embedded floating-point processor that executes one operation per cycle at 100 MHz, the roughly 40 additional operations would take about 0.4 µs, or 2% of the period. A frequency-adaptive repetitive controller [41] would reject all harmonics at once, but it needs a delay line of about fs/f1 = 1000 samples with fractional-delay interpolation to follow the frequency. Against this small cost, the benefit of FA-MR over the original controller is modest under ideal conditions (0.1 percentage points on the stiff grid) but becomes large when the fed-forward voltage is filtered (1.41 percentage points), and when resonant terms carry the harmonic rejection during frequency deviations adaptation keeps the THD at about half the value of the fixed controller (Table 5, Table 8 and Table 9). Because the controller is written as fixed-size, discrete-time code that runs at the 20 µs control period of the reference design, which is intended for automatic code generation for a real-time controller [4], no obstacle to real-time execution is expected; this remains to be confirmed experimentally.
Table 11.
Computational burden versus performance. Operation counts per control sample (multiplications and additions) refer to the current controller only; the feedforward and PLL paths are common to all options. Execution times were measured for C implementations in single precision on a 2.1 GHz x86 core and are indicative only.
Relevance for on-board chargers. The improvement in steady state is small when the grid is stiff and the voltage measurement is ideal, and the controller cannot raise the power-transfer limit of very weak grids (Section 4.4); in that sense its contribution to the output of a charger on a weak grid is limited. Its value lies in robustness: it keeps the current distortion low when the measurement chain filters the voltage, when the grid frequency deviates or ramps, and when many chargers on one feeder reduce the effective SCR [8,9,27], at the cost of a few tens of operations per sample and no hardware. Applications in which the frequency varies widely, such as variable-frequency aircraft networks [38], need frequency-adaptive resonant control as a matter of course; for OBCs it acts as low-cost insurance that preserves harmonic compliance under the non-ideal conditions of real feeders.
Why frequency adaptation matters. Resonant peaks with ωc = 2π·2 rad/s are deliberately narrow, which limits their effect on the stability margin. The price is that a 1-Hz deviation at the fundamental becomes a 5–7-Hz deviation at the fifth and seventh harmonics, well outside the peaks. EN 50160 [11] allows the frequency of interconnected systems to stay within ±1% for 99.5% of a year and within +4%/−6% at all times, so deviations of up to 0.5 Hz are routine, larger excursions are permitted, and a fixed-frequency MR controller cannot be relied on for harmonic rejection. Tying the resonant frequencies to the PLL removes this sensitivity at negligible cost. Frequency ramps of 2 Hz/s, the withstand level now specified in Europe [43], produced the same picture as the steps (Section 4.6).
Current quality versus PCC voltage quality. Forcing a sinusoidal current on a weak grid with distorted background voltage raises the PCC voltage THD (Table 6), because the charger no longer absorbs harmonic current that would otherwise partly compensate the background distortion. This effect is well known for harmonic-rejecting converters and is not specific to the controllers compared here. It implies that, on very weak and distorted feeders, current-THD compliance at the charger terminals and voltage quality at the PCC can be competing objectives, which a future study could address with a controlled harmonic conductance.
Limitations. The study is simulation-based and uses one charger design with one set of controller gains. Hardware-in-the-loop or experimental validation of the FA-MR controller, beyond the comparison of the baseline model with published laboratory measurements [4], could not be carried out within this work and is the main next step; recent HIL studies of resonant harmonic compensation [42] provide a template for it. The background distortion is constant and contains no interharmonics, sensors are ideal apart from the filter test of Section 4.5, and a single charger is connected to the grid impedance; the effect of many chargers on one feeder is represented only through the equivalent SCR [27]. The averaged small-signal model proved conservative; the loop delay was ruled out as the sole reason, and a discrete-time (z-domain) model that includes the sampled controllers and the zero-order hold of the PWM would be the natural tool to resolve the discrepancy quantitatively. The PLL retuning of Section 4.7 was tested only at the operating points reported; a systematic weak-grid PLL design and an aggregated multi-charger study are left for future work.
6. Conclusions
This paper compared five combinations of current controller and grid-voltage feedforward for the PFC stage of a 3.3-kW totem-pole PFC + LLC on-board charger in 75 switched-model simulations, under background voltage distortion, ±1-Hz frequency steps, ±2-Hz/s frequency ramps, voltage sags, interruptions and load steps, weak grids down to SCR 2.5, a 33-mH grid inductance, and non-ideal sensing, delay, and inductance. The main conclusions are as follows:
- Adding a frequency-adaptive multi-resonant controller (first, third, fifth, and seventh terms tuned by the SOGI-PLL frequency) to the existing full grid-voltage feedforward gave the lowest current THD in every feasible steady-state case: 0.43% on a stiff distorted grid, 0.76% after a +1-Hz step, 0.42% and 0.51% at SCR 5 and 2.5, and 0.61% with 33 mH at reduced power. The corresponding values for the original PR controller were 0.53%, 0.86%, 0.54%, 0.57%, and 1.10%.
- The advantage of this combination is largest when the feedforward is not ideal: with a 1-kHz first-order filter on the fed-forward voltage, the original controller’s THD rose from 0.53% to 1.91%, whereas FA-MR with full feedforward stayed at 0.50%. A 20% error in the boost inductance and a higher background distortion (7.1%) changed the results only marginally.
- Frequency adaptation is essential when resonant terms carry the harmonic rejection: after +1-Hz and −1-Hz steps, a fixed-frequency multi-resonant controller rose from 0.87% to 2.06% and 2.85% THD, while the adaptive version stayed at 0.99% and 1.12%. The same held during ±2-Hz/s frequency ramps, which raised the THD of the fixed controller to 2.06% and 2.84% while the adaptive controller stayed at 1.01% and 1.11%.
- The proposed controller adds about 40 floating-point operations per sample and no sensor, and it did not change the response to 50% voltage sags, one-cycle interruptions, or battery-current steps, which is governed by the DC-bus and LLC loops.
- Full grid-voltage feedforward did not destabilize the charger in any simulated feasible case, including two extra samples of control delay at SCR 2.5. A simplified analysis suggests that the input X-capacitor contributes a positive resistance that partly offsets the negative resistance created from the grid inductance; this is a qualitative explanation of the simulated behavior, not a general stability guarantee. An averaged small-signal model correctly located a lightly damped full-feedforward mode near 450–560 Hz, visible as a small 9th–13th harmonic content, but overestimated its loss of damping, and this conservatism is not explained by the loop delay alone.
- Two operating limits were found that affected the original and the proposed controllers alike. On the weakest grid considered, rated power could not be delivered because of the static power-transfer limit of the grid, Pmax ≈ SCR ⋅ Pn/2 at unity power factor. At SCR 2.5, a +1-Hz frequency step caused a loss of PLL synchronism with every configuration tested, including the original controller. It was traced to the very small integral gain of the reference PLL, which leaves a standing phase error of about 11° per hertz of frequency deviation; raising that gain from 0.02 to 0.8 restored synchronism for all configurations.
- In all steady-state cases within the feasible operating range, the harmonic currents remained below the IEC 61000-3-2 Class-A limits; the charger, rated at about 14.2 A, lies within the scope of that standard.
For practical OBC designs, the results support keeping full grid-voltage feedforward and adding frequency-adaptive resonant terms to the existing PR current controller. The improvement demonstrated is in the robustness of harmonic-current control under the tested disturbances; the stability of a given design on a weak grid still has to be verified. The study is simulation-based, and hardware-in-the-loop or experimental validation of the controller remains future work.
Author Contributions
Conceptualization, Z.H.A.; methodology, Z.H.A. and A.A.Y.; software, Z.H.A.; validation, A.A.Y. and A.A.A.; formal analysis, Z.H.A. and A.A.Y.; investigation, A.A.Y. and A.A.A.; writing—original draft preparation, Z.H.A.; writing—review and editing, A.A.Y. and A.A.A.; visualization, A.A.A.; supervision, Z.H.A. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The modified simulation model, the scripts used to run the cases, and the result files are available from the corresponding author on reasonable request. The baseline charger model is publicly available from the imperix knowledge base [4].
Acknowledgments
The baseline on-board charger model used in this work is the AN010 application example published on the imperix knowledge base.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| EMI | Electromagnetic interference |
| FA-MR | Frequency-adaptive multi-resonant |
| FF | Feedforward |
| FLL | Frequency-locked loop |
| HIL | Hardware-in-the-loop |
| LLC | Inductor–inductor–capacitor (resonant converter) |
| MPC | Model-predictive control |
| MR | Multi-resonant |
| OBC | On-board charger |
| PCC | Point of common coupling |
| PF | Power factor |
| PFC | Power-factor correction |
| PI | Proportional–integral |
| PIR | Proportional–integral–resonant |
| PLL | Phase-locked loop |
| PR | Proportional-resonant |
| RoCoF | Rate of change of frequency |
| SCR | Short-circuit ratio |
| SOGI | Second-order generalized integrator |
| THD | Total harmonic distortion |
References
- Yilmaz, M.; Krein, P.T. Review of battery charger topologies, charging power levels, and infrastructure for plug-in electric and hybrid vehicles. IEEE Trans. Power Electron. 2013, 28, 2151–2169. [Google Scholar] [CrossRef] [Scilit]
- Khaligh, A.; D’Antonio, M. Global trends in high-power on-board chargers for electric vehicles. IEEE Trans. Veh. Technol. 2019, 68, 3306–3324. [Google Scholar] [CrossRef] [Scilit]
- Zhou, L.; Wu, Y.; Honea, J.; Wang, Z. High-efficiency true bridgeless totem pole PFC based on GaN HEMT: Design challenges and cost-effective solution. In Proceedings of the PCIM Europe 2015, Nuremberg, Germany, 19–20 May 2015. [Google Scholar]
- imperix SA. On-Board Charger for Electric Vehicles (Application Example AN010). Available online: https://imperix.com/doc/example/on-board-charger-for-electric-vehicles (accessed on 11 October 2026).
- Deng, J.; Li, S.; Hu, S.; Mi, C.C.; Ma, R. Design methodology of LLC resonant converters for electric vehicle battery chargers. IEEE Trans. Veh. Technol. 2014, 63, 1581–1592. [Google Scholar] [CrossRef] [Scilit]
- Gomez, J.C.; Morcos, M.M. Impact of EV battery chargers on the power quality of distribution systems. IEEE Trans. Power Deliv. 2003, 18, 975–981. [Google Scholar] [CrossRef] [Scilit]
- Di Domenico, D.; Obusevs, A.; Korba, P. Investigation of harmonic issues in distribution grids due to high share of electric vehicles. In Proceedings of the 2020 IEEE 61st International Scientific Conference on Power and Electrical Engineering of Riga Technical University (RTUCON), Riga, Latvia, 5–7 November 2020. [Google Scholar] [CrossRef] [Scilit]
- Senol, M.; Bayram, I.S.; Hunter, L.; Sevdari, K.; McGarry, C.; Campos-Gaona, D.; Gehrke, O.; Galloway, S. Harmonics measurement, analysis, and impact assessment of multiple electric vehicle smart charging. IEEE Open J. Veh. Technol. 2025, 6, 109–127. [Google Scholar] [CrossRef] [Scilit]
- Mazza, A.; Benedetto, G.; Bompard, E.; Nobile, C.; Pons, E.; Tosco, P.; Zampolli, M.; Jaboeuf, R. Interaction among multiple electric vehicle chargers: Measurements on harmonics and power quality issues. Energies 2023, 16, 7051. [Google Scholar] [CrossRef] [Scilit]
- Yildirim, B.; Akbal, B. Grid integration of high-power and MW-class electric vehicle charging: Impacts, severity factors, and mitigation strategies. Electricity 2026, 7, 132. [Google Scholar] [CrossRef] [Scilit]
- EN 50160; Voltage Characteristics of Electricity Supplied by Public Distribution Networks. CENELEC: Brussels, Belgium, 2022.
- Kasumba, D.M.; Vassallo, M.; Fonteneau, R.; Nkulu Wa Ngoie, G.; Tungadio Diambomba, H.; Katond Mbay, J.-P.; Banza Wa Banza, B.; Ernst, D. Power quality and service continuity in a low-voltage urban network in the municipality of Kamalondo in Lubumbashi, DR Congo. Electricity 2026, 7, 94. [Google Scholar] [CrossRef] [Scilit]
- Arteaga, J.-A.; López, Y.U.; López, J.A.; Posada, J. Decoding harmonics: Total harmonic distortion in solar photovoltaic systems with integrated battery storage. Electricity 2025, 6, 28. [Google Scholar] [CrossRef] [Scilit]
- Bounagui, M.; Nasser, T.; Essadki, A.; Akarne, Y. Design, control and management of high-power electric vehicles using a hybrid storage system. World Electr. Veh. J. 2026, 17, 489. [Google Scholar] [CrossRef] [Scilit]
- Teodorescu, R.; Blaabjerg, F.; Liserre, M.; Loh, P.C. Proportional-resonant controllers and filters for grid-connected voltage-source converters. IEE Proc.-Electr. Power Appl. 2006, 153, 750–762. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zmood, D.N.; Holmes, D.G. Stationary frame current regulation of PWM inverters with zero steady state error. In Proceedings of the 30th Annual IEEE Power Electronics Specialists Conference (PESC), Charleston, SC, USA, 27 June–1 July 1999; Volume 2, pp. 1185–1190. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Ruan, X.; Liu, S.; Tse, C.K. Full feedforward of grid voltage for grid-connected inverter with LCL filter to suppress current distortion due to grid voltage harmonics. IEEE Trans. Power Electron. 2010, 25, 3119–3127. [Google Scholar] [CrossRef] [Scilit]
- Li, B.; Ding, D.; Wang, Q.; Zhang, G.; Fu, B.; Wang, G.; Xu, D. Input voltage feedforward active damping-based input current harmonic suppression method for totem-pole bridgeless PFC converter. IEEE J. Emerg. Sel. Top. Power Electron. 2023, 11, 602–614. [Google Scholar] [CrossRef] [Scilit]
- Ha, T.-W.; Kim, C.-L.; Lee, J.-A.; Sim, D.H.; Lee, B.K. Control strategy with noise-immune for interleaved totem-pole PFC based on WBG device to mitigate current distortion. In Proceedings of the 28th International Conference on Electrical Machines and Systems (ICEMS), Busan, Republic of Korea, 16–19 November 2025; pp. 2553–2558. [Google Scholar] [CrossRef] [Scilit]
- Liserre, M.; Teodorescu, R.; Blaabjerg, F. Stability of photovoltaic and wind turbine grid-connected inverters for a large set of grid impedance values. IEEE Trans. Power Electron. 2006, 21, 263–272. [Google Scholar] [CrossRef] [Scilit]
- Sun, J. Impedance-based stability criterion for grid-connected inverters. IEEE Trans. Power Electron. 2011, 26, 3075–3078. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Blaabjerg, F. Harmonic stability in power electronic-based power systems: Concept, modeling, and analysis. IEEE Trans. Smart Grid 2019, 10, 2858–2870. [Google Scholar] [CrossRef] [Scilit]
- Xu, J.; Xie, S.; Tang, T. Evaluations of current control in weak grid case for grid-connected LCL-filtered inverter. IET Power Electron. 2013, 6, 227–234. [Google Scholar] [CrossRef] [Scilit]
- Lu, M.; Al-Durra, A.; Muyeen, S.M.; Leng, S.; Loh, P.C.; Blaabjerg, F. Benchmarking of stability and robustness against grid impedance variation for LCL-filtered grid-interfacing inverters. IEEE Trans. Power Electron. 2018, 33, 9033–9046. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Huang, S.; He, W.; Zhang, D. Admittance remodeling strategy of grid-connected inverter based on improving GVF. Electronics 2023, 12, 2122. [Google Scholar] [CrossRef] [Scilit]
- Sun, C.; Li, Y.; Chen, X.; Qi, S.; Guo, B.; Li, Q. Hybrid active damping control method for LCL-filtered grid-connected inverters using dual-current feedback and capacitor-voltage feedforward under weak grid conditions. Electricity 2026, 7, 124. [Google Scholar] [CrossRef] [Scilit]
- Agorreta, J.L.; Borrega, M.; López, J.; Marroyo, L. Modeling and control of N-paralleled grid-connected inverters with LCL filter coupled due to grid impedance in PV plants. IEEE Trans. Power Electron. 2011, 26, 770–785. [Google Scholar] [CrossRef] [Scilit]
- Harnefors, L.; Bongiorno, M.; Lundberg, S. Input-admittance calculation and shaping for controlled voltage-source converters. IEEE Trans. Ind. Electron. 2007, 54, 3323–3334. [Google Scholar] [CrossRef] [Scilit]
- Faiz, M.T.; Liu, J.; Hei, L.K.; Khan, M.M.; Loo, K.H. Input impedance and stability analysis of VSC in integrated on-board chargers for electric vehicles. In Proceedings of the 2024 IEEE 25th Workshop on Control and Modeling for Power Electronics (COMPEL), Lahore, Pakistan, 24–27 June 2024; pp. 1–8. [Google Scholar] [CrossRef] [Scilit]
- Bak, Y. Dynamic characteristic improvement of integrated on-board charger using a model predictive control. Energies 2022, 15, 8745. [Google Scholar] [CrossRef] [Scilit]
- Li, C.; Hegde, B.; Basu, B.; Shanker, S. Model predictive current control with harmonic correction for single-phase AC-DC EV charging. arXiv 2026, arXiv:2606.30397. [Google Scholar]
- Yepes, A.G.; Freijedo, F.D.; López, Ó.; Doval-Gandoy, J. Analysis and design of resonant current controllers for voltage-source converters by means of Nyquist diagrams and sensitivity function. IEEE Trans. Ind. Electron. 2011, 58, 5231–5250. [Google Scholar] [CrossRef] [Scilit]
- Yepes, A.G.; Freijedo, F.D.; López, Ó.; Doval-Gandoy, J. High-performance digital resonant controllers implemented with two integrators. IEEE Trans. Power Electron. 2011, 26, 563–576. [Google Scholar] [CrossRef] [Scilit]
- Yepes, A.G.; Freijedo, F.D.; Doval-Gandoy, J.; López, Ó.; Malvar, J.; Fernandez-Comesaña, P. Effects of discretization methods on the performance of resonant controllers. IEEE Trans. Power Electron. 2010, 25, 1692–1712. [Google Scholar] [CrossRef] [Scilit]
- Rodríguez, P.; Luna, A.; Candela, I.; Mujal, R.; Teodorescu, R.; Blaabjerg, F. Multiresonant frequency-locked loop for grid synchronization of power converters under distorted grid conditions. IEEE Trans. Ind. Electron. 2011, 58, 127–138. [Google Scholar] [CrossRef] [Scilit]
- Ciobotaru, M.; Teodorescu, R.; Blaabjerg, F. A new single-phase PLL structure based on second order generalized integrator. In Proceedings of the 37th IEEE Power Electronics Specialists Conference (PESC), Jeju, Republic of Korea, 18–22 June 2006. [Google Scholar]
- Golestan, S.; Monfared, M.; Freijedo, F.D.; Guerrero, J.M. Dynamics assessment of advanced single-phase PLL structures. IEEE Trans. Ind. Electron. 2013, 60, 2167–2177. [Google Scholar] [CrossRef] [Scilit]
- Venturini, R.P.; Mattavelli, P.; Zanchetta, P.; Sumner, M. Adaptive selective compensation for variable frequency active power filters in more electrical aircraft. IEEE Trans. Aerosp. Electron. Syst. 2012, 48, 1319–1328. [Google Scholar] [CrossRef] [Scilit]
- Sangeetha, E.; Ramachandran, V.P. Speed and current harmonics reduction using an adaptive proportional integral resonant controller for PMSM based electric vehicle drives. Sci. Rep. 2025, 15, 26514. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Gontijo, G.; Tricarico, T.; Krejci, D.; Guedes, S.; França, B.; Aredes, M. Stator harmonic current compensation of a DFIG connected to a grid with voltage distortion. In Proceedings of the 14th Brazilian Power Electronics Conference (COBEP), Juiz de Fora, Brazil, 19–22 November 2017; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
- Zhou, K.; Yang, Y.; Blaabjerg, F. Frequency adaptive repetitive control of grid-tied three-phase PV inverters. In Proceedings of the 8th IET International Conference on Power Electronics, Machines and Drives (PEMD), Glasgow, UK, 19–21 April 2016. [Google Scholar] [CrossRef] [Scilit]
- Liu, Q.; Zhu, F.; Yang, X. Harmonic current compensation control and hardware-in-the-loop study of a medium-voltage flexible interconnection device. Electricity 2026, 7, 93. [Google Scholar] [CrossRef] [Scilit]
- ENTSO-E. Rate of Change of Frequency (RoCoF) Withstand Capability; ENTSO-E Guidance Document for National Implementation for Network Codes on Grid Connection; ENTSO-E: Brussels, Belgium, 2018. [Google Scholar]
- IEC 61000-3-2; Electromagnetic Compatibility (EMC)—Part 3-2: Limits—Limits for Harmonic Current Emissions (Equipment Input Current ≤16 A per Phase). International Electrotechnical Commission: Geneva, Switzerland, 2018.
- IEC 61000-3-12; Electromagnetic Compatibility (EMC)—Part 3-12: Limits—Limits for Harmonic Currents Produced by Equipment Connected to Public Low-Voltage Systems with Input Current >16 A and ≤75 A per Phase. International Electrotechnical Commission: Geneva, Switzerland, 2021.
- McGrath, B.P.; Parker, S.G.; Holmes, D.G. High performance stationary frame AC current regulation incorporating transport delay compensation. EPE J. 2012, 22, 17–24. [Google Scholar] [CrossRef] [Scilit]
- Kundur, P. Power System Stability and Control; McGraw-Hill: New York, NY, USA, 1994. [Google Scholar]
- Golestan, S.; Guerrero, J.M.; Vasquez, J.C. Single-phase PLLs: A review of recent advances. IEEE Trans. Power Electron. 2017, 32, 9013–9030. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Taul, M.G.; Wu, H.; Liao, Y.; Blaabjerg, F.; Harnefors, L. Grid-synchronization stability of converter-based resources—An overview. IEEE Open J. Ind. Appl. 2020, 1, 115–134. [Google Scholar] [CrossRef] [Scilit]
- Ni, C.; Sun, H.; Yu, G.; Zhu, Y.; Jin, Z.; Wei, Y.; Feng, Y. Robust grid impedance estimation based on dynamically weighted likelihood function and adaptive bandwidth optimization. Electricity 2026, 7, 113. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.










