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

2 次查看(过去 30 天)
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

采纳的回答

Rijuta
Rijuta 2023-5-17
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simscape Multibody 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by