-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathPartialTwoFramesDoubleSize.mo
More file actions
39 lines (37 loc) · 1.76 KB
/
PartialTwoFramesDoubleSize.mo
File metadata and controls
39 lines (37 loc) · 1.76 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
30
31
32
33
34
35
36
37
38
39
within Modelica.Mechanics.MultiBody.Interfaces;
partial model PartialTwoFramesDoubleSize
"Base model for components providing two frame connectors + outer world + assert to guarantee that the component is connected (default icon size is factor 2 larger as usual)"
Interfaces.Frame_a frame_a "Coordinate system a fixed to the component with one cut-force and cut-torque" annotation (Placement(transformation(extent={{-108,-8},{-92,8}})));
Interfaces.Frame_b frame_b "Coordinate system b fixed to the component with one cut-force and cut-torque" annotation (Placement(transformation(extent={{92,-8},{108,8}})));
protected
outer Modelica.Mechanics.MultiBody.World world;
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}},
initialScale=0.2), graphics={Text(
extent={{-117,-13},{-106,-23}},
textColor={128,128,128},
textString="a"), Text(
extent={{110,-15},{122,-25}},
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>
<p>
When dragging \"PartialTwoFrames\", the default size is a factor of two
larger as usual. This partial model is used by the Joint.Assemblies
joint aggregation models.
</p>
</html>"));
end PartialTwoFramesDoubleSize;