mec2 Loads

Loads #

Force #

Example: #

{ "gravity": true, "nodes": [ { "id": "A0", "x": 100, "y": 120, "base": true}, { "id": "A", "x": 200, "y": 120 } ], "constraints": [ { "id": "a", "p1": "A0", "p2": "A", "len": {"type": "const"}} ] , "loads":[{ "id":"F1","type":"force","p":"A", "value":30,"w0":1.5708,"mode":"push" }] }
first

Spring #

Example: #

{ "nodes": [ { "id": "A0","x":200,"y": 200, "base": true }, { "id": "B0","x":100,"y": 100, "base": true }, { "id": "A","x": 200, "y": 100 } ], "constraints": [ { "id": "b","p1": "B0","p2": "A", "len": { "type": "const" } } ], "loads": [{ "id": "a", "type" :"spring", "p1": "A0", "p2": "A", "k": 20 }] }
first

Example: #

{ "gravity":true, "nodes": [ { "id": "A0", "x": 175, "y": 50,"base": true }, { "id": "B0", "x": 175, "y": 100,"base": true }, { "id": "A", "x": 225, "y": 50 }, { "id": "B", "x": 325, "y": 50 } ], "constraints": [ { "id": "a", "p1": "A0", "p2": "A", "len":{"type":"const"}}, { "id": "b", "p1": "A", "p2": "B", "len": {"type": "const" }, "ori": { "type": "const", "ref": "a" } } ], "loads": [ { "id": "s", "type": "spring", "p1": "B0","p2": "A","k": 78.695, "len0": 0 } ] }
first