Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Modelica

< >

Modelica is a programming language created in 1997.

#445on PLDB 27Years Old 1kRepos
Homepage · Wikipedia

Modelica is an object-oriented, declarative, multi-domain modeling language for component-oriented modeling of complex systems, e.g., systems containing mechanical, electrical, electronic, hydraulic, thermal, control, electric power or process-oriented subcomponents. The free Modelica language is developed by the non-profit Modelica Association. The Modelica Association also develops the free Modelica Standard Library that contains about 1360 generic model components and 1280 functions in various domains, as of version 3.2.1.. Read more on Wikipedia...


Example from Linguist:
within ModelicaByExample; package PackageExamples "Examples of using packages" end PackageExamples;
Example from Wikipedia:
model Circuit Capacitor C1(C=1e-4) "A Capacitor instance from the model above"; Capacitor C2(C=1e-5) "A Capacitor instance from the model above"; ... equation connect(C1.pin_p, C2.pin_n); ... end Circuit;

Language features

Feature Supported Example Token
Integers ✓ // \d+
Floats ✓ // \d+(\.?\d*[eE][-+]?\d+|\.\d*)
Comments ✓ // A comment
Units of Measure ✓ type SpecificHeatCapacity = Real ( final quantity="SpecificHeatCapacity", final unit="J/(kg.K)" );
Line Comments ✓ // A comment //
Semantic Indentation X
- Build the next great programming language · Add · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements · Part of the World Wide Scroll