WSMInputFunctions


is an option for WSMSimulate and WSMSimulateSensitivity that specifies values for input variables.

DetailsDetails

  • Setting uses as the input value for at time t.
  • Input functions can be set for all variables in WSMModelData[mmodel,"InputVariables"].

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

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]=