Transfer Function from Linearization is not correct. Simscape Model.
8 ビュー (過去 30 日間)
古いコメントを表示
Vermeer Bonhomme
2023 年 2 月 13 日
回答済み: Vermeer Bonhomme
2023 年 3 月 3 日
Hello,
I am modeling a double pendulum on Simscape. This is a system of two masses that are hanging on flexible beams which models a kind of spring.
.

Here is what I do:
- I run the simulation to reach the steady state.
- I Linearize (from control system toolbox) my system around the steady state and I look at the 6 degrees of freedom of the bottom mass as output and the 6 degrees of freedom of the ground as input.
% Ground Input (1:6)
io(io_i) = linio([mdl, '/Ground_x'], 1, 'openinput'); io_i = io_i + 1;
io(io_i) = linio([mdl, '/Ground_y'], 1, 'openinput'); io_i = io_i + 1;
io(io_i) = linio([mdl, '/Ground_z'], 1, 'openinput'); io_i = io_i + 1;
io(io_i) = linio([mdl, '/Ground_xr'],1, 'openinput'); io_i = io_i + 1;
io(io_i) = linio([mdl, '/Ground_yr'], 1, 'openinput'); io_i = io_i + 1;
io(io_i) = linio([mdl, '/Ground_zr'], 1, 'openinput'); io_i = io_i + 1;
% IPP Center Output (37:42)
io(io_i) = linio([mdl, '/IPPx'], 1, 'openoutput'); io_i = io_i + 1;
io(io_i) = linio([mdl, '/IPPy'], 1, 'openoutput'); io_i = io_i + 1;
io(io_i) = linio([mdl, '/IPPz'], 1, 'openoutput'); io_i = io_i + 1;
io(io_i) = linio([mdl, '/IPPxr'],1, 'openoutput'); io_i = io_i + 1;
io(io_i) = linio([mdl, '/IPPyr'], 1, 'openoutput'); io_i = io_i + 1;
io(io_i) = linio([mdl, '/IPPzr'], 1, 'openoutput'); io_i = io_i + 1;
G = linearize(mdl,io,50);
- I take a transfer functions from the linearization.
With a siplified version of this model, (no flexible beams but prismatic joints instead), This is the transfer function that I manage to have:

There is all the modes that I expect.
On this version, all the Bases and Followers of the joints are matching at the linearization operating point.
Then, on this new version, the physics of the simulation works well, but the transfer function is completly incorrect:

But it should be very similar.
The only difference that I have found is that the Bases and followers of the top gimbal joints are not matching at the operating point because of the flexure of the beam.

The thing is that I don't understand the real reason why this is not working. Is that from Linearize or from Simscape?
Thank you for your help,
Vermeer
12 件のコメント
Paul
2023 年 3 月 3 日
Excellent. I completely forgot that the solver can influence the linearization in some cases. With a DAE solver, as I assume that daessc is, I imagine that can be even trickier.
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Trimming and Linearization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!