// Numbas version: exam_results_page_options {"name": "Heating/phase change - core", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["end_temp", "mass", "start_temp"], "name": "Heating/phase change - core", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

First Method.

", "rulesets": {}, "parts": [{"prompt": "

ZSXCDSA

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "extensions": ["jsxgraph"], "statement": "

{switcharoo_type} -> {start_temp}, {end_temp} ... 273, 373

\n

Solid-liquid:

\n

{mass}*{solid_heatcap}*{(phase1_temp-start_temp)} = {solidheat}

\n

{mass}*{phase1_latentheat} = {meltingheat}

\n

{mass}*{gas_heatcap}*{(end_temp-phase1_temp)} = {liquidheat}

\n

{vapourheat}

\n

{gasheat}

\n

\n

Solid-gas:

\n

{mass}*{solid_heatcap}*{(phase1_temp-start_temp)} = {solidheat}

\n

{mass}*{phase1_latentheat} = {meltingheat}

\n

{mass}*{gas_heatcap}*{(phase2_temp-phase1_temp)} = {liquidheat}

\n

{mass}*{phase2_latentheat} = {vapourheat}

\n

{mass}*{gas_heatcap}*{(end_temp-phase2_temp)} = {gasheat}

\n

\n

Liquid-gas:

\n

{solidheat}

\n

{meltingheat}

\n

{mass}*{gas_heatcap}*{(phase2_temp-start_temp)} = {liquidheat}

\n

{mass}*{phase2_latentheat} = {vapourheat}

\n

{mass}*{gas_heatcap}*{(end_temp-phase2_temp)} = {gasheat}

\n

\n

Total Heat:

\n

{totalheat}

\n

\n

", "variable_groups": [{"variables": ["switcharoo", "switcharoo_comment", "switcharoo_type", "phase_temp", "phase_latentheat"], "name": "switcharoo"}, {"variables": ["g_or_kg", "g_or_kg_string", "mass_string"], "name": "kg or g"}, {"variables": ["gas_heatcap", "liquid_heatcap", "phase1_latentheat", "phase1_temp", "phase2_latentheat", "phase2_temp", "solid_heatcap"], "name": "Phases"}, {"variables": ["solidheat", "meltingheat", "liquidheat", "vapourheat", "gasheat", "totalheat"], "name": "Energy"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"solid_heatcap": {"definition": "4179", "templateType": "anything", "group": "Phases", "name": "solid_heatcap", "description": ""}, "phase1_latentheat": {"definition": "334000", "templateType": "anything", "group": "Phases", "name": "phase1_latentheat", "description": ""}, "switcharoo": {"definition": "random(0..2)", "templateType": "anything", "group": "switcharoo", "name": "switcharoo", "description": ""}, "phase_temp": {"definition": "switch(switcharoo=0,phase1_temp,switcharoo=2,phase2_temp,0)", "templateType": "anything", "group": "switcharoo", "name": "phase_temp", "description": ""}, "totalheat": {"definition": "solidheat+meltingheat+liquidheat+vapourheat+gasheat", "templateType": "anything", "group": "Energy", "name": "totalheat", "description": ""}, "phase2_temp": {"definition": "373", "templateType": "anything", "group": "Phases", "name": "phase2_temp", "description": ""}, "g_or_kg": {"definition": "if(mass<1,1,0)", "templateType": "anything", "group": "kg or g", "name": "g_or_kg", "description": ""}, "mass_string": {"definition": "mass*(10^(g_or_kg*3))", "templateType": "anything", "group": "kg or g", "name": "mass_string", "description": ""}, "gas_heatcap": {"definition": "1890", "templateType": "anything", "group": "Phases", "name": "gas_heatcap", "description": ""}, "phase2_latentheat": {"definition": "2264760", "templateType": "anything", "group": "Phases", "name": "phase2_latentheat", "description": ""}, "switcharoo_comment": {"definition": "[ \"solid_to_liquid\", \"solid_to_gas\", \"liquid_to_gas\" ]", "templateType": "list of strings", "group": "switcharoo", "name": "switcharoo_comment", "description": ""}, "end_temp": {"definition": "if(switcharoo>0,random(phase2_temp+10..phase2_temp+100),random(phase1_temp+10..phase2_temp-10))", "templateType": "anything", "group": "Ungrouped variables", "name": "end_temp", "description": ""}, "switcharoo_type": {"definition": "switcharoo_comment[switcharoo]", "templateType": "anything", "group": "switcharoo", "name": "switcharoo_type", "description": ""}, "gasheat": {"definition": "if(switcharoo>0,mass*gas_heatcap*(end_temp-phase2_temp),0)", "templateType": "anything", "group": "Energy", "name": "gasheat", "description": ""}, "vapourheat": {"definition": "if(switcharoo>0,mass*phase2_latentheat,0)", "templateType": "anything", "group": "Energy", "name": "vapourheat", "description": ""}, "solidheat": {"definition": "if(switcharoo<2,mass*solid_heatcap*(phase1_temp-start_temp),0)", "templateType": "anything", "group": "Energy", "name": "solidheat", "description": ""}, "phase_latentheat": {"definition": "switch(switcharoo=0,phase1_latentheat,switcharoo=2,phase2_latentheat,0)", "templateType": "anything", "group": "switcharoo", "name": "phase_latentheat", "description": ""}, "liquidheat": {"definition": "switch(switcharoo=0,mass*gas_heatcap*(end_temp-phase1_temp),switcharoo=1,mass*gas_heatcap*(phase2_temp-phase1_temp),switcharoo=2,mass*gas_heatcap*(phase2_temp-start_temp),0)", "templateType": "anything", "group": "Energy", "name": "liquidheat", "description": ""}, "meltingheat": {"definition": "if(switcharoo<2,mass*phase1_latentheat,0)", "templateType": "anything", "group": "Energy", "name": "meltingheat", "description": ""}, "g_or_kg_string": {"definition": "if(mass<1,' g',' kg')", "templateType": "anything", "group": "kg or g", "name": "g_or_kg_string", "description": ""}, "start_temp": {"definition": "if(switcharoo<2,random(phase1_temp-100..phase1_temp-10),random(phase1_temp+10..phase2_temp-10))", "templateType": "anything", "group": "Ungrouped variables", "name": "start_temp", "description": ""}, "phase1_temp": {"definition": "273", "templateType": "anything", "group": "Phases", "name": "phase1_temp", "description": ""}, "mass": {"definition": "random(0.01..2.00#0.01)", "templateType": "anything", "group": "Ungrouped variables", "name": "mass", "description": ""}, "liquid_heatcap": {"definition": "4181", "templateType": "anything", "group": "Phases", "name": "liquid_heatcap", "description": ""}}, "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "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/"}]}