WOLFRAM SYSTEMMODELER LINK PACKAGE SYMBOL

WSMModelData


gives a diagram representation of the model , usable as input to other functions.


gives the specified for the model .

DetailsDetails

  • gives a list of possible properties.
  • Properties related to the whole model: »
  • "Description"top-level description of model
    "Diagram"diagram view of model
    "Icon"icon view of model
    "ModelicaText"show Modelica model code
    "ModelName"fully qualified path of model
    "SourceFile"file where the model is saved
    "Summary"model summary data
    "SummaryTable"formatted model summary
  • creates a cell with style containing the textual form of , which can be evaluated to load for simulation.
  • With a text-based interface, returns the textual form of as a string.
  • accepts the following options for property and :
  • FrameTrueshow frame
    FrameTicksFalseshow frame ticks
    GridLinesNonewhat grid lines to show
    PlotRangeAutomaticplot range in mm
    PlotRangePaddingAutomaticpadding in mm
  • GridLines->Inherited inherits the grid defined in the model diagram. »
  • PlotRange->Automatic specifies a plot range that encloses the primitives drawn in the diagram.
  • PlotRange->Inherited inherits the page size specified in the model diagram. »
  • Properties related to equations and variables: »
  • "SystemEquations"differential and algebraic equations
    "InitialEquations"initial value equations
    "StateVariables"differentiated variables
    "AlgebraicVariables"non-differentiated variables
    "SystemVariables"state and algebraic variables
    "InputVariables"variables specified as inputs
    "OutputVariables"variables specified as outputs
    "ParameterNames"parameters
    "DiscreteVariables"variables changing only at events
  • gives equations depending on .
  • gives equations depending on t.
  • WSMModelData[] contains Missing[type,content] for any parts of equations that cannot be represented.
  • are distinct from , and are a subset of .
  • are a subset of , and are given in a form suitable as a setting for the DiscreteVariables option to NDSolve.
  • Properties related to values: »
  • "ParameterValues"parameter rules
    "InitialValues"initial value rules
    "GroupedInitialValues"initial values grouped by state, input, and output
  • Properties with rules for variable translations: »
  • "ToModelicaRules"symbols to Modelica strings
    "FromModelicaRules"Modelica strings to symbols
  • For variable and parameter lists, returns the elements of prop whose Modelica form match the string pattern patt.
  • Properties related to the structure of the model:
  • "BaseClasses"classes the model extends
    "Components"model components
    "Connections"model connections
    "Connectors"model connector components
    "LocalComponents"components defined locally in model
  • The shortest unique model name mmodel can be used where WSMNames["*.mmodel"] gives a unique match.
  • The following options can be given:
  • ModelicaConversionAutomaticvariable name conversion rule
    MethodAutomaticmethods for equation processing
  • Setting ModelicaConversion->Automatic converts to symbols similar to Modelica naming.
  • Setting ModelicaConversion->"Short" converts states to s[i], algebraic variables to a[i], input variables to i[i], and parameters to p[i].
  • Possible settings for in Method->{"opt1"->val1} include:
  • "Elimination"Alleliminate simple equations
    "ReduceIndex"Truereduced index of DAEs in balanced models
    "StartTime"0simulation start time

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Show a model represented by a diagram:

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

Use the diagram representation as input:

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

Show a summary of a model:

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

Get the differential equations for a model:

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