// Numbas version: exam_results_page_options {"name": "Load Flow Analysis - 2bus", "extensions": [], "custom_part_types": [], "resources": [["question-resources/LF2bus.png", "/srv/numbas/media/question-resources/LF2bus.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Load Flow Analysis - 2bus", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

For the following 2-bus system, bus 1 is the swing bus. Values are given in per-unit on a 10 MVA base:

\n

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

Bus

\n
\n

Power In

\n
\n

Power Out

\n
\n

Voltage

\n
\n

1

\n
\n

?

\n
\n

0

\n
\n

1 $\\angle $0

\n
\n

2

\n
\n

0

\n
\n

{P2} + j {Q2}

\n
\n

?

\n
\n

 Table 1: Bus information

\n

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

Section

\n
\n

Series Impedance

\n
\n

1-2

\n
\n

{R12} + j {X12}

\n
\n

Table 2: Line information

", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Y": {"name": "Y", "group": "Computed", "definition": "matrix([y12,-y12],[-y12,y12])", "description": "", "templateType": "anything", "can_override": false}, "R12": {"name": "R12", "group": "Given", "definition": "random(0.005 .. 0.02#0.001)", "description": "", "templateType": "randrange", "can_override": false}, "X12": {"name": "X12", "group": "Given", "definition": "random(0.05 .. 0.2#0.01)", "description": "", "templateType": "randrange", "can_override": false}, "Z12": {"name": "Z12", "group": "Given", "definition": "R12+X12*i", "description": "", "templateType": "anything", "can_override": false}, "P2": {"name": "P2", "group": "Given", "definition": "random(0.5 .. 1#0.1)", "description": "", "templateType": "randrange", "can_override": false}, "Q2": {"name": "Q2", "group": "Given", "definition": "random(0 .. 1#0.1)", "description": "", "templateType": "randrange", "can_override": false}, "S2": {"name": "S2", "group": "Given", "definition": "-P2 - Q2*i", "description": "", "templateType": "anything", "can_override": false}, "y12": {"name": "y12", "group": "Computed", "definition": "1/Z12", "description": "", "templateType": "anything", "can_override": false}, "delta2": {"name": "delta2", "group": "Computed", "definition": "180*arg(V2g)/pi", "description": "", "templateType": "anything", "can_override": false}, "V2a": {"name": "V2a", "group": "Computed", "definition": "Z12*conj(S2)+1", "description": "", "templateType": "anything", "can_override": false}, "V2b": {"name": "V2b", "group": "Computed", "definition": "Z12*conj(S2)/conj(V2a)+1", "description": "", "templateType": "anything", "can_override": false}, "V2c": {"name": "V2c", "group": "Computed", "definition": "Z12*conj(S2)/conj(V2b)+1", "description": "", "templateType": "anything", "can_override": false}, "V2d": {"name": "V2d", "group": "Computed", "definition": "Z12*conj(S2)/conj(V2c)+1", "description": "", "templateType": "anything", "can_override": false}, "V2e": {"name": "V2e", "group": "Computed", "definition": "Z12*conj(S2)/conj(V2d)+1", "description": "", "templateType": "anything", "can_override": false}, "V2f": {"name": "V2f", "group": "Computed", "definition": "Z12*conj(S2)/conj(V2e)+1", "description": "", "templateType": "anything", "can_override": false}, "V2g": {"name": "V2g", "group": "Computed", "definition": "Z12*conj(S2)/conj(V2f)+1", "description": "", "templateType": "anything", "can_override": false}, "V2": {"name": "V2", "group": "Computed", "definition": "abs(V2g)", "description": "", "templateType": "anything", "can_override": false}, "P1": {"name": "P1", "group": "Computed", "definition": "re(S1)", "description": "", "templateType": "anything", "can_override": false}, "Q1": {"name": "Q1", "group": "Computed", "definition": "im(S1)", "description": "", "templateType": "anything", "can_override": false}, "S1": {"name": "S1", "group": "Computed", "definition": "conj((1-V2g)/Z12)", "description": "", "templateType": "anything", "can_override": false}, "Ploss": {"name": "Ploss", "group": "Computed", "definition": "re(S1+S2)", "description": "", "templateType": "anything", "can_override": false}, "PlossTest": {"name": "PlossTest", "group": "Ungrouped variables", "definition": "-re((1-V2g)*conj((1-V2g)*(-Y12)))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "precround(Ploss,2)=precround(PlossTest,2)", "maxRuns": "1000"}, "ungrouped_variables": ["PlossTest"], "variable_groups": [{"name": "Given", "variables": ["R12", "X12", "Z12", "P2", "Q2", "S2"]}, {"name": "Computed", "variables": ["y12", "Y", "V2a", "V2b", "V2c", "V2d", "V2e", "V2f", "V2g", "V2", "delta2", "S1", "P1", "Q1", "Ploss"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Y-Matrix", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate the Y-matrix in per-unit:

\n

[[0]]+i [[1]]         [[2]]+i [[3]]

\n

\n

[[4]]+i [[5]]         [[6]]+i [[7]]

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "R11", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "re(y12)*0.99", "maxValue": "re(y12)*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "X11", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "im(y12)*0.99", "maxValue": "im(y12)*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "R12", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "-re(y12)*0.99", "maxValue": "-re(y12)*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "X12", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "-im(y12)*0.99", "maxValue": "-im(y12)*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "R21", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "-re(y12)*0.99", "maxValue": "-re(y12)*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "X21", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "-im(y12)*0.99", "maxValue": "-im(y12)*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "R22", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "re(y12)*0.99", "maxValue": "re(y12)*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "X22", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "im(y12)*0.99", "maxValue": "im(y12)*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Voltage", "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 voltage at bus 2?

\n

$V_2$ = [[0]]  $\\angle$ [[1]] p.u.

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Voltage", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "V2*0.99", "maxValue": "V2*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Delta", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "delta2*0.99", "maxValue": "delta2*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Power", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate the power in at bus 1:

\n

$S_1$ = [[0]] + i [[1]]  p.u.

\n

Calculate the real power lost in the system in per-unit and verify this:

\n

$P_{LOSS}$ = [[2]] p.u.

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "P1", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P1*0.99", "maxValue": "P1*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Q1", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Q1*0.99", "maxValue": "Q1*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Ploss", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Ploss*0.99", "maxValue": "Ploss*1.01", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Jane Courtney", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2154/"}]}]}], "contributors": [{"name": "Jane Courtney", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2154/"}]}