OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Import data from a simulation:

sim=Import["ExampleData/OneMass.sme",{"SME","SystemModelSimulationData"}]

Plot some of the variables:

SystemModelPlot[sim,{"dTCoolant","dTMass","dTtoPipe"}]

OpenersExampleSection1(Spacer1)Scope  (2)

Imported data has the same properties as (RefLink[SystemModelSimulationData, paclet:ref/SystemModelSimulationData]):

sim=Import["ExampleData/OneMass.sme",{"SME","SystemModelSimulationData"}];

sim["Properties"]

Parameters, variables and sensitivities that have been saved in the simulation are available:

sim=Import["ExampleData/SimpleCooling.sme",{"SME","SystemModelSimulationData"}];

sim["SensitivityNames"]

The parameter value for "heatFlow.k" has been changed in the simulation:

sim["Model"][{"ParameterValues","heatFlow.k"}]

sim[{"ParameterValues","heatFlow.k"}]

OpenersExampleSection2(Spacer1)Properties & Relations  (1)

Use (StringTypeLink["MO", paclet:ref/format/MO]) to import Modelica models and make them available in the Wolfram Language:

model=Import["ExampleData/ExampleModel.mo","MO"];

model["SystemEquations"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[SystemModel, paclet:ref/SystemModel])  ▪  (RefLink[SystemModelSimulate, paclet:ref/SystemModelSimulate])}, {Related Formats:  (RefLink[SMA, paclet:ref/format/SMA])  ▪  (RefLink[MO, paclet:ref/format/MO])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[System Modeling Connectivity, paclet:guide/SystemModelingConnectivity])}, {▪(RefLinkPlain[System Modeling Overview, paclet:guide/SystemModelingOverview])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(Spacer1)▪(WebLink[(Spacer1)Wolfram SystemModeler Documentation, http://reference.wolfram.com/system-modeler/])}})}})