Пример #1
0
link_2 = chrono.ChLinkMateGeneric()
link_2.SetConstrainedCoords(False, True, True, False, False, False)
cA = chrono.ChVectorD(0, -0.0296181804404151, 0)
cB = chrono.ChVectorD(0, -0.03, 0)
dA = chrono.ChVectorD(0, -1, 0)
dB = chrono.ChVectorD(0, 1, 0)
link_2.Initialize(body_1, body_4, False, cA, cB, dA, dB)
link_2.SetName("Concentrico1")
exported_items.append(link_2)

# Mate constraint: Distanza2 [MateDistanceDim]
#   Entity 0: C::E name: body_1 , SW name: escape_wheel^escapement-1 ,  SW ref.type:2
#   Entity 1: C::E name: body_4 , SW name: truss^escapement-1 ,  SW ref.type:2

link_3 = chrono.ChLinkMateXdistance()
cA = chrono.ChVectorD(0, 0.000381819559584939, 0)
cB = chrono.ChVectorD(0.03, -0.0256181804404151, 0.0274036523869519)
dA = chrono.ChVectorD(0, -1, 0)
dB = chrono.ChVectorD(0, 1, -1.05833389757388e-16)
link_3.Initialize(body_1, body_4, False, cA, cB, dB)
link_3.SetDistance(0.026)
link_3.SetName("Distanza2")
exported_items.append(link_3)

link_4 = chrono.ChLinkMateParallel()
cA = chrono.ChVectorD(0, 0.000381819559584939, 0)
dA = chrono.ChVectorD(0, -1, 0)
cB = chrono.ChVectorD(0.03, -0.0256181804404151, 0.0274036523869519)
dB = chrono.ChVectorD(0, 1, -1.05833389757388e-16)
link_4.SetFlipped(True)
Пример #2
0
link_2 = chrono.ChLinkMateGeneric()
link_2.SetConstrainedCoords(False, True, True, False, False, False)
cA = chrono.ChVectorD(0, 0.00211060633115506, 0)
cB = chrono.ChVectorD(1.12826897060512e-18, 0.1875, -1.17336522714648e-17)
dA = chrono.ChVectorD(0, 1, 0)
dB = chrono.ChVectorD(6.01743450989396e-18, 1, -6.25794787811454e-17)
link_2.Initialize(body_9, body_4, False, cA, cB, dA, dB)
link_2.SetName("Concentric1")
exported_items.append(link_2)

# Mate constraint: Coincident1 [MateCoincident] type:0 align:1 flip:False
#   Entity 0: C::E name: body_9 , SW name: Racer3_p01-3 ,  SW ref.type:2 (2)
#   Entity 1: C::E name: body_4 , SW name: Racer3_p02-1 ,  SW ref.type:2 (2)

link_3 = chrono.ChLinkMateXdistance()
cA = chrono.ChVectorD(0, 0.242, 0)
cB = chrono.ChVectorD(-1.9438388615202e-18, 0.242, -0.06125)
dA = chrono.ChVectorD(0, 1, 0)
dB = chrono.ChVectorD(-6.01743450989396e-18, -1, 6.25794787811454e-17)
link_3.Initialize(body_9, body_4, False, cA, cB, dB)
link_3.SetDistance(0)
link_3.SetName("Coincident1")
exported_items.append(link_3)

link_4 = chrono.ChLinkMateParallel()
cA = chrono.ChVectorD(0, 0.242, 0)
dA = chrono.ChVectorD(0, 1, 0)
cB = chrono.ChVectorD(-1.9438388615202e-18, 0.242, -0.06125)
dB = chrono.ChVectorD(-6.01743450989396e-18, -1, 6.25794787811454e-17)
link_4.SetFlipped(True)