'model'model |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
Define specialized class model
model SlidingMass parameter Modelica.SIunits.Mass m=1; parameter Modelica.SIunits.Force f=1; Modelica.SIunits.Position s; Modelica.SIunits.Velocity v; Modelica.SIunits.Acceleration a; equation der(s) = v; der(v) = a; m*a = f; end SlidingMass;
[ 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 Language Specification for further details.
The keyword model is identical to the keyword class, i.e., no restrictions and no enhancements.