SystemModeler Link >

WSMInputFunctions


is an option for WSMSimulate and WSMSimulateSensitivity that specifies values for input variables.
  • Setting uses as the input value for at time t.
  • Input functions can be set for all variables in WSMModelData.
Load Wolfram SystemModeler Link:
Simulate a model with a given input:
Simulate the model that sets two inputs; the output is the sum of the inputs:
Plot the inputs and the output:
Simulate a model with a given input:
Simulate the model that takes the derivative of the input:
Plot the input and the output:
Simulate for several different inputs:
Load Wolfram SystemModeler Link:
In[1]:=
Click for copyable input
 
Simulate a model with a given input:
In[1]:=
Click for copyable input
Simulate the model that sets two inputs; the output is the sum of the inputs:
In[2]:=
Click for copyable input
Plot the inputs and the output:
In[3]:=
Click for copyable input
Out[3]=
 
Simulate a model with a given input:
In[1]:=
Click for copyable input
Simulate the model that takes the derivative of the input:
In[2]:=
Click for copyable input
Plot the input and the output:
In[3]:=
Click for copyable input
Out[3]=
Simulate for several different inputs:
In[4]:=
Click for copyable input
In[5]:=
Click for copyable input
Out[5]=
Show the response in room temperature, given a step in the outside temperature:
Study a model for different inputs:
Simulate the model that derives the input for different trigonometric functions:
Plot the input and the output:
Give an input function for a variable and study the sensitivity of the output:
Simulate the model that integrates the input after applying a gain:
Plot the sensitivity of the output to the gain parameter:
can be given in list pairs instead of rules:
Plot the input and the output:
The symbols returned from WSMModelData can be used in :
Simulate using the symbol form of u:
Plot the input and the output:
Find the parameter in an input function to a model by comparing to measurement data:
Set up caching for simulation:
Fit parameters to the measurement data:
Simulate with the fitted input function:
Show the test data and the calibrated model together: