returns a list of loaded system models.
SystemModels[patt]
returns the models matching the string pattern patt.
SystemModels[patt,"spec"]
only returns specialized models of the kind "spec".
SystemModels
returns a list of loaded system models.
SystemModels[patt]
returns the models matching the string pattern patt.
SystemModels[patt,"spec"]
only returns specialized models of the kind "spec".
Details
- SystemModels[patt] allows the same string patterns as StringMatchQ.
- With SystemModels[patt,"spec"], only models with "spec" are returned:
-
"class" general class "model" model class "block" input/output block "connector" connector class "function" function definition "package" collection of classes and constants "record" collection class "type" type specification
Examples
open all close allBasic Examples (3)
Get all models currently available:
SystemModels[]//ShallowShow all examples in the Modelica rotational mechanics library:
SystemModels["Modelica.Mechanics.Rotational.Examples.*"]Get only a specific type of model:
SystemModels["Modelica.Electrical.Analog.*", "connector"]Scope (1)
Use a StringExpression to get Modelica standard library examples containing q:
SystemModels["Modelica." ~~ __ ~~ ".Examples." ~~ __ ~~ "q" ~~ __]Applications (1)
Get the number of each model type in the Modelica Standard Library:
specs = {"class", "record", "type", "model", "block", "package", "function", "connector"};nrs = Map[Length[SystemModels["Modelica.*", #]]&, specs]PieChart[nrs, ChartLabels -> specs]Do the same for "IntroductoryExamples" and "DocumentationExamples":
Table[PieChart[Map[Length[SystemModels[lib <> ".*", #]]&, specs], ChartLabels -> specs, PlotLabel -> lib], {lib, {"IntroductoryExamples", "DocumentationExamples"}}]Properties & Relations (1)
SystemModelExamples returns only models that can be simulated:
pattern = "Modelica.Mechanics.Rotational.*";simulationModels = SystemModelExamples["Models", pattern]SystemModels returns all models, which is usually a much larger list:
{Length[SystemModels[pattern]], Length[simulationModels]}See Also
Related Guides
Related Links
History
Text
Wolfram Research (2018), SystemModels, Wolfram Language function, https://reference.wolfram.com/language/ref/SystemModels.html.
CMS
Wolfram Language. 2018. "SystemModels." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SystemModels.html.
APA
Wolfram Language. (2018). SystemModels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SystemModels.html
BibTeX
@misc{reference.wolfram_2026_systemmodels, author="Wolfram Research", title="{SystemModels}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/SystemModels.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_systemmodels, organization={Wolfram Research}, title={SystemModels}, year={2018}, url={https://reference.wolfram.com/language/ref/SystemModels.html}, note=[Accessed: 12-June-2026]}