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

 Akzeptierte Antwort

David John
David John am 4 Jun. 2025

1 Stimme

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

7 Kommentare

Victor
Victor am 4 Jun. 2025
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 am 4 Jun. 2025
If you look in the simlog (using sscexplore), you will see instantaneous, offset, amplitude and phase.
Victor
Victor am 5 Jun. 2025
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 am 5 Jun. 2025
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 am 5 Jun. 2025
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 am 9 Jun. 2025
If you can share a model, I can take a look.
Victor
Victor am 9 Jun. 2025
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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Produkte

Version

R2024b

Gefragt:

am 4 Jun. 2025

Kommentiert:

am 9 Jun. 2025

Community Treasure Hunt

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

Start Hunting!

Translated by