// Numbas version: exam_results_page_options {"name": "A4: Carnot cycle efficiency", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "preamble": {"css": "", "js": ""}, "statement": "
{draw_block()}
\nA Carnot engine is in action. The temperature of its hot reservoir is {th} K, and the temperature of its cold reservoir is {tc} K
", "advice": "", "rulesets": {}, "ungrouped_variables": ["v1", "v2", "v3", "v4", "th", "tc", "n", "r", "p1", "p2", "p3", "p4", "hcr", "n3", "efficiency", "w_12", "w_34", "w_23", "w_41", "work", "q_h"], "extensions": ["jsxgraph"], "variables": {"v4": {"name": "v4", "description": "", "group": "Ungrouped variables", "definition": "(th*(v1^(hcr-1))/tc)^(1/(hcr-1))", "templateType": "anything"}, "w_23": {"name": "w_23", "description": "", "group": "Ungrouped variables", "definition": "((p3*v3)-(p2*v2))/(1-hcr)", "templateType": "anything"}, "w_12": {"name": "w_12", "description": "", "group": "Ungrouped variables", "definition": "n*R*Th*ln(v2/v1)", "templateType": "anything"}, "v2": {"name": "v2", "description": "v1+random(0.5..4#0.1)
", "group": "Ungrouped variables", "definition": "v1+random(4.5..8#0.1)", "templateType": "anything"}, "w_34": {"name": "w_34", "description": "", "group": "Ungrouped variables", "definition": "n*R*Tc*ln(v4/v3)", "templateType": "anything"}, "work": {"name": "work", "description": "", "group": "Ungrouped variables", "definition": "siground(w_12+w_23+w_34+w_41,3)", "templateType": "anything"}, "th": {"name": "th", "description": "random(600..950)
", "group": "Ungrouped variables", "definition": "random(1300..1950)", "templateType": "anything"}, "r": {"name": "r", "description": "", "group": "Ungrouped variables", "definition": "0.082", "templateType": "anything"}, "p4": {"name": "p4", "description": "", "group": "Ungrouped variables", "definition": "n*r*tc/v4", "templateType": "anything"}, "v3": {"name": "v3", "description": "(Th V2(γ - 1)/Tc )1/(γ - 1)= V3
", "group": "Ungrouped variables", "definition": "(th*(v2^(hcr-1))/tc)^(1/(hcr-1))", "templateType": "anything"}, "n3": {"name": "n3", "description": "test - should match n
", "group": "Ungrouped variables", "definition": "p3*v3/(r*tc)", "templateType": "anything"}, "p2": {"name": "p2", "description": "", "group": "Ungrouped variables", "definition": "n*r*th/v2", "templateType": "anything"}, "q_h": {"name": "q_h", "description": "", "group": "Ungrouped variables", "definition": "work/(efficiency/100)", "templateType": "anything"}, "n": {"name": "n", "description": "", "group": "Ungrouped variables", "definition": "random(0.1..5.0#0.1)", "templateType": "anything"}, "v1": {"name": "v1", "description": "", "group": "Ungrouped variables", "definition": "random(8.5..15.0#0.1)", "templateType": "anything"}, "tc": {"name": "tc", "description": "th-random(50..300)
", "group": "Ungrouped variables", "definition": "th-random(400..600)", "templateType": "anything"}, "w_41": {"name": "w_41", "description": "", "group": "Ungrouped variables", "definition": "((p1*v1)-(p4*v4))/(1-hcr)", "templateType": "anything"}, "efficiency": {"name": "efficiency", "description": "", "group": "Ungrouped variables", "definition": "(1-(tc/th))*100", "templateType": "anything"}, "p1": {"name": "p1", "description": "", "group": "Ungrouped variables", "definition": "n*r*th/v1", "templateType": "anything"}, "p3": {"name": "p3", "description": "P2V2hcr = P3V3hcr
Calculate the efficiency of the carnot engine, in percent to three significant figures.
", "variableReplacementStrategy": "originalfirst", "maxValue": "siground(efficiency,3)+siground(abs(efficiency/100),3)", "correctAnswerStyle": "plain", "mustBeReduced": false, "correctAnswerFraction": false, "precisionMessage": "You have not given your answer to the correct precision.", "mustBeReducedPC": 0, "showCorrectAnswer": false, "precisionType": "sigfig", "showPrecisionHint": false, "unitTests": [], "precisionPartialCredit": "50", "allowFractions": false, "minValue": "siground(efficiency,3)-siground(abs(efficiency/100),3)", "showFeedbackIcon": true, "precision": "3", "extendBaseMarkingAlgorithm": true, "marks": "2", "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "strictPrecision": true, "scripts": {}, "customMarkingAlgorithm": ""}, {"prompt": "The work done by the Carnot cycle was {work} J. Calculate the amount of heat added to the system from the hot reservoir, to three significant figures.
", "variableReplacementStrategy": "originalfirst", "maxValue": "siground(q_h,3)+siground(abs(q_h/100),3)", "correctAnswerStyle": "plain", "mustBeReduced": false, "correctAnswerFraction": false, "precisionMessage": "You have not given your answer to the correct precision.", "mustBeReducedPC": 0, "showCorrectAnswer": false, "precisionType": "sigfig", "showPrecisionHint": false, "unitTests": [], "precisionPartialCredit": "50", "allowFractions": false, "minValue": "siground(q_h,3)-siground(abs(q_h/100),3)", "showFeedbackIcon": true, "precision": "3", "extendBaseMarkingAlgorithm": true, "marks": "2", "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [{"part": "p0", "variable": "efficiency", "must_go_first": true}], "strictPrecision": true, "scripts": {}, "customMarkingAlgorithm": ""}], "name": "A4: Carnot cycle efficiency", "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "metadata": {"description": "Calculate the efficiency and heat from the hot reservoir in a Carnot Cycle (with carnot diagram)
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "contributors": [{"name": "Tom Stallard", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/841/"}]}]}], "contributors": [{"name": "Tom Stallard", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/841/"}]}