WSMLink`
WSMLink`

WSMInputFunctions

WSMInputFunctions is being phased out in favor of the association key "Inputs" in functions introduced experimentally in Version 11.3.

WSMInputFunctions

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

Details

  • WSMInputFunctions takes the following values:
  • {var1fun1,}use funi[t] as input for vari at time t
    {var1{f1,f2,},}run simulations in parallel, with fj[t] as input for vari
  • Input functions can be set for all variables in WSMModelData[mmodel,"InputVariables"].
  • Each vari can be either a string or DotName.

Examples

open allclose all

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

Scope  (5)

Applications  (1)

See Also

WSMSimulate  WSMSimulateSensitivity  WSMParameterValues  WSMInitialValues

Tutorials