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

 Risposta accettata

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

7 Commenti

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

Accedi per commentare.

Più risposte (0)

Categorie

Prodotti

Release

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by