Ticket #2693: FrontSuspension.mo

File FrontSuspension.mo, 4.1 KB (added by anonymous, 11 years ago)
Line 
1within Project1;
2model FrontSuspension "Front suspension"
3 extends VDLMotorsports.Chassis.Suspensions.Templates.DWPS(
4 redeclare SuspensionMechanism leftLinkage,
5 redeclare SuspensionMechanism rightLinkage,
6 redeclare SpringDamperARB_4
7 rockerArrangement(fAntiRoll_1=geometry.fAntiRoll_1,
8 r0CS_1=geometry.r0CS_1,
9 r0RS_1=geometry.r0RS_1,
10 r0CD_1=geometry.r0CD_1,
11 r0RD_1=geometry.r0RD_1,
12 r0CS_2=geometry.r0CS_2,
13 r0RS_2=geometry.r0RS_2,
14 r0CD_2=geometry.r0CD_2,
15 r0RD_2=geometry.r0RD_2,
16 r0LP_1=geometry.r0LP_1,
17 r0ARB_1=geometry.r0ARB_1,
18 r0RP_2=geometry.r0RP_2,
19 r0LP_2=geometry.r0LP_2,
20 r0ARB_2=geometry.r0ARB_2,
21 r0RP_1=geometry.r0RP_1,
22 manualBranchSelection=geometry.antiroll),
23 redeclare VDLMotorsports.Chassis.Suspensions.Steering.SimpleRack steering(
24 iPR=geometry.iPR,
25 r0QZ=geometry.r0QZ,
26 r0Q=geometry.r0Q),
27 redeclare Modelon.Mechanics.Rotational.None leftTorsionBar,
28 redeclare Modelon.Mechanics.Rotational.None rightTorsionBar,
29 redeclare replaceable F1_2009 geometry(nAdjust_2_1={0,-1,0})
30 constrainedby Project1.F1_2009);
31
32 Modelon.Mechanics.Translational.LinearSpring linearSpring(c=100000)
33 annotation (Placement(transformation(extent={{-48,56},{-28,76}})));
34 Modelon.Mechanics.Translational.LinearSpring linearSpring1(c=100000)
35 annotation (Placement(transformation(extent={{-40,-74},{-20,-54}})));
36 Modelon.Mechanics.Translational.LinearDamper linearDamper(d=10000)
37 annotation (Placement(transformation(
38 extent={{10,-10},{-10,10}},
39 rotation=90,
40 origin={-58,18})));
41 Modelon.Mechanics.Translational.LinearDamper linearDamper1(d=10000)
42 annotation (Placement(transformation(
43 extent={{-10,-10},{10,10}},
44 rotation=90,
45 origin={-58,-18})));
46 Modelon.Mechanics.Rotational.LinearSpring linearSpring2(c=1000) annotation (
47 Placement(transformation(
48 extent={{-10,-10},{10,10}},
49 rotation=90,
50 origin={18,0})));
51equation
52 connect(linearDamper1.flange_a, rockerArrangement.bearing1) annotation (Line(
53 points={{-58,-28},{-42,-28},{-42,-10.1333},{-26,-10.1333}},
54 color={0,127,0},
55 smooth=Smooth.None));
56 connect(linearDamper1.flange_b, rockerArrangement.axis1) annotation (Line(
57 points={{-58,-8},{-42,-8},{-42,-6.13333},{-26,-6.13333}},
58 color={0,127,0},
59 smooth=Smooth.None));
60 connect(linearDamper.flange_b, rockerArrangement.axis3) annotation (Line(
61 points={{-58,8},{-42,8},{-42,6.66667},{-26,6.66667}},
62 color={0,127,0},
63 smooth=Smooth.None));
64 connect(linearDamper.flange_a, rockerArrangement.bearing3) annotation (Line(
65 points={{-58,28},{-42,28},{-42,10.4},{-26,10.4}},
66 color={0,127,0},
67 smooth=Smooth.None));
68 connect(linearSpring.flange_a, rockerArrangement.bearing4) annotation (Line(
69 points={{-48,66},{-36,66},{-36,20},{-21.84,20}},
70 color={0,127,0},
71 smooth=Smooth.None));
72 connect(linearSpring.flange_b, rockerArrangement.axis4) annotation (Line(
73 points={{-28,66},{-20,66},{-20,28},{-16.9,28},{-16.9,20}},
74 color={0,127,0},
75 smooth=Smooth.None));
76 connect(linearSpring2.flange_b, rockerArrangement.axis5) annotation (Line(
77 points={{18,10},{10,10},{10,-3.2},{0,-3.2}},
78 color={0,0,0},
79 smooth=Smooth.None));
80 connect(linearSpring2.flange_a, rockerArrangement.bearing5) annotation (Line(
81 points={{18,-10},{10,-10},{10,-9.6},{0,-9.6}},
82 color={0,0,0},
83 smooth=Smooth.None));
84 connect(linearSpring1.flange_a, rockerArrangement.bearing2) annotation (Line(
85 points={{-40,-64},{-32,-64},{-32,-20},{-21.32,-20}},
86 color={0,127,0},
87 smooth=Smooth.None));
88 connect(linearSpring1.flange_b, rockerArrangement.axis2) annotation (Line(
89 points={{-20,-64},{-18,-64},{-18,-30},{-16.38,-30},{-16.38,-20}},
90 color={0,127,0},
91 smooth=Smooth.None));
92 annotation (Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-140,
93 -140},{100,140}}), graphics));
94end FrontSuspension;