-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathPartialTwoFrames.mo
More file actions
29 lines (28 loc) · 1.11 KB
/
PartialTwoFrames.mo
File metadata and controls
29 lines (28 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
within Modelica.Mechanics.MultiBody.Interfaces;
partial model PartialTwoFrames
"Base model for components providing two frame connectors + outer world + assert to guarantee that the component is connected"
extends TwoFrames;
equation
assert(cardinality(frame_a) > 0,
"Connector frame_a of component is not connected");
assert(cardinality(frame_b) > 0,
"Connector frame_b of component is not connected");
annotation (
Icon(coordinateSystem(
preserveAspectRatio=true,
extent={{-100,-100},{100,100}}), graphics={Text(
extent={{-136,-25},{-100,-50}},
textColor={128,128,128},
textString="a"), Text(
extent={{100,-25},{136,-50}},
textColor={128,128,128},
textString="b")}),
Documentation(info="<html>
<p>
This partial model provides two frame connectors, access to the world
object and an assert to check that both frame connectors are connected.
Therefore, inherit from this partial model if the two frame connectors are
needed and if the two frame connectors should be connected for a correct model.
</p>
</html>"));
end PartialTwoFrames;