Filter löschen
Filter löschen

Simscape: change parameters of the block 'grid surface' dynamically to simulation time

2 Ansichten (letzte 30 Tage)
Dear all,
my question would be, if it is possible in Simscape to change the parameters (x, y, z) in a "grid surface" block dynamically with the simulation in the mechanics explorer?
I have put the "grid surface" block in a mask and made a callback function, that should trigger, if the parameter will be changed, but even if I change the parameter in the workspace, the change will only effect in the initialization and not in the time of the simulation.
Bigger picture: I want to simulation waves and thought, that this could maybe be possible with a grid surface and a point cloud.
Thanks everyone and greetings from Austria.
Marco

Akzeptierte Antwort

Rijuta
Rijuta am 17 Mai 2023
Hi Marco,
In Simscape, the values of parameters in a "grid surface" block cannot be changed dynamically during the simulation using the Mechanics Explorer or by modifying the parameters in the workspace. The values set for the parameters of the "grid surface" block are fixed at the start of the simulation and remain constant throughout the simulation.

Weitere Antworten (0)

Kategorien

Mehr zu Simscape Multibody finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by