Wolfram Computation Meets Knowledge

WSMLink`
WSMLink`

WSMCreateDataModel

WSMCreateDataModelString is being phased out in favor of CreateDataSystemModel, which was introduced experimentally in Version 11.3.

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.

Details

Examples

open allclose all

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

Scope  (13)

Options  (6)

Applications  (2)

Properties & Relations  (2)

Possible Issues  (1)

See Also

WSMCreateModel  WSMSimulate  WSMConnectComponents