WSMParameterValues

WSMParameterValues
is an option for functions such as WSMSimulate that specifies values for parameters.

DetailsDetails

  • Setting WSMParameterValues->{p1->c1,} sets parameters pi to ci in the simulation or model.
  • Using WSMParameterValues for a simulation does not recompile the model.
  • Setting WSMParameterValues->{pi->{c1,c2,},} runs simulations in parallel, with pi taking values cj.

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Simulate with default parameters:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Change the offset to 2:

In[4]:=
Click for copyable input
In[5]:=
Click for copyable input
Out[5]=

Simulate with a range of parameters:

In[1]:=
Click for copyable input

Vary the part of the momentum that is transferred to the next ball in the cradle:

In[2]:=
Click for copyable input

The angles of the first and last ball in the cradle for different parameters:

In[3]:=
Click for copyable input
Out[3]=

Create a model with a parameter value for par:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input