LIBRARY
examples.Pend
Usage
MultibodyComponents.examples.Pend()
Behavior
Source
dyad
example component Pend
world = MultibodyComponents.World() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 320, "y1": 450, "x2": 420, "y2": 550, "rot": 0}
},
"tags": []
}
}
body = MultibodyComponents.Body(r_cm = [1, 0, 0]) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 580, "y1": 450, "x2": 680, "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": []
}
}
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 Pend
world = MultibodyComponents.World() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 320, "y1": 450, "x2": 420, "y2": 550, "rot": 0}
},
"tags": []
}
}
body = MultibodyComponents.Body(r_cm = [1, 0, 0]) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 580, "y1": 450, "x2": 680, "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": []
}
}
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