WOLFRAM SYSTEMMODELER LINK PACKAGE SYMBOL

WSMSimulationData

WSMSimulationData[]
represents Modelica simulation data.

DetailsDetails

  • is typically generated by functions such as WSMSimulate and WSMSimulateSensitivity.
  • In standard output format, only the simulation interval and the number of variables in a object are printed explicitly.
  • gives a list of possible properties.
  • Properties of simulation data are obtained from .
  • For simulations with dynamic graphics, returns Graphics at time t.
  • Properties of the simulated model: »
  • "VariableNames"dependent variables in the model
    "ParameterNames"parameter variables in the model
    "StateVariables"continuous state variables in the model
    "ModelName"fully qualified name of the model
  • For variable and parameter lists, returns the elements of property whose Modelica forms match the string pattern patt.
  • Properties specific to the simulation: »
  • "SimulationInterval"simulation interval
    "NumberOfEvents"number of events in the simulation
    "Events"time points where events occurred
  • Properties related to values of variables and parameters: »
  • {"v1","v2",}simulation for , ,
    {"p1","p2",}parameter value for , ,
  • Simulation results for variables are returned as functions that can be evaluated for any time t. »
  • Simulation results from object sd can be evaluated at a point t with .
  • Complete lists of simulation results and parameter values: »
  • "VariableValues"simulations
    "ParameterValues"parameters
  • Lists of simulation results from sd can be evaluated at a point t with .
  • Variables depend on parameters ; the sensitivity of a variable to a parameter is the partial derivative . Sensitivities can be computed using WSMSimulateSensitivity. »
  • Sensitivities can be accessed by the property .
  • Properties related to sensitivities include:
  • "SensitivityNames"variable parameter sensitivities
    "SensitivityValues"sensitivities

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Simulate a model:

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

Get all variable names in the model:

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

Get the trajectory of one variable:

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

Get trajectories for all variables:

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

Show the simulation interval:

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