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
If you want to solve Simscape equations in phasor, try selecting "Frequency-and-time" as the Equation formulation on the Solver Configuration block.

7 个评论

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
If you look in the simlog (using sscexplore), you will see instantaneous, offset, amplitude and phase.
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
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.
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?
If you can share a model, I can take a look.
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 Exchange 中查找有关 Variable Initialization 的更多信息

产品

版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by