// Numbas version: finer_feedback_settings {"name": "CME1021 - August Resit & Deferral", "metadata": {"description": "", "licence": "None specified"}, "duration": 10800, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", ""], "variable_overrides": [[], [], [], [], []], "questions": [{"name": "Question 1 - Property Tables", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Jonathan McDonough", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12473/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "
Using the data in the steam tables document on Canvas, determine the specific property data at the following states. Give your answers to the specified number of decimal places.
", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"u1": {"name": "u1", "group": "Ungrouped variables", "definition": "random(220 .. 225#0.25)", "description": "Specific internal energy
", "templateType": "randrange", "can_override": false}, "x1": {"name": "x1", "group": "Ungrouped variables", "definition": "(u1 - 48.18)/(226.38 - 48.18)", "description": "Vapour quality
", "templateType": "anything", "can_override": false}, "v1": {"name": "v1", "group": "Ungrouped variables", "definition": "(0.7697/1000) + x1*(0.0719 - (0.7697/1000))", "description": "Specific volume
", "templateType": "anything", "can_override": false}, "T2": {"name": "T2", "group": "Ungrouped variables", "definition": "random(282 .. 318#1)", "description": "Temperature
", "templateType": "randrange", "can_override": false}, "u2": {"name": "u2", "group": "Ungrouped variables", "definition": "2775.4 + ((T2-280)*((2838.1-2775.4)/(320-280)))", "description": "Specific internal energy
", "templateType": "anything", "can_override": true}, "s2": {"name": "s2", "group": "Ungrouped variables", "definition": "7.6299 + ((T2-280)*((7.7722-7.6299)/(320-280)))", "description": "Specific entropy
", "templateType": "anything", "can_override": true}, "v3": {"name": "v3", "group": "Ungrouped variables", "definition": "0.3094", "description": "Specific volume
", "templateType": "number", "can_override": false}, "h3": {"name": "h3", "group": "Ungrouped variables", "definition": "1439.89", "description": "Specific enthalpy
", "templateType": "number", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["u1", "x1", "v1", "T2", "u2", "s2", "v3", "h3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "a)", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Quality $x$ and specific volume $v$ of Refrigerant R134a at $P$ = 2.8 bar and $u$ = {u1} kJ/kg:
\n$x$ = [[0]]
\n$v$ (m3.kg-1) = [[1]]
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Quality", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "x1*0.99", "maxValue": "x1*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Specific Volume", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [{"variable": "x1", "part": "p0g0", "must_go_first": true}], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "v1*0.99", "maxValue": "v1*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "4", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "b)", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Specific internal energy $u$ and specific entropy $s$ of steam at $P$ = 0.3 MPa and $T$ = {T2} °C:
\n$u$ (kJ.kg-1) = [[0]]
\n$s$ (kJ.kg-1.K.-1) = [[1]]
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Specific Volume", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "u2*0.99", "maxValue": "u2*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Specific Entropy", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "s2*0.99", "maxValue": "s2*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "4", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "c)", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Specific volume $v$ and specific enthalpy $h$ of saturated ammonia vapour at $P$ = 4 bar and $T$ = $T^{sat}$:
\n$v$ (m3.kg-1) = [[0]]
\n$h$ (kJ.kg-1) = [[1]]
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Specific Volume", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "0.3094", "maxValue": "0.3904", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "4", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Specific Enthalpy", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "1439.89", "maxValue": "1439.89", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "Question 2 - Throttle Valve", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Jonathan McDonough", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12473/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "Refrigerant R134a enters an expansion valve during a refrigeration cycle and undergoes a throttling process.
", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "6", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "If the refrigerant exits the expansion valve as a saturated vapour with a pressure of 0.14 MPa and quality of 0.5, what would the inlet pressure have been (in bar) if the refrigerant entered the valve as a saturated liquid?
", "minValue": "18.4*0.995", "maxValue": "18.4*1.005", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "1", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "Question 3 - Compressor", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Jonathan McDonough", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12473/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "Air is compressed at steady state at a rate of {Q_in} m3/min from a pressure of {P_in} bar at {T_in} K to a pressure of 10 bar. The compressed air is discharged 3 m above the inlet. During the process the air heats up to {T_out} K, whilst the compressor itself loses {Q_dot} kW of thermal energy to the surroundings. You may assume that the gas is ideal
", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"P_in": {"name": "P_in", "group": "Ungrouped variables", "definition": "random(0.5 .. 2#0.1)", "description": "Inlet pressure
", "templateType": "randrange", "can_override": false}, "Q_in": {"name": "Q_in", "group": "Ungrouped variables", "definition": "random(5 .. 10#0.1)", "description": "Inlet volumetric flow rate
", "templateType": "randrange", "can_override": false}, "Q_dot": {"name": "Q_dot", "group": "Ungrouped variables", "definition": "random(0.1 .. 2#0.1)", "description": "Heat loss to the surroundings
", "templateType": "randrange", "can_override": false}, "m_dot": {"name": "m_dot", "group": "Ungrouped variables", "definition": "((Q_in/60)*(P_in*(10^5)))/((8.314/(28.97/1000))*T_in)", "description": "Mass flow rate
", "templateType": "anything", "can_override": false}, "T_in": {"name": "T_in", "group": "Ungrouped variables", "definition": "300", "description": "Inlet temperature
", "templateType": "number", "can_override": false}, "T_out": {"name": "T_out", "group": "Ungrouped variables", "definition": "random(391 .. 399#1)", "description": "", "templateType": "randrange", "can_override": false}, "h_out": {"name": "h_out", "group": "Ungrouped variables", "definition": "390.88 + ((T_out - 390)*((400.98-390.88)/(400-390)))", "description": "Outlet specific enthalpy
", "templateType": "anything", "can_override": false}, "W_dot": {"name": "W_dot", "group": "Ungrouped variables", "definition": "-(Q_dot*1000) + (m_dot*(((300.19 - h_out)*1000) + (9.81*(0 - 3))))", "description": "Work done
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["P_in", "Q_in", "Q_dot", "m_dot", "T_in", "T_out", "h_out", "W_dot"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "a)", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Calculate the mass flow rate of air being compressed in kg/s.
", "minValue": "m_dot*0.99", "maxValue": "m_dot*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [{"variable": "m_dot", "part": "p0", "must_go_first": true}], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": "0", "exploreObjective": null, "prompt": "Neglecting kinetic effects, determine the power required to perform the compression in W.
", "minValue": "W_dot*1.01", "maxValue": "W_dot*0.99", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "1", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "Question 4 - Turbine", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Jonathan McDonough", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12473/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "A power plant uses steam to drive a turbine in order to produce electricity for the national grid. As the steam expands through the turbine its pressure decreases from 15 bar to 1.5 bar. The steam enters the turbine with a temperature of {T_in} °C and emerges at the outlet as a saturated vapour. The turbine operates at steady state and outputs {W_dot} MW of power. You can assume that the heat losses and potential effects are negligible.
", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"T_in": {"name": "T_in", "group": "Ungrouped variables", "definition": "random(501 .. 539#1)", "description": "Inlet temperature
", "templateType": "randrange", "can_override": false}, "h_in": {"name": "h_in", "group": "Ungrouped variables", "definition": "3473.1 + ((T_in - 500)*((3560.9 - 3473.1)/(540 - 500)))", "description": "Inlet specific enthalpy
", "templateType": "anything", "can_override": false}, "W_dot": {"name": "W_dot", "group": "Ungrouped variables", "definition": "random(3 .. 4#0.1)", "description": "", "templateType": "randrange", "can_override": false}, "m_dot1": {"name": "m_dot1", "group": "Ungrouped variables", "definition": "(W_dot*1000000)/((h_in - 2693.6)*1000)", "description": "Mass flow rate with negligable kinetic effects
", "templateType": "anything", "can_override": false}, "m_dot2": {"name": "m_dot2", "group": "Ungrouped variables", "definition": "(W_dot*1000000)/(((h_in - 2693.6)*1000)+((v_in^2)/2))", "description": "Mass flow rate with kinetic effects
", "templateType": "anything", "can_override": false}, "v_in": {"name": "v_in", "group": "Ungrouped variables", "definition": "random(50 .. 150#1)", "description": "Inlet velocity
", "templateType": "randrange", "can_override": false}, "h_out": {"name": "h_out", "group": "Ungrouped variables", "definition": "2693.6", "description": "Outlet specific enthalpy
", "templateType": "number", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["W_dot", "T_in", "h_in", "h_out", "m_dot1", "v_in", "m_dot2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "a)", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "What is the enthalpy of the steam at the turbine’s inlet and outlet in kJ/kg?
\n$h_{inlet}$ (kJ/kg) = [[0]]
\n$h_{outlet}$ (kJ/kg) = [[1]]
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Inlet Specific Enthalpy", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "h_in*0.99", "maxValue": "h_in*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "1", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Outlet Specific Enthalpy", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "h_out*0.99", "maxValue": "h_out*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "1", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "numberentry", "useCustomName": true, "customName": "b)", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [{"variable": "h_in", "part": "p0g0", "must_go_first": true}, {"variable": "h_out", "part": "p0g1", "must_go_first": true}], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Calculate the mass flow rate of steam in kg/s if kinetic effects are negligible.
", "minValue": "m_dot1*0.995", "maxValue": "m_dot1*1.005", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "c)", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [{"variable": "h_in", "part": "p0g0", "must_go_first": true}, {"variable": "h_out", "part": "p0g1", "must_go_first": true}], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Calculate the mass flow rate of steam in kg/s if the steam’s outlet velocity is negligable compared to the {v_in} m/s inlet velocity.
", "minValue": "m_dot2*0.995", "maxValue": "m_dot2*1.005", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "Question 5 - Heat Exchanger", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Jonathan McDonough", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12473/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "A stream of pure steam emerges from the top of a stripper tower at {m_dots} kg/s with a pressure and temperature of 5 bar and 200°C. This steam is then cooled and condensed using a heat exchanger, where it exits with a pressure of 3 bar and specific volume of {v} m3/kg. Superheated refrigerant R134a is used as the coolant during this process, which enters the heat exchanger at 2 bar and {T_in} °C, and exits at 1.8 bar and {T_out} °C.
\nYou may assume that kinetic and potential energy effects are negligible, no work is done by the heat exchanger, and heat is lost from the heat exchanger to the surroundings at a rate of {Q_dot} kW.
", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"m_dots": {"name": "m_dots", "group": "Ungrouped variables", "definition": "random(0.1 .. 1#0.05)", "description": "Mass flow rate of propane
", "templateType": "randrange", "can_override": false}, "v": {"name": "v", "group": "Ungrouped variables", "definition": "random(0.1 .. 0.6#0.01)", "description": "Specific volume of propane
", "templateType": "randrange", "can_override": false}, "T_in": {"name": "T_in", "group": "Ungrouped variables", "definition": "random(11 .. 19#1)", "description": "Inlet temperature of refrigerant
", "templateType": "randrange", "can_override": false}, "T_out": {"name": "T_out", "group": "Ungrouped variables", "definition": "random(51 .. 59#1)", "description": "Outlet temperature of refrigerant
", "templateType": "randrange", "can_override": false}, "Q_dot": {"name": "Q_dot", "group": "Ungrouped variables", "definition": "random(0.1 .. 2.5#0.1)", "description": "Heat loss
", "templateType": "randrange", "can_override": false}, "h_s1": {"name": "h_s1", "group": "Ungrouped variables", "definition": "2855.4", "description": "Inlet specific enthalpy of propane
", "templateType": "number", "can_override": false}, "x": {"name": "x", "group": "Ungrouped variables", "definition": "(v - (1.0732*(10^-3)))/(0.6048 - (1.0732*(10^-3)))", "description": "Outlet vapour quality of propane
", "templateType": "anything", "can_override": false}, "h_s2": {"name": "h_s2", "group": "Ungrouped variables", "definition": "561.47 + (x*2163.8)", "description": "Outlet specific enthalpy of propane
", "templateType": "anything", "can_override": false}, "h_r1": {"name": "h_r1", "group": "Ungrouped variables", "definition": "258.89 + ((T_in - 10)*((267.78 - 258.89)/(20 - 10)))", "description": "Inlet specific enthalpy of refrigerant
", "templateType": "anything", "can_override": false}, "h_r2": {"name": "h_r2", "group": "Ungrouped variables", "definition": "295.45 + ((T_out - 50)*((304.79 - 295.45)/(60 - 50)))", "description": "Outlet specific enthalpy of refrigerant
", "templateType": "anything", "can_override": false}, "m_dotr": {"name": "m_dotr", "group": "Ungrouped variables", "definition": "(-((-Q_dot*1000) + m_dots*((h_s1 - h_s2)*1000)))/((h_r1 - h_r2)*1000)", "description": "Mass flow rate of refrigerant
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["m_dots", "v", "T_in", "T_out", "Q_dot", "h_s1", "x", "h_s2", "h_r1", "h_r2", "m_dotr"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "a)", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Calculate the specific enthalpy of the steam at the inlet and outlet of the heat exchanger:
\n$h_{in}$ (kJ/kg) = [[0]]
\n$h_{out}$ (kJ/kg) = [[1]]
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Inlet Specific Enthalpy of Steam", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "h_s1", "maxValue": "h_s1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "1", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Outlet Specific Enthalpy of Steam", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "h_s2*0.99", "maxValue": "h_s2*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "1", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "b)", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Calculate the specific enthalpy of the refrigerant as it enters and exits the heat exchanger:
\n$h_{in}$ (kJ/kg) = [[0]]
\n$h_{out}$ (kJ/kg) = [[1]]
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Inlet Specific Enthalpy of Refrigerant", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "h_r1*0.99", "maxValue": "h_r1*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "1", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Outlet Specific Enthalpy of Refrigerant", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "h_r2*0.99", "maxValue": "h_r2*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "1", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "numberentry", "useCustomName": true, "customName": "c)", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [{"variable": "h_s1", "part": "p0g0", "must_go_first": true}, {"variable": "h_s2", "part": "p0g1", "must_go_first": true}, {"variable": "h_r1", "part": "p1g0", "must_go_first": true}, {"variable": "h_r2", "part": "p1g1", "must_go_first": true}], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Calculate the mass flow of R134a required in kg/s.
", "minValue": "m_dotr*0.99", "maxValue": "m_dotr*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}]}], "allowPrinting": true, "navigation": {"allowregen": false, "reverse": true, "browse": true, "allowsteps": false, "showfrontpage": true, "showresultspage": "never", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": false, "timeout": {"action": "warn", "message": "The 3 hour time limit has now expired.
"}, "timedwarning": {"action": "warn", "message": "You have 5 minutes remaining before the time limit is reached.
"}}, "feedback": {"showactualmark": false, "showtotalmark": true, "showanswerstate": false, "allowrevealanswer": false, "advicethreshold": 0, "intro": "", "reviewshowscore": false, "reviewshowfeedback": false, "reviewshowexpectedanswer": false, "reviewshowadvice": false, "feedbackmessages": [], "enterreviewmodeimmediately": false, "showexpectedanswerswhen": "never", "showpartfeedbackmessageswhen": "never", "showactualmarkwhen": "never", "showtotalmarkwhen": "always", "showanswerstatewhen": "never", "showadvicewhen": "never"}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "type": "exam", "contributors": [{"name": "Jonathan McDonough", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12473/"}], "extensions": [], "custom_part_types": [], "resources": []}