WOLFRAM SYSTEM MODELER

'model'

model

Wolfram Language

In[1]:=
SystemModel["ModelicaReference.Classes.'model'"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Define specialized class model

Examples

model SlidingMass
  parameter Modelica.Units.SI.Mass m=1;
  parameter Modelica.Units.SI.Force f=1;
  Modelica.Units.SI.Position s;
  Modelica.Units.SI.Velocity v;
  Modelica.Units.SI.Acceleration a;
equation
  der(s) = v;
  der(v) = a;
  m*a = f;
end SlidingMass;

Syntax

   [ encapsulated ][ partial] model
   IDENT class_specifier

class_specifier :
   string_comment composition end IDENT
   | "=" base_prefix name [ array_subscripts ] [ class_modification ] comment
   | "=" enumeration "(" ( [enum_list] | ":" ) ")" comment

See Modelica Grammar for further details.

Description

The keyword model is identical to the keyword class, i.e., no restrictions and no enhancements.