Discrete Phasor domain in Simscape

Dear community,
Is it possible to create an electrical model using Simscape blocks (blue ones) and solve it in Discrete Phasor domain, i.e. RMS quantities (as it can be done using Specialized Power Systems)?
If not, is there any other alternative?
Thank you very much in advance.
Best regards,
Víctor Sánchez Suárez

 採用された回答

David John
David John 2025 年 6 月 4 日

1 投票

If you want to solve Simscape equations in phasor, try selecting "Frequency-and-time" as the Equation formulation on the Solver Configuration block.

7 件のコメント

Victor
Victor 2025 年 6 月 4 日
Hi David,
Thank you very much for your quick answer. I have already tried that but I do not get phasors:
Best regards,
Víctor Sánchez Suárez
David John
David John 2025 年 6 月 4 日
If you look in the simlog (using sscexplore), you will see instantaneous, offset, amplitude and phase.
Victor
Victor 2025 年 6 月 5 日
Ok, I get it, thanks.
But, is there any way these RMS/phasor quantites are calculated and used inside the model itself during a simulation?
Thank you in advance.
Best regards,
Víctor Sánchez Suárez
David John
David John 2025 年 6 月 5 日
Yes, there are periodic operator blocks that you can use to extract those signals. Actually, those blocks work in Time or in Frequency-and-time.
Open fl_lib, and then Physical Signals and finally Periodic Operators. This should give you what you're after. As I say, you can use either Equation Formulation with these blocks... Frequency-and-time may run faster for large models with a variable-step solver since the solver should be able to take larger steps.
Victor
Victor 2025 年 6 月 5 日
Hi, thnkas, that helped me a lot.
Now, I am using the PS Harmonic Estimator (Amplitude, Phase) block, but I am getting a weird response. Calculated amplitude (blue curve) does not match the peak value of the sinusoidal waveform it is calculated from (yellow curve) when it increases in t=1s.
Why does this happen?
David John
David John 2025 年 6 月 9 日
If you can share a model, I can take a look.
Victor
Victor 2025 年 6 月 9 日
Hi, I eventually figured out the problem. Now the model is working fine. Thank you very much for your precise help.
Best regards,
Víctor Sánchez Suárez

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeVariable Initialization についてさらに検索

製品

リリース

R2024b

質問済み:

2025 年 6 月 4 日

コメント済み:

2025 年 6 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by