Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Modelica
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Characteristics== While Modelica resembles [[object-oriented]] [[programming languages]], such as [[C++]] or [[Java (programming language)|Java]], it differs in two important respects. First, Modelica is a [[modeling language]] rather than a conventional ''programming'' language. Modelica classes are not compiled in the usual sense, but they are translated into objects which are then exercised by a simulation engine. The simulation engine is not specified by the language, although certain required capabilities are outlined. Second, although classes may contain [[algorithm]]ic components similar to statements or blocks in programming languages, their primary content is a set of ''[[equations]]''. In contrast to a typical assignment statement, such as : <syntaxhighlight inline lang=modelica>x := 2 + y;</syntaxhighlight> where the left-hand side of the statement is assigned a value calculated from the expression on the right-hand side, an equation may have expressions on both its right- and left-hand sides, for example, : <syntaxhighlight inline lang=modelica>x + y = 3 * z;</syntaxhighlight> Equations do not describe assignment but ''equality''. In Modelica terms, equations have no pre-defined ''[[Causal system|causality]]''. The simulation engine may (and usually must) manipulate the equations symbolically to determine their order of execution and which components in the equation are inputs and which are outputs.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)