ask intergral and derivate

3 views (last 30 days)
승표
승표 on 18 Feb 2025
Commented: 승표 on 20 Feb 2025
One of the voltage equations in the LCL grid-connected inverter is as follows. This is an equation transformed into the synchronous reference frame.
To summarize this,
I can organize it in these two ways. One is the voltage equation that was first defined, which includes the differential term. The second is the iq2 current, which is integrated on both sides.
I made each equation into a simulated link equation. However, the result is different. Equations with differentials represent the correct values, but equations with integrals represent completely different values.
Please let me know what I need to do to express this
- integral equation block
- Derivative equation
Result :
  10 Comments
Yifeng Tang
Yifeng Tang on 19 Feb 2025
Edited: Yifeng Tang on 19 Feb 2025
I'm afraid this is beyond my domain knowledge. I'm a mechanical engineer, and know very little about three-phase AC :p
The "example" model has a missing parameter omega, but it looks like whatever value I put there I'm getting a decreasing signal with some oscillation, while the other scope shows just oscillation.
This makes me wonder whether you have a constant somewhere in your integrand that needs to be zero-ed out first.
Sorry, just my random thoughts. I have no intuition which one is correct :(
승표
승표 on 19 Feb 2025
@Sam ChakI understand to some extent what you say, but it's not perfect yet.
If you give feedback on the model above, I would like to ask where to do it.

Sign in to comment.

Answers (1)

Sam Chak
Sam Chak on 20 Feb 2025
I used the ordinary differential equations (ODEs) from this PMSM example because they are similar to your case. Specifying the ODEs using the Fcn block with appropriate labels is much easier to troubleshoot than adding multiple fundamental blocks, which may obscure your ability to trace signal flows in Simulink.
In the block diagram, there is a clear feedback loop that sends the outputs and , along with the other defined parameters, back to the ODEs in the Fcn blocks. In this example, the number of pole pairs (P) is assumed to be 1 for simplicity, and I directly specified it in the Fcn blocks without labeling it. The constants are somewhat unrealistic in this example, but you can modify them to suit your LCL grid-connected inverter.
I would also like to thank @Yifeng Tang for his response. I rarely use Simulink nowadays, so any tips or advice to help the OP improve modeling skills in Simulink/Simscape would be appreciated.
response:
response:
  1 Comment
승표
승표 on 20 Feb 2025
Thank you very much for your help.If you have any more questions, I'll leave it again.

Sign in to comment.

Categories

Find more on Electrical Sensors in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!