// Numbas version: finer_feedback_settings {"name": "12. Free Body Diagrams", "metadata": {"description": "

Homework set.  Identify student errors when drawing free body diagrams.

", "licence": "Creative Commons Attribution-ShareAlike 4.0 International"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", ""], "variable_overrides": [[], []], "questions": [{"name": "Free Body Diagram 1", "extensions": [], "custom_part_types": [], "resources": [["question-resources/fbd-0_PoiZpWl.png", "/srv/numbas/media/question-resources/fbd-0_PoiZpWl.png"], ["question-resources/fbd-1_xI6ep5I.png", "/srv/numbas/media/question-resources/fbd-1_xI6ep5I.png"], ["question-resources/fbd-2_AdzNdwg.png", "/srv/numbas/media/question-resources/fbd-2_AdzNdwg.png"], ["question-resources/fbd-4_kKlRsW2.png", "/srv/numbas/media/question-resources/fbd-4_kKlRsW2.png"], ["question-resources/fbd-5_zSYquRr.png", "/srv/numbas/media/question-resources/fbd-5_zSYquRr.png"], ["question-resources/fbd-3_frDmR9m.png", "/srv/numbas/media/question-resources/fbd-3_frDmR9m.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}], "tags": [], "metadata": {"description": "Identify errors in student-drawn free body diagrams of a rigid body.", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

Identify the errors (if any) in the student's free body diagram of the smooth bar $ACB$, pinned at $A$.

\n
\n\n\n\n\n\n\n\n
\n

{image('resources/question-resources/'+this['filename'])}

\n
\n
\n

", "advice": "

{mistakes} 

\n
    \n
  1. When isolating the body, don't draw the pin at $C$.
  2. \n
  3. The pin connection at $A$ should be represented by $A_x$ and $A_y$.
  4. \n
  5. The force at $C$ has a known direction, perpendicular to bar $ACB$.  It is best to draw it at that angle rather than breaking it into components
  6. \n
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"mistakes": {"name": "mistakes", "group": "Ungrouped variables", "definition": "this['errors']", "description": "

the student's mistakes to be found

", "templateType": "anything", "can_override": false}, "choices": {"name": "choices", "group": "Ungrouped variables", "definition": "[\n\"Body incorrectly isolated from supports\",\n\"Missing labels\",\n\"Incorrect labeling\",\n\"Missing arrowheads\",\n\"Incorrect represention at A\",\n\"Incorrect represention at B\",\n\"Incorrect represention at C\",\n\"Extra forces\",\n\"Missing weight\",\n\"Force with known direction shown as components\",\n\"No errors\"\n]\n\n", "description": "

list of possible mistakes -- checkbox labels

", "templateType": "anything", "can_override": false}, "fbds": {"name": "fbds", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n {\\n \\\"filename\\\": \\\"fbd-1_xI6ep5I.png\\\",\\n \\\"errors\\\": [\\n \\\"Body incorrectly isolated from supports\\\",\\n \\\"Incorrect represention at C\\\"\\n ]\\n },\\n {\\n \\\"filename\\\": \\\"fbd-2_AdzNdwg.png\\\",\\n \\\"errors\\\": [\\n \\\"Body incorrectly isolated from supports\\\"\\n ]\\n },\\n {\\n \\\"filename\\\": \\\"fbd-3_frDmR9m.png\\\",\\n \\\"errors\\\": [\\n \\\"Body incorrectly isolated from supports\\\",\\n \\\"Incorrect labeling\\\",\\n \\\"Missing labels\\\",\\n \\\"Missing arrowheads\\\",\\n \\\"Incorrect represention at A\\\",\\n \\\"Incorrect represention at C\\\"\\n ]\\n },\\n {\\n \\\"filename\\\": \\\"fbd-4_kKlRsW2.png\\\",\\n \\\"errors\\\": [\\n \\\"Incorrect represention at C\\\"\\n ]\\n },\\n {\\n \\\"filename\\\": \\\"fbd-5_zSYquRr.png\\\",\\n \\\"errors\\\": [\\n \\\"Incorrect represention at C\\\",\\n \\\"Force with known direction shown as components\\\"\\n ]\\n }\\n]\"))", "description": "

array containing problem image file name and cooresponding errors

", "templateType": "json", "can_override": false}, "this": {"name": "this", "group": "Ungrouped variables", "definition": "fbds[index]", "description": "

the current fbd and mistakes

", "templateType": "anything", "can_override": false}, "index": {"name": "index", "group": "Ungrouped variables", "definition": "random(0..length(fbds)-1)", "description": "

Selects the FBD to show.

\n

\n

", "templateType": "anything", "can_override": false}, "matrix": {"name": "matrix", "group": "Ungrouped variables", "definition": "map(if(indices(mistakes, d)=[],0,1),d,choices)", "description": "

the marking matrix.  0 if item should not be selected, 1 if it should

", "templateType": "anything", "can_override": true}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["fbds", "this", "mistakes", "choices", "index", "matrix"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": "img{width:600px;}"}, "parts": [{"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Check {length(mistakes)} {pluralise(length(mistakes),\"box\",\"boxes\")}.

", "minMarks": "0", "maxMarks": "10", "shuffleChoices": false, "displayType": "checkbox", "displayColumns": "2", "minAnswers": "length(mistakes)", "maxAnswers": "length(mistakes)", "warningType": "none", "showCellAnswerState": true, "markingMethod": "all-or-nothing", "choices": "choices", "matrix": "matrix"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "Free Body Diagram 2", "extensions": [], "custom_part_types": [], "resources": [["question-resources/fbd-0_mCuZXP7.png", "/srv/numbas/media/question-resources/fbd-0_mCuZXP7.png"], ["question-resources/fbd-1_A1jE3RW.png", "/srv/numbas/media/question-resources/fbd-1_A1jE3RW.png"], ["question-resources/fbd-2_AsVnLti.png", "/srv/numbas/media/question-resources/fbd-2_AsVnLti.png"], ["question-resources/fbd-3_R8yRyT1.png", "/srv/numbas/media/question-resources/fbd-3_R8yRyT1.png"], ["question-resources/fbd-4_t09hKMf.png", "/srv/numbas/media/question-resources/fbd-4_t09hKMf.png"], ["question-resources/fbd-5_R9qCm5N.png", "/srv/numbas/media/question-resources/fbd-5_R9qCm5N.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}], "tags": [], "metadata": {"description": "Identify errors in student-drawn free body diagrams of a rigid body.", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

Identify the errors (if any) in the student's free body diagram of post $CD$.  Contact at $C$ is frictionless.  Both pieces have non-negligible weight.

\n
\n\n\n\n\n\n\n\n
\n

{image('resources/question-resources/'+this['filename'])}

\n
\n
\n

", "advice": "

{mistakes} 

\n
    \n
  1. Because the contact at $C$ is frictionless the force acts perpendicular to bar $ACB$ and should be drawn acting in that direction, although it is not strictly an error to dry components $C_x$ and $C_y$ this tends to lead to errors.
  2. \n
  3. You can't push a rope, so the force of the cable on the post acts to the left.
  4. \n
  5. There is a fixed connection at $D$, so that should be represented by $D_x, D_y$ and a moment.
  6. \n
  7. Since there is a non-negliable weight, don't forget the weight vector pointing down at the center of gravity.
  8. \n
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"mistakes": {"name": "mistakes", "group": "Ungrouped variables", "definition": "this['errors']", "description": "

the mistakes to be identified

", "templateType": "anything", "can_override": false}, "choices": {"name": "choices", "group": "Ungrouped variables", "definition": "[\n\"Body incorrectly isolated from supports\",\n\"Missing labels\",\n\"Incorrect labeling\",\n\"Missing arrowheads\",\n\"Tension wrong direction\",\n\"Incorrect reaction at C\",\n\"Incorrect reaction at D\",\n\"Extra forces\",\n\"Missing weight\",\n\"Force with known direction shown as components\",\n\"No errors\"\n]\n\n", "description": "

list of possible mistakes -- checkbox labels

", "templateType": "anything", "can_override": false}, "fbds": {"name": "fbds", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n {\\n \\\"filename\\\": \\\"fbd-1_A1jE3RW.png\\\",\\n \\\"errors\\\": [\\n \\\"No errors\\\"\\n ]\\n },\\n {\\n \\\"filename\\\": \\\"fbd-2_AsVnLti.png\\\",\\n \\\"errors\\\": [\\n \\\"Incorrect reaction at D\\\",\\n \\\"Missing weight\\\"\\n ]\\n },\\n {\\n \\\"filename\\\": \\\"fbd-3_R8yRyT1.png\\\",\\n \\\"errors\\\": [\\n \\\"Tension wrong direction\\\",\\n \\\"Incorrect reaction at C\\\",\\n \\\"Missing weight\\\"\\n ]\\n },\\n {\\n \\\"filename\\\": \\\"fbd-4_t09hKMf.png\\\",\\n \\\"errors\\\": [\\n \\\"Tension wrong direction\\\",\\n \\\"Incorrect labeling\\\",\\n \\\"Incorrect reaction at D\\\",\\n \\\"Missing weight\\\",\\n \\\"Force with known direction shown as components\\\"\\n ]\\n },\\n {\\n \\\"filename\\\": \\\"fbd-5_R9qCm5N.png\\\",\\n \\\"errors\\\": [\\n \\\"Missing labels\\\",\\n \\\"Incorrect labeling\\\",\\n \\\"Incorrect reaction at C\\\",\\n \\\"Incorrect reaction at D\\\",\\n \\\"Missing weight\\\"\\n ]\\n }\\n]\"))", "description": "

array containing problem image file name and cooresponding errors

", "templateType": "json", "can_override": false}, "this": {"name": "this", "group": "Ungrouped variables", "definition": "fbds[index]", "description": "

the current fbd and mistakes

", "templateType": "anything", "can_override": false}, "index": {"name": "index", "group": "Ungrouped variables", "definition": "random(0..length(fbds)-1)", "description": "

selects the fbd for the question

\n

\n

", "templateType": "anything", "can_override": false}, "matrix": {"name": "matrix", "group": "Ungrouped variables", "definition": "map(if(indices(mistakes, d)=[],0,1),d,choices)", "description": "

the marking matrix.  For each checkbox, 0 if not a mistake, 1 if a mistake.

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["fbds", "this", "mistakes", "choices", "index", "matrix"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": "img{width:600px;}"}, "parts": [{"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "mark:\n assert(marks>0,correct()); // any answer is correct when 0 marks are available\n assert(numTicks>0,\n warn(translate(\"part.marking.nothing entered\"));\n fail(translate(\"part.marking.nothing entered\"))\n );\n apply(same_ticks)\n\nshould_be_ticked (A chocie should be ticked if it's awarded ap ositive number of marks):\n map(map(y>0,y,row),row,settings[\"matrix\"])\n\nsame_ticks (Did the student tick the same choices as the expected answer?):\n correctif(studentanswer=should_be_ticked)\n\n", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Check {length(mistakes)} {pluralise(length(mistakes),\"box\",\"boxes\")}.

", "minMarks": "0", "maxMarks": "10", "shuffleChoices": false, "displayType": "checkbox", "displayColumns": "2", "minAnswers": "length(mistakes)", "maxAnswers": "length(mistakes)", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": "choices", "matrix": "matrix"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": false, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": [], "enterreviewmodeimmediately": true, "showexpectedanswerswhen": "inreview", "showpartfeedbackmessageswhen": "always", "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showadvicewhen": "inreview"}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "type": "exam", "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}], "extensions": [], "custom_part_types": [], "resources": [["question-resources/fbd-0_PoiZpWl.png", "/srv/numbas/media/question-resources/fbd-0_PoiZpWl.png"], ["question-resources/fbd-1_xI6ep5I.png", "/srv/numbas/media/question-resources/fbd-1_xI6ep5I.png"], ["question-resources/fbd-2_AdzNdwg.png", "/srv/numbas/media/question-resources/fbd-2_AdzNdwg.png"], ["question-resources/fbd-4_kKlRsW2.png", "/srv/numbas/media/question-resources/fbd-4_kKlRsW2.png"], ["question-resources/fbd-5_zSYquRr.png", "/srv/numbas/media/question-resources/fbd-5_zSYquRr.png"], ["question-resources/fbd-3_frDmR9m.png", "/srv/numbas/media/question-resources/fbd-3_frDmR9m.png"], ["question-resources/fbd-0_mCuZXP7.png", "/srv/numbas/media/question-resources/fbd-0_mCuZXP7.png"], ["question-resources/fbd-1_A1jE3RW.png", "/srv/numbas/media/question-resources/fbd-1_A1jE3RW.png"], ["question-resources/fbd-2_AsVnLti.png", "/srv/numbas/media/question-resources/fbd-2_AsVnLti.png"], ["question-resources/fbd-3_R8yRyT1.png", "/srv/numbas/media/question-resources/fbd-3_R8yRyT1.png"], ["question-resources/fbd-4_t09hKMf.png", "/srv/numbas/media/question-resources/fbd-4_t09hKMf.png"], ["question-resources/fbd-5_R9qCm5N.png", "/srv/numbas/media/question-resources/fbd-5_R9qCm5N.png"]]}