MATLAB Answers

How to start a simulation in steady-state ?

14 views (last 30 days)
Antoine Dupuis
Antoine Dupuis on 10 Sep 2020
Commented: Fangjun Jiang on 14 Sep 2020
Hi everyone,
I have a question regarding how to the start of a simulation in simulink with the steady state signal (voltage in my case) from t=0s.
I have done the power flow initialization as well the steady-state initial state with the help of powergui but I still have a oscillating voltage, power output from the synchronous machine.
Do you have any idea how to get read of this transient ? For instance I'd like to start my simulation at t=0s with the state of t=0.6s
Thanks in advance !
Antoine

  0 Comments

Sign in to comment.

Accepted Answer

Paul
Paul on 11 Sep 2020

  1 Comment

Antoine Dupuis
Antoine Dupuis on 13 Sep 2020
Hi Paul,
Thank you so much for your help, it works perfectly as you can see:
The blue curve is a simulation stopping at t=0.01s and the red curve is a second simulation starting off with the operating point of the blue curve at t=0.01s. We can see that the junction is continuous.
Success !!
Thanks again,
Antoine

Sign in to comment.

More Answers (1)

Fangjun Jiang
Fangjun Jiang on 11 Sep 2020
In Configuration Parameters, Data Import/Export, you can check and specify "Initial State".
You can also save "States" for your simulation. Do this first to figure out what are the states and their order and values.
In recent versions, there are "State Reader" and "State Writer" blocks. R2018a may not have it.

  8 Comments

Show 5 older comments
Fangjun Jiang
Fangjun Jiang on 14 Sep 2020
The method that Paul pointed to is only available in later versions. It is certainly more convenient. I decided to try an example. It provded that this long available method worked perfectly. The example model is "f14".
The thing you might have missed is that, if you want to simulate only from 0.01s to 0.02s, you need to make sure that the model input is also the same. You might need to do some shifting on the input signals but the easist way to do this is to set the start time to be 0.1 and the stop time to be 0.2
Antoine Dupuis
Antoine Dupuis on 14 Sep 2020
Hi Fangjun Jiang,
From what I have read in mathwork, your method works perfectly indeed, but is limited in certain cases (including mine) because of specific block type.
This is very well explained here:
Great talking
Regards,
Antoine

Sign in to comment.

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!