FBD: Model Answer for System Sketch - mkraska/meclib GitHub Wiki
We assume that you have created the FBD: System Sketch of the FBD Example Question.
Now we provide the model answer for the free body diagram, so that the correct sketch will be produced in the preview upon [Fill in the correct responses]
How to Obtain the Model Answer?
- Remove the
hidden
attributes from the paragraphs with the input blocks in the Question text. - (optional) Set the width of the input fields to 50
- Save and continue editing, Preview
- Edit the sketch to produce a correct FBD (there are usually multiple correct variants, differing e.g. by assumed orientation of the reactions),
- Copy the contents of the
objects
input field (the first one). - Paste to the Question variables just below the definitions of
init
Question Variables
- assign the copied text to
tansdata
- convert to JSON and assign to
tans
- Also copy the contents of the second input field and assign it to
tansnames
tansdata: [
["grid","","",-2,5,-4,4,40],
["bar","1",[0,0],[1,-2],"hide"],
["beam","white","gray80",[0,0],[3,0],0.15,"show"],
[ "crosshair","", [0, 0], [0,0], [1,1], [1,1], "grid" ],
["dim","a",[3,2],[4,2],0],
["fix12","C",[1,-2],0,"show"],
["fix13","B",[3,0],180,"hide"],
["node","A",[0,0]],
["q","","q_0",[0,0.2],[3,0.2],0,1,0,"hide"],
["forceGen","F_2",[-1,3]],
["momentGen","M_1",[1,3]],
["force","F_1",[0.2,-0.4],[0.7800000000000001,-1.5600000000000003],10,"active"],
["moment","M_B",[3,0],[2.7,-0.5],[3.5000000000000018,-0.5],"active"],
["force","B",[3,0],[4,0],10,"active"],
["force","3/2 q_0 a",[2,1.6],[2,0.5],10,"active"]
];
tans: stackjson_stringify(tansdata);
tansnames: [0,[12],"show",[0,0],"a","show",[13,14],"A",[15],0,0,F_1,M_B,B,3/2*q_0*a];
objects
Input - Set Model answer to
tans
Check
- Save and continue editing, Preview
- Fill in correct responses