Effacer les filtres
Effacer les filtres

How can I filter out transient parts

4 vues (au cours des 30 derniers jours)
Johannes Liebrich
Johannes Liebrich le 13 Nov 2018
Hello,
I made a Simulink (Simscape) Model for elctrical charging stations. Now everything is running good, but I have one problem and can't solve it.
As you can see I added one picture if my current.
At the beginning i have some transient parts. I would like to filter them out. I want to explain in with more details. My model should know during simulation when the current is constant, so the model has so simulate maybe one more millisecound. So if you take a look at the picture: At the time of 1ms it has so simulate for one more ms. After that my model should stop simulating.
This is very important for me, because i am doing an Frequency sweep. So the time until all currents are constant is not always the same.
In order to improve the simulation time, i would like to add this feature.
Thanks a lot for your solutions.

Réponses (1)

Joel Van Sickel
Joel Van Sickel le 2 Sep 2020
Hello Johannes,
There are a few paths forward. You can use simulation states to start the model in steady state: https://www.mathworks.com/help/simulink/ug/saving-and-restoring-simulation-operating-point.html
Alternatively, if you do your frequency sweep in post processing, you can just delete the first ms without modifying your simulation.
You can also use the frequency sweep tool in the controls sytem toolbox, and specify how many cycles you want to give the system to reach steady state before doing the frequency analysis: https://www.mathworks.com/videos/frequency-response-estimation-68884.html?s_tid=srchtitle
Regards,
Joel

Catégories

En savoir plus sur Electrical Sensors dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by