Change a parameter (initially given by input) across the length of the simulation

6 次查看(过去 30 天)
Apologies for the difficulty in how the question is phrased, but I wish to change the Omega (angular rotation) across the length of the dynamic gross-pitaevskii simulation given by this toolbox http://gpelab.math.cnrs.fr/downloads.htm. Although, I am not sure how to change it during the simulation itself, I've tried to implement a loop in RSP_DS2d.m to change it, but the parameter is unaffected since it is given by the user and then stored in Physics2D_Var2d.m. If you need any clarification on what I mean then don't hesistate to ask. Thanks for any help given!

回答(1 个)

Lokesh
Lokesh 2024-1-16
Hi Oliver,
I see that you're looking to dynamically change the value of the angular rotation parameter (Omega) during your Gross-Pitaevskii equation simulation.
To achieve this, it's essential to determine if the parameter is tunable during the simulation runtime.Some block parameters, especially mathematical parameters, can be defined as "tunable" parameters. It is possible to change the value of a 'tunable' parameter while the simulation is running from the block's dialog parameter, the model explorer, or using the 'set_param' command.
Refer to this blog to know more about changing parameters during simulation:
Please refer to the following documentation to know more about :

类别

Help CenterFile Exchange 中查找有关 General Applications 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by