LIBRARY
examples.BodyBoxPend
Usage
MultibodyComponents.examples.BodyBoxPend()
Behavior
Source
dyad
example component BodyBoxPend
world = MultibodyComponents.World() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 330, "y1": 450, "x2": 430, "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.BodyBox(r = [1, 0, 0], width = 0.1, height = 0.1, density = 7700) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 560, "y1": 450, "x2": 660, "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 BodyBoxPend
world = MultibodyComponents.World() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 330, "y1": 450, "x2": 430, "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.BodyBox(r = [1, 0, 0], width = 0.1, height = 0.1, density = 7700) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 560, "y1": 450, "x2": 660, "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