Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Peter Fritzson
class x {
public
int a;
class x {float b;
public
int fu nc (i nt a ,int b);
int a; Asa as ad
class x {
float b;
public Asda a d
int fu ncAsd(i ad
nt acc
,int b);
int a;
class x { Asa as ad
float b; Aac sd scfcc c a
public Asda a d
int fu nc (i nt aAscccv
,int b); ca
int a; Asd ad cc
Asa as ad Ascc c ac
float b; Aac sd scfcc c a
Asda a d }
int fu nc (i nt aAscccv
,int b); ca
Asd ad cc
Asa as ad Ascc c ac
Aac sd scfcc c a
Asda a d }
Ascccv ca
Asd ad cc
Ascc c ac
Aac sd scfcc c a
}
Ascccv ca
Ascc c ac
}
OpenUP/Basic Capacity
CapacitySub-
Sub- UML-Modelica
OpenUP/Basic UML-Modelica
Process
ProcessAreas
Areas Plug-in OpenModelica
OpenModelica
Plug-in
MDT
MDT
ECLIPSE Process Framework (EPF)
Composer Specific components
Stored Knowledge
Model knowledge is stored in books and human
minds which computers cannot access
Multi-Domain
Modelica Class Libraries for Reuse, Visual View
R= C= L=
body= bodyBar=
bar=
Info G Info
shaft3DS= shaft3D= shaftS= inertial
DC=
Vs
S S
Is
S S
shaft= S
gear2= revS= prismS= screw S=
S
E screw =
moveS move
torque x C
C barC2=
fric=
S
state
i
axis6
qddRef cut joint
qdRef
1
qRef
1
k1 r3Control
r3Motor r3Drive1 tn
i 1
S S
qd axis5
qdRef Kd
S
0.03 rel
Jmotor=J joint=0
spring=c axis4
S
qRef pSum Kv sum w Sum rate2 rate3 iRef gear=i
fric=Rv0
+1 b(s) 340.8
0.3
- +1 - a(s) S
axis3
q
qd
Rp2=50
Ra=250 La=(250/(2*D*wm))
Rd1=100
C=0.004*D/w m Rp1=200 axis1
Rd2=100
Ri=10
- -
-
+ +
diff + pow er
OpI
Vs
Rd4=100
Srel = n*transpose(n)+(identity(3)- n*transpose(n))*cos(q)- emf
skew(n)*sin(q); y
Rd3=100
x
g3
wrela = n*qd; inertial
zrela = n*qdd; g1
Sb = Sa*transpose(Srel);
hall2
Courtesy MathCore
Engineering AB
model DCMotor
Resistor R(R=100);
Inductor L(L=100);
VsourceDC DC(f=10);
Ground G;
ElectroMechanicalElement EM(k=10,J=10, b=2);
Inertia load;
equation R L
connect(DC.p,R.n);
EM
connect(R.p,L.n); DC
connect(L.p, EM.n);
connect(EM.p, DC.n); load
connect(DC.n,G.p);
connect(EM.flange,load.flange);
G
end DCMotor
OpenModelica
Interactive
Emacs session handler Textual
Editor/Browser Model Editor
DrModelica
OMNoteBook Execution Modelica
Model Editor Compiler
Modelica
Debugger
Parse
Client: Graphic
Model Editor
Server: Main Program
Corba
Including Compiler,
Interpreter, etc. Client: OMShell
Interactive
Session Handler
SCode Interactive
Client: Eclipse
Untyped API
Plugin MDT
Inst
Typed Checked Command API
system
plot
Ceval
etc.
Code Assistance on
function calling.
SysML
Extension of UML 2.0
Visual modeling language for system engineering
Unifies several modeling languages used by system
engineers
Adopted by OMG in May 2006
Goal:
Support specification, analysis, design, verification and validation of
broad range of systems that include hardware, software, data,
personnel, procedures and facilities
Diagram interchange capability included
Equations Diagram
Example 1
Requirements Diagram
Introduced by SysML
Supports requirements specification
Graphical, tabular or tree formats
A Requirement can appear on other diagrams
Requirement relationships:
Containment
Derive
Satisfy
Verify
Refine
Trace
Other Diagrams
Reused from SysML
Structure
Parametric diagram
Behavior
Activity diagram
Sequence diagram
State Machine diagram
Use Case diagram
Future work
ModelicaML diagrams implementation
Code generation/synchronization from ModelicaML models
Modelica code/library to ModelicaML model