Professional Documents
Culture Documents
Declarative equations
Write the model equations as they are derived from
physics, instead of deriving the right hand side. Acausal modeling
Declarative languages just require
dP2
= F4 F5 ;
C dP2 1 F1 cp(T2 T1 ) the developer to define the problem
dt = F5 ;
dt C at a higher level and leaves the
F4 = F1 cp(T2 T1 );
solution to the simulation tool
Object-oriented modeling language Block-oriented modeling
(classes, instances, inheritence...) Procedural programmes require
Component models the developer to define the order
Easy to build libraries of reusable code. Modelica standard that calculations are to be done in
library contains 740 different models, ready to use or
modify.
1
Dymola Overview 2 Dymola Introduction 1
2
Dymola Introduction 8 Simulation in Dymola 1
Build model by editing text equations Build model by using existing components
Simple planar pendulum Simple DC motor with ideal gearbox and inertia
Two states Three states
= sin (1)
L
model SimplePendulum
constant Real g = 9.81;
parameter Real L = 1;
Real Theta(start = 0.1);
Real ThetaDot;
equation
ThetaDot = der(Theta);
der(ThetaDot) = - g/L*sin(Theta);
end SimplePendulum;