WOLFRAM SYSTEMMODELER LINK PACKAGE SYMBOL

WSMCreateDataModel

WSMCreateDataModel["newmodel",{v1,v2,}]
creates the Modelica model "newmodel" of the values vi.

WSMCreateDataModel["newmodel",{{t1,v1},}]
creates a model for the time-value pairs {ti,vi}.

WSMCreateDataModel["newmodel",ts]
creates a model for the TimeSeries ts.

WSMCreateDataModel["newmodel",fun,tmin,tmax]
creates a model with samples from the function fun between tmin and tmax.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Create a model from a list of time-value pairs:

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

Simulate and plot the output of the data model:

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

Create a model from a TimeSeries:

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

Simulate and plot the output:

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

Create a data model of a sampled function between 0 and 10 seconds:

In[1]:=
Click for copyable input

Simulate and plot the output:

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