in my simulink,used for voltage stabilization which used dvr in flc,here the output have some issues the vload and vinj? so can u help me, vload would be proper sine wave?

23 次查看(过去 30 天)

采纳的回答

Umar
Umar 2025-11-3,17:19

Hi @Faria,

I looked closely at your Simulink setup and the waveforms you shared, after doing thorough research — the noisy Vinj and slightly distorted Vload are very likely caused by the powergui sample-time configuration. That’s a common issue when modeling DVRs or other power-electronic systems.

Right now, it looks like your model is using a large discrete step (around 0.1 s), which is far too coarse for the fast switching dynamics in a DVR. You can fix this by setting the powergui block to Discrete mode and choosing a much smaller sample time, typically in the range of 5e-6 s to 2e-5 s. Then, go into Simulation → Configuration Parameters → Solver and match the fixed-step size to the same value.

Once you do that, re-run the simulation and zoom in on the Vload waveform. You should see a clean sine wave again — only small, short transients during DVR injection. The Vinj waveform will still show rapid switching (that’s normal for a compensator), but the noise-like distortion should disappear.

In short:

  • Discrete powergui with Ts ≈ 5e-6 s
  • Fixed-step solver with same step size
  • Keep controller and PWM sample times synchronized

That change alone usually resolves the “weird noisy injection” issue you mentioned. If not, the next step would be checking how the FLC (fuzzy logic controller) and PWM blocks are sampled relative to your main system — but let’s stabilize the powergui first.

Once your simulation runs cleanly, Vload should appear as a proper sine wave, while Vinj just handles compensation transients.

Hope this helps!

  8 个评论
Umar
Umar about 10 hours 前

Hi @Faria,

Thanks for sharing the screenshot, now I see exactly what's wrong now. Your RLC filter is connected in parallel with the 3-Phase Breaker, and both are feeding into BUS 3. This means the PWM noise from your inverter is bypassing the filter completely through the breaker path. That's why you're still seeing the noisy waveforms - the filter can't clean a signal that doesn't pass through it.

The fix is simple but critical: you need to rewire the RLC filter so it's in series between your inverter output and the transformer like mentioned before. If you look closer, your signal path looks like this:

Inverter > Series R Branch > BUS 3 < (both breaker and RLC connect here in parallel) > Transformer

It needs to be a straight line with no parallel branches:

Inverter > Series R Branch > RLC Filter >Transformer > Load

Here's what you need to do:

1. Disconnect both the 3-Phase Breaker and RLC filter from BUS 3. Delete those wires.

2. Connect the Series R Branch output directly to the RLC filter input (terminals A, B, C).

3. Connect the RLC filter output directly to the 3-Phase Transformer primary side.

4. Either remove the 3-Phase Breaker completely for now, or place it in series before the RLC filter (not creating any parallel path).

5. Double-check your RLC settings: Change it to RLC type (not just LC), set R = 0.5 ohms, L = 0.002 heneries, C = 20e-6 Farads. The small resistance will stop the ringing you're seeing around 0.12-0.16 seconds.

6. Make sure your Vinj scope is measuring after the RLC filter, not before it.

Think of it like this: if you put a water filter on one pipe but leave a second pipe without a filter, dirty water just flows through the unfiltered pipe. You need only one path, and it must go through the filter.

Once you rewire it correctly with the filter in series (no bypass paths), your Vinj should become a clean three-phase sine wave and Vload will smooth out automatically as mentioned before. Keep your powergui and solver settings at 5e-6 seconds - those are correct.

If you're still having issues after making these changes, post another screenshot of your DVR subsystem so we can see the new wiring.

You are very close solving this problem.

Hope this helps!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Power Transmission and Distribution 的更多信息

产品


版本

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by