LIBRARY
examples.BodyCylinderPend
Usage
MultibodyComponents.examples.BodyCylinderPend()
Behavior
Source
dyad
example component BodyCylinderPend
world = MultibodyComponents.World() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 320, "y1": 450, "x2": 420, "y2": 550, "rot": 0}
},
"tags": []
}
}
joint = MultibodyComponents.Revolute(phi(initial = pi / 3), w(initial = 0)) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 450, "y1": 450, "x2": 550, "y2": 550, "rot": 0}
},
"tags": []
}
}
body = MultibodyComponents.BodyCylinder(r = [1, 0, 0], diameter = 0.05, density = 7700) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 570, "y1": 450, "x2": 670, "y2": 550, "rot": 0}
},
"tags": []
}
}
relations
connect(world.frame_b, joint.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
connect(joint.frame_b, body.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
endFlattened Source
dyad
example component BodyCylinderPend
world = MultibodyComponents.World() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 320, "y1": 450, "x2": 420, "y2": 550, "rot": 0}
},
"tags": []
}
}
joint = MultibodyComponents.Revolute(phi(initial = pi / 3), w(initial = 0)) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 450, "y1": 450, "x2": 550, "y2": 550, "rot": 0}
},
"tags": []
}
}
body = MultibodyComponents.BodyCylinder(r = [1, 0, 0], diameter = 0.05, density = 7700) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 570, "y1": 450, "x2": 670, "y2": 550, "rot": 0}
},
"tags": []
}
}
relations
connect(world.frame_b, joint.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
connect(joint.frame_b, body.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
metadata {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses