Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Manipulate parameters or initial values in plots of model simulation results
ResourceFunction["SystemModelManipulate"][model] creates a Manipulate object from model showing the resulting default plots of a simulation with controllers for the top-level parameters and initial values. | |
ResourceFunction["SystemModelManipulate"][model,{u}] creates a control only for the top-level parameter or variable u. | |
ResourceFunction["SystemModelManipulate"][model,{u,umin,umax}] allows the value for u to vary between umin and umax. | |
ResourceFunction["SystemModelManipulate"][model,{{u,uinit},umin,umax,…}] takes the initial value of u to be uinit. | |
ResourceFunction["SystemModelManipulate"][model,{u,{u1,u2,…}}] allows u to take on discrete values u1,u2,…. | |
ResourceFunction["SystemModelManipulate"][model,{u,func}] creates a control from the function func. | |
ResourceFunction["SystemModelManipulate"][model,{u,…},{v,…},…] provides controls to manipuate each u,v,…. |
Appearance | "Open" | appearance of controls for real and integer values |
ContinuousAction | False | whether to update continuously when controls are changed |
SynchronousInitialization | False | whether to perform initialization synchronously |
SynchronousUpdating | False | whether to update synchronously |
Create a dynamic interface for a model simulation:
In[1]:= |
Out[1]= |
Manipulate an initial value in a simulation:
In[2]:= |
Out[2]= |
Specify the model by name and manipulate a specific parameter value in a simulation:
In[3]:= |
Out[3]= |
All default plots are shown by default:
In[4]:= |
Out[4]= |
Manipulate all plots individually with a "Plots" control:
In[5]:= |
Out[5]= |
Select which plots to make available:
In[6]:= |
Out[6]= |
Pick minimum and maximum values for the control of a parameter value:
In[7]:= |
Out[7]= |
Pick minimum, maximum and jump values for the control of a parameter value:
In[8]:= |
Out[8]= |
Pick an initial value for the control of a parameter value:
In[9]:= |
Out[9]= |
Pick a list of discrete values for the control of a parameter:
In[10]:= |
Out[10]= |
Pick a function for the control of a parameter:
In[11]:= |
Out[11]= |
Pick a label for the control of a parameter value:
In[12]:= |
Out[12]= |
Pick a list of discrete values and their labels for the control of a parameter:
In[13]:= |
Out[13]= |
Controls for booleans and enumerations use PopupMenu as ControlType if they are not specified:
In[14]:= |
Out[14]= |
If provided in the model, the base unit is displayed next to the name of the variable or parameter and the description is shown with Tooltip:
In[15]:= |
Out[15]= |
Real and integer values are displayed by default:
In[16]:= |
Out[16]= |
Remove displayed values:
In[17]:= |
Out[17]= |
Study the trajectory of a classical charged particle under the effect of the Lorentz force:
In[18]:= |
Out[18]= |
Visualize trajectories in the configuration space of a Duffing oscillator:
In[19]:= |
Out[19]= |
Visualize trajectories and mass loss of a rocket with exhaust velocity of constant magnitude:
In[20]:= |
Out[20]= |
Study the model of a thumb-wheel potentiometer connected in a rheostat configuration:
In[21]:= |
Out[21]= |
Use Setting on the output to access the displayed plots:
In[22]:= |
Out[22]= |
Observe the trajectories of 5 balls released inside a room, varying the size of the room using parameters:
In[23]:= |
Out[23]= |
This work is licensed under a Creative Commons Attribution 4.0 International License