SystemModeler Link >


gives a formatted summary for the model .

gives the specified for the model .
  • gives a list of possible properties.
  • Properties related to the whole model:
"Description"top-level description of model
"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.
  • 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
  • gives equations depending on .
  • gives equations depending on t.
  • WSMModelData[...] contains Missing for any parts of equations that cannot be represented.
  • are distinct from , and are a subset of .
  • 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.
  • The following options can be given:
ModelicaConversionAutomaticvariable name conversion rule
MethodAutomaticmethods for equation processing
  • Setting ModelicaConversion converts states to FormalS[i], algebraic variables to FormalA[i], input variables to FormalI[i], and parameters to FormalP[i].
  • Possible settings for in Method include:
"Elimination"Alleliminate simple equations
"ReduceIndex"Truereduced index of DAEs in balanced models
Load Wolfram SystemModeler Link:
Show a summary of a model:
Get the differential equations for a model:
Load Wolfram SystemModeler Link:
Click for copyable input
Show a summary of a model:
Click for copyable input
Get the differential equations for a model:
Click for copyable input
Show a list of possible properties:
Get a summary of a model in list form:
Get all state variables of a model:
Get all parameter names of a model:
Get all parameter values of a model:
Get all initial values of a model:
Get the description of a model:
Get a list of all algebraic variables in the model:
Use ModelicaConversion to see shorter names:
Get the rules for converting variables and parameters to and from Modelica form:
By default, equations use as the time variable:
Get the differential equations depending on a chosen variable:
Get the initial equations for a partly untranslatable model:
A message is issued to warn the user:
Get parameter values matching a pattern:
Conversion method uses Modelica-like symbols for variable names:
Use conversion method to get generic variable names:
The Method option can be used to eliminate redundant equations:
Elimination can greatly reduce the number of equations:
Disable index reduction with the method option :
Solve equations using NDSolve:
Construct initial equations from an initial values list:
Solve the system:
Plot the found solution:
Solve equations using DSolve:
Get the equations and system variables:
Get initial values:
Combine the equations and replace all parameters with their default values:
Solve the system and plot the result:
Find an equilibrium point for a model:
Get the equations:
Set derivatives to zero and solve:
WSMFindEquilibrium gives the same result:
Use the differential equations to study the behavior of a damped pendulum:
Compare the solutions from WSMSimulate and NDSolve:
Solve using NDSolve:
Solve using WSMSimulate:
The default naming scheme can conflict with previously defined variables:
Set a variable a:
The differential equations use the same symbol a:
Avoid conflicts by using other naming: