// Numbas version: exam_results_page_options {"name": "PracticeExamForAaronScott", "metadata": {"description": "", "licence": "None specified"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": true, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "RLC networks", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", ""], "variable_overrides": [[], [], []], "questions": [{"name": "2021_Midterm_6_RLCseries_VI_PQ", "extensions": ["geogebra", "quantities", "weh"], "custom_part_types": [{"source": {"pk": 19, "author": {"name": "William Haynes", "pk": 2530}, "edit_page": "/part_type/19/edit"}, "name": "Engineering Accuracy with units", "short_name": "engineering-answer", "description": "

A value with units marked right if within an adjustable % error of the correct value.  Marked close if within a wider margin of error.

", "help_url": "", "input_widget": "string", "input_options": {"correctAnswer": "siground(settings['correctAnswer'],4)", "hint": {"static": true, "value": ""}, "allowEmpty": {"static": true, "value": true}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nswitch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n\n\ninterpreted_answer:\nqty(student_scalar, student_units)\n\n\n\ncorrect_quantity:\nsettings[\"correctAnswer\"]\n\n\n\ncorrect_units:\nunits(correct_quantity)\n\n\nallowed_notation_styles:\n[\"plain\",\"en\"]\n\nmatch_student_number:\nmatchnumber(studentAnswer,allowed_notation_styles)\n\nstudent_scalar:\nmatch_student_number[1]\n\nstudent_units:\nreplace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")\n\ngood_units:\ntry(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n\n\nstudent_quantity:\nswitch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n\n\npercent_error:\ntry(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n \n\nright:\npercent_error <= settings['right']\n\n\nclose:\nright_sign and percent_error <= settings['close']\n\nright_sign:\nsign(student_scalar) = sign(correct_quantity)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "switch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "qty(student_scalar, student_units)\n\n"}, {"name": "correct_quantity", "description": "", "definition": "settings[\"correctAnswer\"]\n\n"}, {"name": "correct_units", "description": "", "definition": "units(correct_quantity)\n"}, {"name": "allowed_notation_styles", "description": "", "definition": "[\"plain\",\"en\"]"}, {"name": "match_student_number", "description": "", "definition": "matchnumber(studentAnswer,allowed_notation_styles)"}, {"name": "student_scalar", "description": "", "definition": "match_student_number[1]"}, {"name": "student_units", "description": "

Modify the unit portion of the student's answer by

\n

1. replacing \"ohms\" with \"ohm\"  case insensitive

\n

2. replacing '-' with ' ' 

\n

3. replacing '°' with ' deg' 

\n

to allow answers like 10 ft-lb and 30°

", "definition": "replace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")"}, {"name": "good_units", "description": "", "definition": "try(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n"}, {"name": "student_quantity", "description": "

This fixes the student answer for two common errors.  

\n

If student_units are wrong  - replace with correct units

\n

If student_scalar has the wrong sign - replace with right sign

\n

If student makes both errors, only one gets fixed.

", "definition": "switch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n"}, {"name": "percent_error", "description": "", "definition": "try(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n "}, {"name": "right", "description": "", "definition": "percent_error <= settings['right']\n"}, {"name": "close", "description": "

Only marked close if the student actually has the right sign.

", "definition": "right_sign and percent_error <= settings['close']"}, {"name": "right_sign", "description": "", "definition": "sign(student_scalar) = sign(correct_quantity) "}], "settings": [{"name": "correctAnswer", "label": "Correct Quantity.", "help_url": "", "hint": "The correct answer given as a JME quantity.", "input_type": "code", "default_value": "", "evaluate": true}, {"name": "right", "label": "% Accuracy for right.", "help_url": "", "hint": "Question will be considered correct if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "0.2", "evaluate": true}, {"name": "close", "label": "% Accuracy for close.", "help_url": "", "hint": "Question will be considered close if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "1.0", "evaluate": true}, {"name": "C1", "label": "Close with units.", "help_url": "", "hint": "Partial Credit for close value with appropriate units.  if correct answer is 100 N and close is ±1%,
99  N is accepted.", "input_type": "percent", "default_value": "75"}, {"name": "C2", "label": "No units or wrong sign", "help_url": "", "hint": "Partial credit for forgetting units or using wrong sign.
If the correct answer is 100 N, both 100 and -100 N are accepted.", "input_type": "percent", "default_value": "50"}, {"name": "C3", "label": "Close, no units.", "help_url": "", "hint": "Partial Credit for close value but forgotten units.
This value would be close if the expected units were provided.  If the correct answer is 100 N, and close is ±1%,
99 is accepted.", "input_type": "percent", "default_value": "25"}], "public_availability": "always", "published": true, "extensions": ["quantities"]}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}, {"name": "Judy Rea", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8753/"}], "tags": [], "metadata": {"description": "

series of R and L and C

\n

find Z (mag and Phase)

\n

find I (given V)

\n

Find S, P and Q

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

\n

\n

\n

\n

\n

\n

\n

\n

A circuit consists of a series of resistors,inductors and capacitors  is supplied by a {Vs} V ac voltage source.

\n

The reistance is $R= $ {qty({R1},'ohm')}.

\n

The reactances of the inductor and the capacitor are $X_L = $ {qty(XL,'ohm')} and $X_C = ${qty(Xc,'ohm')} .  

\n

", "advice": "

1. Find the total Impedance of the network

\n

$Z_T=R+j(X_L-X_C)$

\n

$Z_{Total} = R +j (X_L - X_C)$

\n

$Z_{Total} = \\var{R1} +j (\\var{XL} - \\var{XC}) = \\var{Zt} $

\n

or expressed in polar form 

\n

$Z_{Total} = \\var{ZtMag} \\angle  \\var{ZtPh} ^{\\circ}$

\n

(Note treat i and j as identical here ... the maths programme can't be edited to use j so we are stuck with i for now, J.Rea 11th Oct 2021)

\n

2. Use Ohms Law

\n

Set 0 deg to be the angle of the voltage. This is our reference phasor. All other phasors will be relative to this one. 

\n

So $V_s=\\var{Vs}+0j = \\var{Vs} \\angle \\var{0}^{\\circ}$

\n

$I_s=\\frac{V_s}{Z_t}$ , taking care to include use the full complex number for each $I_s$,$V_s$ and $Z_t$

\n

$I_s=\\frac{\\var{Vs} \\angle \\var{0}^{\\circ}}{\\var{ZtMag} \\angle \\var{ZtPh}^{\\circ}} = \\var{IsMag} \\angle {\\var{IsPh}^{\\circ}}$

\n

3. Use the Power law

\n

$S= V_s I_s^{*}$  

\n

$ S = (\\var{Vs} \\angle \\var{0})(\\var{IsMag} \\angle \\var{IsPh}^{\\circ})^{*}$

\n

taking the complex conjugate of the current ... we can find the Total power (also called apparent power).

\n

$ Ss = (\\var{Vs} \\angle \\var{0}^{\\circ})(\\var{IsMag} \\angle \\var{IsPhTimesMinusOne}^{\\circ})$

\n

$ Ss = \\var{SsMag} \\angle \\var{SsPh} MVA  = \\var{Ps} + j \\var{Qs}  MVA$

\n

Remebering that $S = P +jQ$  we can equate the real and imaginary parts to say

\n

Real power (also known as Active power) is $P=\\var{Ps} MW$ 

\n

Imaginary power (also known as Reactive power) is $Q=\\var{Qs} MVA_r$

\n

4. Power Factor

\n

Recall the definition of power factor :

\n

$pf = \\frac{P}{|S|} = cos{\\theta}$ where ${\\theta}$ is the angle between the voltage and the current.

\n

$pf \\frac{P}{|S|} =\\frac{\\var{Ps}}{\\var{SsMag}} = \\var{pf}

\n

or using a differnt equation

\n

The phase angle between voltage and current, $\\theta = 0-\\var{IsPh} = \\var{IsPhTimesMinusOne}$

\n

So $pf= cos{\\var{IsPhTimesMinusOne}} = \\var{pf}$

\n

\n

\n

\n

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Zt": {"name": "Zt", "group": "Ungrouped variables", "definition": "Rt+i*Xt", "description": "", "templateType": "anything", "can_override": false}, "Xl1": {"name": "Xl1", "group": "Ungrouped variables", "definition": "XL", "description": "", "templateType": "anything", "can_override": false}, "Xt": {"name": "Xt", "group": "Ungrouped variables", "definition": "XL1-XC1", "description": "", "templateType": "anything", "can_override": false}, "XC1": {"name": "XC1", "group": "Ungrouped variables", "definition": "XC", "description": "", "templateType": "anything", "can_override": false}, "Rt": {"name": "Rt", "group": "Ungrouped variables", "definition": "R1", "description": "", "templateType": "anything", "can_override": false}, "Vs": {"name": "Vs", "group": "Given in question", "definition": "random(180 .. 280#10)", "description": "", "templateType": "randrange", "can_override": false}, "Is": {"name": "Is", "group": "Ungrouped variables", "definition": "Vs/Zt", "description": "", "templateType": "anything", "can_override": false}, "Ss": {"name": "Ss", "group": "Ungrouped variables", "definition": "Vs*conj(Is)", "description": "", "templateType": "anything", "can_override": false}, "Ps": {"name": "Ps", "group": "Ungrouped variables", "definition": "re(Ss)", "description": "", "templateType": "anything", "can_override": false}, "Qs": {"name": "Qs", "group": "Ungrouped variables", "definition": "im(Ss)", "description": "", "templateType": "anything", "can_override": false}, "pf": {"name": "pf", "group": "Ungrouped variables", "definition": "Ps/abs(Ss)", "description": "", "templateType": "anything", "can_override": false}, "XL": {"name": "XL", "group": "Given in question", "definition": "random(5..100#10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "XC": {"name": "XC", "group": "Given in question", "definition": "random(5..100#10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "R1": {"name": "R1", "group": "Given in question", "definition": "random(50 .. 60#5)", "description": "", "templateType": "randrange", "can_override": false}, "minTol": {"name": "minTol", "group": "FreqUsedDefinitions", "definition": "0.99", "description": "", "templateType": "anything", "can_override": false}, "maxTol": {"name": "maxTol", "group": "FreqUsedDefinitions", "definition": "1.01", "description": "", "templateType": "anything", "can_override": false}, "ZtMag": {"name": "ZtMag", "group": "Variables for use in worked solution", "definition": "abs(Zt)", "description": "", "templateType": "anything", "can_override": false}, "ZtPh": {"name": "ZtPh", "group": "Variables for use in worked solution", "definition": "arg(Zt)*180/pi", "description": "", "templateType": "anything", "can_override": false}, "IsMag": {"name": "IsMag", "group": "Variables for use in worked solution", "definition": "abs(Is)", "description": "", "templateType": "anything", "can_override": false}, "IsPh": {"name": "IsPh", "group": "Variables for use in worked solution", "definition": "arg(Is)*180/pi", "description": "", "templateType": "anything", "can_override": false}, "SsMag": {"name": "SsMag", "group": "Variables for use in worked solution", "definition": "abs(Ss)", "description": "", "templateType": "anything", "can_override": false}, "SsPh": {"name": "SsPh", "group": "Variables for use in worked solution", "definition": " arg(Ss)*180/pi", "description": "", "templateType": "anything", "can_override": false}, "isphtimesminusone": {"name": "isphtimesminusone", "group": "Ungrouped variables", "definition": "abs(isph)*-1", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "abs(Xl-Xc) >20", "maxRuns": 100}, "ungrouped_variables": ["XC1", "Xl1", "Xt", "Rt", "Zt", "Is", "Ss", "Ps", "Qs", "pf", "isphtimesminusone"], "variable_groups": [{"name": "FreqUsedDefinitions", "variables": ["minTol", "maxTol"]}, {"name": "Given in question", "variables": ["Vs", "XL", "XC", "R1"]}, {"name": "Variables for use in worked solution", "variables": ["ZtMag", "ZtPh", "IsMag", "IsPh", "SsMag", "SsPh"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Source Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The magnitude, $|Is|$ = [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "Is Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(Is),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "Is Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(Is)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": " Total Power", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The  total power, (also called apparant power is) is   [[0]] at an angle of [[1]]

\n

(Include units in your answer e.g.  99.9 W, 99.9 VA or 99.9 VAr)   

", "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "Ss Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(Ss),'VA')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "Ss Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(Ss)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": " Active Power", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The  active power, (also called real power ) is  [[0]]

\n

(Include units in your answer e.g.  99.9 W, 99.9 VA or 99.9 VAr)   

", "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "Real Power", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(Ps,'W')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": " Reactive Power", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The  reactive power, (also called imaginary power) is [[0]] VAr. 

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Q noUnit", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Qs*minTol", "maxValue": "Qs*maxTol", "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 factor", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The  power factor is [[0]]

\n

Note, power factor is unitless. Give at least four significant figures in your answer.

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "pf", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "pf*minTol", "maxValue": "pf*maxTol", "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"}, {"name": "2021_Midterm_7_RLCParrallel_VI_v01", "extensions": ["geogebra", "quantities", "weh"], "custom_part_types": [{"source": {"pk": 19, "author": {"name": "William Haynes", "pk": 2530}, "edit_page": "/part_type/19/edit"}, "name": "Engineering Accuracy with units", "short_name": "engineering-answer", "description": "

A value with units marked right if within an adjustable % error of the correct value.  Marked close if within a wider margin of error.

", "help_url": "", "input_widget": "string", "input_options": {"correctAnswer": "siground(settings['correctAnswer'],4)", "hint": {"static": true, "value": ""}, "allowEmpty": {"static": true, "value": true}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nswitch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n\n\ninterpreted_answer:\nqty(student_scalar, student_units)\n\n\n\ncorrect_quantity:\nsettings[\"correctAnswer\"]\n\n\n\ncorrect_units:\nunits(correct_quantity)\n\n\nallowed_notation_styles:\n[\"plain\",\"en\"]\n\nmatch_student_number:\nmatchnumber(studentAnswer,allowed_notation_styles)\n\nstudent_scalar:\nmatch_student_number[1]\n\nstudent_units:\nreplace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")\n\ngood_units:\ntry(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n\n\nstudent_quantity:\nswitch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n\n\npercent_error:\ntry(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n \n\nright:\npercent_error <= settings['right']\n\n\nclose:\nright_sign and percent_error <= settings['close']\n\nright_sign:\nsign(student_scalar) = sign(correct_quantity)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "switch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "qty(student_scalar, student_units)\n\n"}, {"name": "correct_quantity", "description": "", "definition": "settings[\"correctAnswer\"]\n\n"}, {"name": "correct_units", "description": "", "definition": "units(correct_quantity)\n"}, {"name": "allowed_notation_styles", "description": "", "definition": "[\"plain\",\"en\"]"}, {"name": "match_student_number", "description": "", "definition": "matchnumber(studentAnswer,allowed_notation_styles)"}, {"name": "student_scalar", "description": "", "definition": "match_student_number[1]"}, {"name": "student_units", "description": "

Modify the unit portion of the student's answer by

\n

1. replacing \"ohms\" with \"ohm\"  case insensitive

\n

2. replacing '-' with ' ' 

\n

3. replacing '°' with ' deg' 

\n

to allow answers like 10 ft-lb and 30°

", "definition": "replace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")"}, {"name": "good_units", "description": "", "definition": "try(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n"}, {"name": "student_quantity", "description": "

This fixes the student answer for two common errors.  

\n

If student_units are wrong  - replace with correct units

\n

If student_scalar has the wrong sign - replace with right sign

\n

If student makes both errors, only one gets fixed.

", "definition": "switch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n"}, {"name": "percent_error", "description": "", "definition": "try(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n "}, {"name": "right", "description": "", "definition": "percent_error <= settings['right']\n"}, {"name": "close", "description": "

Only marked close if the student actually has the right sign.

", "definition": "right_sign and percent_error <= settings['close']"}, {"name": "right_sign", "description": "", "definition": "sign(student_scalar) = sign(correct_quantity) "}], "settings": [{"name": "correctAnswer", "label": "Correct Quantity.", "help_url": "", "hint": "The correct answer given as a JME quantity.", "input_type": "code", "default_value": "", "evaluate": true}, {"name": "right", "label": "% Accuracy for right.", "help_url": "", "hint": "Question will be considered correct if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "0.2", "evaluate": true}, {"name": "close", "label": "% Accuracy for close.", "help_url": "", "hint": "Question will be considered close if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "1.0", "evaluate": true}, {"name": "C1", "label": "Close with units.", "help_url": "", "hint": "Partial Credit for close value with appropriate units.  if correct answer is 100 N and close is ±1%,
99  N is accepted.", "input_type": "percent", "default_value": "75"}, {"name": "C2", "label": "No units or wrong sign", "help_url": "", "hint": "Partial credit for forgetting units or using wrong sign.
If the correct answer is 100 N, both 100 and -100 N are accepted.", "input_type": "percent", "default_value": "50"}, {"name": "C3", "label": "Close, no units.", "help_url": "", "hint": "Partial Credit for close value but forgotten units.
This value would be close if the expected units were provided.  If the correct answer is 100 N, and close is ±1%,
99 is accepted.", "input_type": "percent", "default_value": "25"}], "public_availability": "always", "published": true, "extensions": ["quantities"]}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}, {"name": "Judy Rea", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8753/"}], "tags": [], "metadata": {"description": "

series of R and L and C

\n

\n

find Z (mag and Phase)

\n

step find Xl

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

\n

\n

\n

\n

\n

\n

\n

\n

A circuit consists of a two parrallel branches  and is supplied by a {f} Hz,  {Vs} V ac voltage source.

\n

Branch 1 $R= $ {qty({R1},'ohm')} and $L = ${qty(L1mH,'mH')} 

\n

Branch 2 $R= $ {qty({R2},'ohm')}, and $C = ${qty(C2uF,'uF')}   

\n

Find the current flowing from the source. ${Is}$. 

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"R1": {"name": "R1", "group": "Given in question", "definition": "random(0..100#5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "Zbr1": {"name": "Zbr1", "group": "Ungrouped variables", "definition": "Rbr1+i*Xbr1", "description": "", "templateType": "anything", "can_override": false}, "L1": {"name": "L1", "group": "Ungrouped variables", "definition": "L1mH*10^-3", "description": "", "templateType": "anything", "can_override": false}, "Xl1": {"name": "Xl1", "group": "Ungrouped variables", "definition": "2*pi*f*L1", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Given in question", "definition": "random(50 .. 60#10)", "description": "", "templateType": "randrange", "can_override": false}, "Xbr1": {"name": "Xbr1", "group": "Ungrouped variables", "definition": "XL1", "description": "", "templateType": "anything", "can_override": false}, "uF": {"name": "uF", "group": "FreqUsedDefinitions", "definition": "'\\mu F'", "description": "", "templateType": "anything", "can_override": false}, "Rbr1": {"name": "Rbr1", "group": "Ungrouped variables", "definition": "R1", "description": "", "templateType": "anything", "can_override": false}, "Vs": {"name": "Vs", "group": "Given in question", "definition": "random(180 .. 280#10)", "description": "", "templateType": "randrange", "can_override": false}, "Ibr1": {"name": "Ibr1", "group": "Ungrouped variables", "definition": "Vs/Zbr1", "description": "", "templateType": "anything", "can_override": false}, "R2": {"name": "R2", "group": "Given in question", "definition": "random(0..100#5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "C2uF": {"name": "C2uF", "group": "Given in question", "definition": "random(50 .. 200#10)", "description": "", "templateType": "randrange", "can_override": false}, "C2": {"name": "C2", "group": "Ungrouped variables", "definition": "C2uF*10^-6", "description": "", "templateType": "anything", "can_override": false}, "XC2": {"name": "XC2", "group": "Ungrouped variables", "definition": "1/(2*pi*f*C2) ", "description": "", "templateType": "anything", "can_override": false}, "Xbr2": {"name": "Xbr2", "group": "Ungrouped variables", "definition": "-1*XC2", "description": "", "templateType": "anything", "can_override": false}, "Rbr2": {"name": "Rbr2", "group": "Ungrouped variables", "definition": "R2", "description": "", "templateType": "anything", "can_override": false}, "Zbr2": {"name": "Zbr2", "group": "Ungrouped variables", "definition": "Rbr2+i*Xbr2", "description": "", "templateType": "anything", "can_override": false}, "Ibr2": {"name": "Ibr2", "group": "Ungrouped variables", "definition": "Vs/Zbr2", "description": "", "templateType": "anything", "can_override": false}, "Is": {"name": "Is", "group": "Ungrouped variables", "definition": "Ibr1 + Ibr2", "description": "", "templateType": "anything", "can_override": false}, "L1mH": {"name": "L1mH", "group": "Given in question", "definition": "random(90..200#10 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["L1", "C2", "XC2", "Xl1", "Xbr1", "Xbr2", "Rbr1", "Rbr2", "Zbr1", "Zbr2", "Ibr1", "Ibr2", "Is"], "variable_groups": [{"name": "FreqUsedDefinitions", "variables": ["uF"]}, {"name": "Given in question", "variables": ["R1", "L1mH", "R2", "C2uF", "f", "Vs"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Branch 1", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Current in Branch 1, [[0]] at an angle of [[1]]

\n

Give units in your answer, e.g. deg, ohm, A, V 

\n

", "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "Ibranch1- mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(Ibr1),'A')", "right": "2", "close": "1.0", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "Ibranch1- ph", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(Ibr1)*(180/pi),'deg')", "right": "2", "close": "1.0", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Branch 2", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Current in Branch 2, [[0]] at an angle of [[1]]

\n

Give units in your answer, e.g. deg, ohm, A, V 

", "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "Ibranch2- mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(Ibr2),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "Ibranch2- ph", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(Ibr2)*(180/pi),'deg')", "right": "2", "close": "1.0", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Source Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The magnitude, $|Is|$ = [[0]] at an angle of [[1]]

\n

Give units in your answer, e.g. deg, ohm, A, V, H or F

", "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "Is Mag", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(Is),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "Is Deg", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(Is)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "2021_Midterm_8_Given Z and V Find _PQ_v00", "extensions": ["geogebra", "quantities", "weh"], "custom_part_types": [{"source": {"pk": 19, "author": {"name": "William Haynes", "pk": 2530}, "edit_page": "/part_type/19/edit"}, "name": "Engineering Accuracy with units", "short_name": "engineering-answer", "description": "

A value with units marked right if within an adjustable % error of the correct value.  Marked close if within a wider margin of error.

", "help_url": "", "input_widget": "string", "input_options": {"correctAnswer": "siground(settings['correctAnswer'],4)", "hint": {"static": true, "value": ""}, "allowEmpty": {"static": true, "value": true}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nswitch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n\n\ninterpreted_answer:\nqty(student_scalar, student_units)\n\n\n\ncorrect_quantity:\nsettings[\"correctAnswer\"]\n\n\n\ncorrect_units:\nunits(correct_quantity)\n\n\nallowed_notation_styles:\n[\"plain\",\"en\"]\n\nmatch_student_number:\nmatchnumber(studentAnswer,allowed_notation_styles)\n\nstudent_scalar:\nmatch_student_number[1]\n\nstudent_units:\nreplace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")\n\ngood_units:\ntry(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n\n\nstudent_quantity:\nswitch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n\n\npercent_error:\ntry(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n \n\nright:\npercent_error <= settings['right']\n\n\nclose:\nright_sign and percent_error <= settings['close']\n\nright_sign:\nsign(student_scalar) = sign(correct_quantity)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "switch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "qty(student_scalar, student_units)\n\n"}, {"name": "correct_quantity", "description": "", "definition": "settings[\"correctAnswer\"]\n\n"}, {"name": "correct_units", "description": "", "definition": "units(correct_quantity)\n"}, {"name": "allowed_notation_styles", "description": "", "definition": "[\"plain\",\"en\"]"}, {"name": "match_student_number", "description": "", "definition": "matchnumber(studentAnswer,allowed_notation_styles)"}, {"name": "student_scalar", "description": "", "definition": "match_student_number[1]"}, {"name": "student_units", "description": "

Modify the unit portion of the student's answer by

\n

1. replacing \"ohms\" with \"ohm\"  case insensitive

\n

2. replacing '-' with ' ' 

\n

3. replacing '°' with ' deg' 

\n

to allow answers like 10 ft-lb and 30°

", "definition": "replace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")"}, {"name": "good_units", "description": "", "definition": "try(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n"}, {"name": "student_quantity", "description": "

This fixes the student answer for two common errors.  

\n

If student_units are wrong  - replace with correct units

\n

If student_scalar has the wrong sign - replace with right sign

\n

If student makes both errors, only one gets fixed.

", "definition": "switch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n"}, {"name": "percent_error", "description": "", "definition": "try(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n "}, {"name": "right", "description": "", "definition": "percent_error <= settings['right']\n"}, {"name": "close", "description": "

Only marked close if the student actually has the right sign.

", "definition": "right_sign and percent_error <= settings['close']"}, {"name": "right_sign", "description": "", "definition": "sign(student_scalar) = sign(correct_quantity) "}], "settings": [{"name": "correctAnswer", "label": "Correct Quantity.", "help_url": "", "hint": "The correct answer given as a JME quantity.", "input_type": "code", "default_value": "", "evaluate": true}, {"name": "right", "label": "% Accuracy for right.", "help_url": "", "hint": "Question will be considered correct if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "0.2", "evaluate": true}, {"name": "close", "label": "% Accuracy for close.", "help_url": "", "hint": "Question will be considered close if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "1.0", "evaluate": true}, {"name": "C1", "label": "Close with units.", "help_url": "", "hint": "Partial Credit for close value with appropriate units.  if correct answer is 100 N and close is ±1%,
99  N is accepted.", "input_type": "percent", "default_value": "75"}, {"name": "C2", "label": "No units or wrong sign", "help_url": "", "hint": "Partial credit for forgetting units or using wrong sign.
If the correct answer is 100 N, both 100 and -100 N are accepted.", "input_type": "percent", "default_value": "50"}, {"name": "C3", "label": "Close, no units.", "help_url": "", "hint": "Partial Credit for close value but forgotten units.
This value would be close if the expected units were provided.  If the correct answer is 100 N, and close is ±1%,
99 is accepted.", "input_type": "percent", "default_value": "25"}], "public_availability": "always", "published": true, "extensions": ["quantities"]}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}, {"name": "Judy Rea", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8753/"}], "tags": [], "metadata": {"description": "

series of R and L and C

\n

\n

find Z (mag and Phase)

\n

step find Xl

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

\n

\n

\n

\n

\n

\n

\n

\n

\n

\n

A {Vs} V, 60 Hz ac voltage source supplies a circuit which has a resistance of {Rt} ohms and a reactance of {Xt} ohms connected in series.

\n

\n

\n

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Zt": {"name": "Zt", "group": "Ungrouped variables", "definition": "Rt+i*Xt", "description": "", "templateType": "anything", "can_override": false}, "Vs": {"name": "Vs", "group": "Given in question", "definition": "random(180 .. 280#10)", "description": "", "templateType": "randrange", "can_override": false}, "Is": {"name": "Is", "group": "Ungrouped variables", "definition": "Vs/Zt", "description": "", "templateType": "anything", "can_override": false}, "Ss": {"name": "Ss", "group": "Ungrouped variables", "definition": "Vs*conj(Is)", "description": "", "templateType": "anything", "can_override": false}, "Ps": {"name": "Ps", "group": "Ungrouped variables", "definition": "re(Ss)", "description": "", "templateType": "anything", "can_override": false}, "Qs": {"name": "Qs", "group": "Ungrouped variables", "definition": "im(Ss)", "description": "", "templateType": "anything", "can_override": false}, "pf": {"name": "pf", "group": "Ungrouped variables", "definition": "Ps/abs(Ss)", "description": "", "templateType": "anything", "can_override": false}, "Rt": {"name": "Rt", "group": "Given in question", "definition": "random(5 .. 50#5)", "description": "", "templateType": "randrange", "can_override": false}, "Xt": {"name": "Xt", "group": "Given in question", "definition": "random(-50 .. 50#5)", "description": "", "templateType": "randrange", "can_override": false}, "minTol": {"name": "minTol", "group": "FreqUsedDefinitions", "definition": "0.95", "description": "", "templateType": "anything", "can_override": false}, "maxTol": {"name": "maxTol", "group": "FreqUsedDefinitions", "definition": "1.05", "description": "", "templateType": "anything", "can_override": false}, "Smag": {"name": "Smag", "group": "Ungrouped variables", "definition": "abs(Ss)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["Zt", "Is", "Ss", "Ps", "Qs", "pf", "Smag"], "variable_groups": [{"name": "FreqUsedDefinitions", "variables": ["minTol", "maxTol"]}, {"name": "Given in question", "variables": ["Vs", "Xt", "Rt"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Apparent Pwr", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The  total power, (also called apparant power is) is   [[0]] at an angle of [[1]]

\n

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Smag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Smag*minTol", "maxValue": "Smag*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Sarg", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "arg(Ss)*(180/pi)*minTol", "maxValue": "arg(Ss)*(180/pi)*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Active Pwr", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The  active power, (also called real power ) is  [[0]]

\n

(Include units in your answer e.g.  99.9 W, 99.9 VA or 99.9 VAr)   

", "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "Active Pwr", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(Ps),'W')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Reactive Pwr", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The  active power, (also called real power ) is  [[0]] VAr

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

The  power factor is [[0]]

\n

Note, power factor is unitless, give 4 significant figures in your answer.

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "pf*minTol", "maxValue": "pf*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "3 phase Star and Delta networks", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", ""], "variable_overrides": [[], [], [], []], "questions": [{"name": "01_3phase 4 wire Balanced Load", "extensions": ["geogebra", "quantities", "weh"], "custom_part_types": [{"source": {"pk": 19, "author": {"name": "William Haynes", "pk": 2530}, "edit_page": "/part_type/19/edit"}, "name": "Engineering Accuracy with units", "short_name": "engineering-answer", "description": "

A value with units marked right if within an adjustable % error of the correct value.  Marked close if within a wider margin of error.

", "help_url": "", "input_widget": "string", "input_options": {"correctAnswer": "siground(settings['correctAnswer'],4)", "hint": {"static": true, "value": ""}, "allowEmpty": {"static": true, "value": true}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nswitch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n\n\ninterpreted_answer:\nqty(student_scalar, student_units)\n\n\n\ncorrect_quantity:\nsettings[\"correctAnswer\"]\n\n\n\ncorrect_units:\nunits(correct_quantity)\n\n\nallowed_notation_styles:\n[\"plain\",\"en\"]\n\nmatch_student_number:\nmatchnumber(studentAnswer,allowed_notation_styles)\n\nstudent_scalar:\nmatch_student_number[1]\n\nstudent_units:\nreplace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")\n\ngood_units:\ntry(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n\n\nstudent_quantity:\nswitch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n\n\npercent_error:\ntry(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n \n\nright:\npercent_error <= settings['right']\n\n\nclose:\nright_sign and percent_error <= settings['close']\n\nright_sign:\nsign(student_scalar) = sign(correct_quantity)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "switch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "qty(student_scalar, student_units)\n\n"}, {"name": "correct_quantity", "description": "", "definition": "settings[\"correctAnswer\"]\n\n"}, {"name": "correct_units", "description": "", "definition": "units(correct_quantity)\n"}, {"name": "allowed_notation_styles", "description": "", "definition": "[\"plain\",\"en\"]"}, {"name": "match_student_number", "description": "", "definition": "matchnumber(studentAnswer,allowed_notation_styles)"}, {"name": "student_scalar", "description": "", "definition": "match_student_number[1]"}, {"name": "student_units", "description": "

Modify the unit portion of the student's answer by

\n

1. replacing \"ohms\" with \"ohm\"  case insensitive

\n

2. replacing '-' with ' ' 

\n

3. replacing '°' with ' deg' 

\n

to allow answers like 10 ft-lb and 30°

", "definition": "replace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")"}, {"name": "good_units", "description": "", "definition": "try(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n"}, {"name": "student_quantity", "description": "

This fixes the student answer for two common errors.  

\n

If student_units are wrong  - replace with correct units

\n

If student_scalar has the wrong sign - replace with right sign

\n

If student makes both errors, only one gets fixed.

", "definition": "switch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n"}, {"name": "percent_error", "description": "", "definition": "try(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n "}, {"name": "right", "description": "", "definition": "percent_error <= settings['right']\n"}, {"name": "close", "description": "

Only marked close if the student actually has the right sign.

", "definition": "right_sign and percent_error <= settings['close']"}, {"name": "right_sign", "description": "", "definition": "sign(student_scalar) = sign(correct_quantity) "}], "settings": [{"name": "correctAnswer", "label": "Correct Quantity.", "help_url": "", "hint": "The correct answer given as a JME quantity.", "input_type": "code", "default_value": "", "evaluate": true}, {"name": "right", "label": "% Accuracy for right.", "help_url": "", "hint": "Question will be considered correct if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "0.2", "evaluate": true}, {"name": "close", "label": "% Accuracy for close.", "help_url": "", "hint": "Question will be considered close if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "1.0", "evaluate": true}, {"name": "C1", "label": "Close with units.", "help_url": "", "hint": "Partial Credit for close value with appropriate units.  if correct answer is 100 N and close is ±1%,
99  N is accepted.", "input_type": "percent", "default_value": "75"}, {"name": "C2", "label": "No units or wrong sign", "help_url": "", "hint": "Partial credit for forgetting units or using wrong sign.
If the correct answer is 100 N, both 100 and -100 N are accepted.", "input_type": "percent", "default_value": "50"}, {"name": "C3", "label": "Close, no units.", "help_url": "", "hint": "Partial Credit for close value but forgotten units.
This value would be close if the expected units were provided.  If the correct answer is 100 N, and close is ±1%,
99 is accepted.", "input_type": "percent", "default_value": "25"}], "public_availability": "always", "published": true, "extensions": ["quantities"]}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}, {"name": "Judy Rea", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8753/"}], "tags": [], "metadata": {"description": "

given Voltage and loads calculated all the line currents

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

\n

\n

\n

\n

\n

\n

\n

\n

A 3-phase 4-wire load is supplied by a {VLL} V 3 phase supply.

\n

The load consists of three equal loads of reistance,  $R= $ {qty({R1},'ohm')} and reactance  $X= $ {qty({X1},'ohm')}.

\n

Reference Phasor:  Use the phase voltage between Line1 and Neutral as your zero degree reference phasor.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Z1": {"name": "Z1", "group": "Calculated values", "definition": "R1+i*X1", "description": "", "templateType": "anything", "can_override": false}, "VLL": {"name": "VLL", "group": "Given in question", "definition": "random(400 .. 1000#100)", "description": "", "templateType": "randrange", "can_override": false}, "I1": {"name": "I1", "group": "Calculated values", "definition": "V1N/Z1", "description": "", "templateType": "anything", "can_override": false}, "R1": {"name": "R1", "group": "Given in question", "definition": "random(50 .. 70#10)", "description": "", "templateType": "randrange", "can_override": false}, "VLN": {"name": "VLN", "group": "Calculated values", "definition": "VLL/sqrt(3)", "description": "", "templateType": "anything", "can_override": false}, "X1": {"name": "X1", "group": "Given in question", "definition": "random(-30 .. 30#10)", "description": "", "templateType": "randrange", "can_override": false}, "a": {"name": "a", "group": "Constants", "definition": "cos(120*pi/180) + i*sin(120*pi/180)", "description": "", "templateType": "anything", "can_override": false}, "V1N": {"name": "V1N", "group": "Calculated values", "definition": "VLN*(1+0*i)", "description": "", "templateType": "anything", "can_override": false}, "V2N": {"name": "V2N", "group": "Calculated values", "definition": "VLN*a*a", "description": "", "templateType": "anything", "can_override": false}, "V3N": {"name": "V3N", "group": "Calculated values", "definition": "VLN*a", "description": "", "templateType": "anything", "can_override": false}, "Z2": {"name": "Z2", "group": "Calculated values", "definition": "Z1", "description": "", "templateType": "anything", "can_override": false}, "Z3": {"name": "Z3", "group": "Calculated values", "definition": "Z1", "description": "", "templateType": "anything", "can_override": false}, "I2": {"name": "I2", "group": "Calculated values", "definition": "V2N/Z2", "description": "", "templateType": "anything", "can_override": false}, "I3": {"name": "I3", "group": "Calculated values", "definition": "V3N/Z3", "description": "", "templateType": "anything", "can_override": false}, "I_n": {"name": "I_n", "group": "Calculated values", "definition": "I1+I2+I3", "description": "", "templateType": "anything", "can_override": false}, "r2": {"name": "r2", "group": "Ungrouped variables", "definition": "r1", "description": "", "templateType": "anything", "can_override": false}, "x2": {"name": "x2", "group": "Ungrouped variables", "definition": "x1", "description": "", "templateType": "anything", "can_override": false}, "minTol": {"name": "minTol", "group": "Ungrouped variables", "definition": "0.95", "description": "", "templateType": "anything", "can_override": false}, "maxtol": {"name": "maxtol", "group": "Ungrouped variables", "definition": "1.05", "description": "", "templateType": "anything", "can_override": false}, "IneutralInAmps": {"name": "IneutralInAmps", "group": "Calculated values", "definition": "round(abs(I_n))\n", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "NOT(X1=0)", "maxRuns": 100}, "ungrouped_variables": ["r2", "x2", "minTol", "maxtol"], "variable_groups": [{"name": "FreqUsedDefinitions", "variables": []}, {"name": "Given in question", "variables": ["VLL", "R1", "X1"]}, {"name": "Calculated values", "variables": ["VLN", "V1N", "V2N", "V3N", "Z1", "Z2", "Z3", "I1", "I2", "I3", "I_n", "IneutralInAmps"]}, {"name": "Constants", "variables": ["a"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "I1 Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in line 1, $\\bar{I1}$ is [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": true, "customName": "Phase Voltages", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

If you are told a voltage from a 3 ph power source, assume it is line-to-line voltage unless told other wise.

\n

So $VLL = {VLL} $

\n

For a balanced 3 phase star source, the line-to-neutral voltage (also called the phase voltage) is smaller than line-to-line voltage. 

\n

The ratio is $\\sqrt(3)$

\n

So we have $VLN = VLL/\\sqrt(3) $

\n

So we have $VLN = ${VLN} V

\n

We are told to take V1N as refereence so we have

\n"}, {"type": "information", "useCustomName": true, "customName": "Ohms Law", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Now use Ohm's Law for Phase 1

\n

V1N = ${VLN}$ at $0 deg$

\n

$Z1 = {R1} + j{X1}$

\n

$I1 = V1N/Z1 $  ... remember to use phasors/complex numbers.

"}], "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "I1 Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(I1),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "I1 Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(I1)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "I2 Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in line 2, $\\bar{I2}$ is [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Now use Ohm's Law for Phase2

\n

V2N = ${VLN}$ at $ -120 deg$

\n

The load is balanced. this means the impedance of each phase is equal.

\n

So we can say Z1=Z2=Z3

\n

Z2 = {R2} + ({X2})j

\n

I2 = V2N/Z2   ... remember to use phasors/complex numbers.

"}], "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "I2 Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(I2),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "I2 Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(I2)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "I3 Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in line 3, $\\bar{I3}$ = [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Now use Ohm's Law for Phase 3

\n

V3N = ${VLN}$ at $120 deg$

\n

As before , the load is balanced. this means the impedance of each phase is equal.

\n

So we can say Z1=Z2=Z3

\n

Z2 = {R2} + ({X2})j

\n

I2 = V3N/Z2   ... remember to use phasors/complex numbers.

"}], "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "I3 Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(I3),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "I3 Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(I3)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "In Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in the neutral line is, $\\bar{I_N}$ = [[0]] Amps. 

\n

No need to include the word 'Amps' in your answer.

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

At the star point of the load examine currnets flowing in and out.

\n

 sum of currents OUT =  sum of current IN

\n

$ I_N = I1 + I2 + I3  $

\n

$ I_N = {I1} + {I2} + {I3}  $

\n

... remember to add complex numbers (i.e. include angles or j-terms)

\n

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "In_mag", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "minTol*IneutralInAmps", "maxValue": "maxTol*IneutralInAmps", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "02_3Phase Star 4 wire Unbalanced Load", "extensions": ["geogebra", "quantities", "weh"], "custom_part_types": [{"source": {"pk": 19, "author": {"name": "William Haynes", "pk": 2530}, "edit_page": "/part_type/19/edit"}, "name": "Engineering Accuracy with units", "short_name": "engineering-answer", "description": "

A value with units marked right if within an adjustable % error of the correct value.  Marked close if within a wider margin of error.

", "help_url": "", "input_widget": "string", "input_options": {"correctAnswer": "siground(settings['correctAnswer'],4)", "hint": {"static": true, "value": ""}, "allowEmpty": {"static": true, "value": true}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nswitch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n\n\ninterpreted_answer:\nqty(student_scalar, student_units)\n\n\n\ncorrect_quantity:\nsettings[\"correctAnswer\"]\n\n\n\ncorrect_units:\nunits(correct_quantity)\n\n\nallowed_notation_styles:\n[\"plain\",\"en\"]\n\nmatch_student_number:\nmatchnumber(studentAnswer,allowed_notation_styles)\n\nstudent_scalar:\nmatch_student_number[1]\n\nstudent_units:\nreplace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")\n\ngood_units:\ntry(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n\n\nstudent_quantity:\nswitch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n\n\npercent_error:\ntry(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n \n\nright:\npercent_error <= settings['right']\n\n\nclose:\nright_sign and percent_error <= settings['close']\n\nright_sign:\nsign(student_scalar) = sign(correct_quantity)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "switch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "qty(student_scalar, student_units)\n\n"}, {"name": "correct_quantity", "description": "", "definition": "settings[\"correctAnswer\"]\n\n"}, {"name": "correct_units", "description": "", "definition": "units(correct_quantity)\n"}, {"name": "allowed_notation_styles", "description": "", "definition": "[\"plain\",\"en\"]"}, {"name": "match_student_number", "description": "", "definition": "matchnumber(studentAnswer,allowed_notation_styles)"}, {"name": "student_scalar", "description": "", "definition": "match_student_number[1]"}, {"name": "student_units", "description": "

Modify the unit portion of the student's answer by

\n

1. replacing \"ohms\" with \"ohm\"  case insensitive

\n

2. replacing '-' with ' ' 

\n

3. replacing '°' with ' deg' 

\n

to allow answers like 10 ft-lb and 30°

", "definition": "replace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")"}, {"name": "good_units", "description": "", "definition": "try(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n"}, {"name": "student_quantity", "description": "

This fixes the student answer for two common errors.  

\n

If student_units are wrong  - replace with correct units

\n

If student_scalar has the wrong sign - replace with right sign

\n

If student makes both errors, only one gets fixed.

", "definition": "switch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n"}, {"name": "percent_error", "description": "", "definition": "try(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n "}, {"name": "right", "description": "", "definition": "percent_error <= settings['right']\n"}, {"name": "close", "description": "

Only marked close if the student actually has the right sign.

", "definition": "right_sign and percent_error <= settings['close']"}, {"name": "right_sign", "description": "", "definition": "sign(student_scalar) = sign(correct_quantity) "}], "settings": [{"name": "correctAnswer", "label": "Correct Quantity.", "help_url": "", "hint": "The correct answer given as a JME quantity.", "input_type": "code", "default_value": "", "evaluate": true}, {"name": "right", "label": "% Accuracy for right.", "help_url": "", "hint": "Question will be considered correct if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "0.2", "evaluate": true}, {"name": "close", "label": "% Accuracy for close.", "help_url": "", "hint": "Question will be considered close if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "1.0", "evaluate": true}, {"name": "C1", "label": "Close with units.", "help_url": "", "hint": "Partial Credit for close value with appropriate units.  if correct answer is 100 N and close is ±1%,
99  N is accepted.", "input_type": "percent", "default_value": "75"}, {"name": "C2", "label": "No units or wrong sign", "help_url": "", "hint": "Partial credit for forgetting units or using wrong sign.
If the correct answer is 100 N, both 100 and -100 N are accepted.", "input_type": "percent", "default_value": "50"}, {"name": "C3", "label": "Close, no units.", "help_url": "", "hint": "Partial Credit for close value but forgotten units.
This value would be close if the expected units were provided.  If the correct answer is 100 N, and close is ±1%,
99 is accepted.", "input_type": "percent", "default_value": "25"}], "public_availability": "always", "published": true, "extensions": ["quantities"]}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}, {"name": "Judy Rea", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8753/"}], "tags": [], "metadata": {"description": "

given Voltage and loads calculated all the line currents

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

\n

\n

\n

\n

\n

\n

\n

\n

A 3-phase 4-wire load is supplied by a {VLL} V 3 phase supply.

\n

The red phase of the star load consists has reistance,  $R= $ {qty({R1},'ohm')} and reactance  $X= $ {qty({X1},'ohm')}.

\n

The yellow phase of the star load consists has resistance $R= $ {qty({R2},'ohm')} and reactance  $X= $ {qty({X2},'ohm')}.

\n

The blue phase of the star load consists has resistance   $R= $ {qty({R3},'ohm')} and reactance  $X= $ {qty({X3},'ohm')}.

\n

Reference Phasor:  Use the phase voltage between Line1 and Neutral as your zero degree reference phasor.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Z1": {"name": "Z1", "group": "Calculated values", "definition": "R1+i*X1", "description": "", "templateType": "anything", "can_override": false}, "VLL": {"name": "VLL", "group": "Given in question", "definition": "random(400 .. 1000#100)", "description": "", "templateType": "randrange", "can_override": false}, "I1": {"name": "I1", "group": "Calculated values", "definition": "V1N/Z1", "description": "", "templateType": "anything", "can_override": false}, "R1": {"name": "R1", "group": "Given in question", "definition": "random(50 .. 70#10)", "description": "", "templateType": "randrange", "can_override": false}, "VLN": {"name": "VLN", "group": "Calculated values", "definition": "VLL/sqrt(3)", "description": "", "templateType": "anything", "can_override": false}, "X1": {"name": "X1", "group": "Given in question", "definition": "random(-30 .. 30#10)", "description": "", "templateType": "randrange", "can_override": false}, "a": {"name": "a", "group": "Constants", "definition": "cos(120*pi/180) + i*sin(120*pi/180)", "description": "", "templateType": "anything", "can_override": false}, "V1N": {"name": "V1N", "group": "Calculated values", "definition": "VLN*(1+0*i)", "description": "", "templateType": "anything", "can_override": false}, "V2N": {"name": "V2N", "group": "Calculated values", "definition": "VLN*a*a", "description": "", "templateType": "anything", "can_override": false}, "V3N": {"name": "V3N", "group": "Calculated values", "definition": "VLN*a", "description": "", "templateType": "anything", "can_override": false}, "Z2": {"name": "Z2", "group": "Calculated values", "definition": "R2+i*X2", "description": "", "templateType": "anything", "can_override": false}, "Z3": {"name": "Z3", "group": "Calculated values", "definition": "R3+i*X3", "description": "", "templateType": "anything", "can_override": false}, "I2": {"name": "I2", "group": "Calculated values", "definition": "V2N/Z2", "description": "", "templateType": "anything", "can_override": false}, "I3": {"name": "I3", "group": "Calculated values", "definition": "V3N/Z3", "description": "", "templateType": "anything", "can_override": false}, "I_n": {"name": "I_n", "group": "Calculated values", "definition": "I1+I2+I3", "description": "", "templateType": "anything", "can_override": false}, "R2": {"name": "R2", "group": "Given in question", "definition": "50", "description": "", "templateType": "anything", "can_override": false}, "R3": {"name": "R3", "group": "Given in question", "definition": "100", "description": "", "templateType": "anything", "can_override": false}, "X3": {"name": "X3", "group": "Given in question", "definition": "random(-30 .. 30#10)", "description": "", "templateType": "randrange", "can_override": false}, "X2": {"name": "X2", "group": "Given in question", "definition": "random(-30 .. 30#10)", "description": "", "templateType": "randrange", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "FreqUsedDefinitions", "variables": []}, {"name": "Given in question", "variables": ["VLL", "R1", "X1", "R2", "X2", "R3", "X3"]}, {"name": "Calculated values", "variables": ["VLN", "V1N", "V2N", "V3N", "Z1", "Z2", "Z3", "I1", "I2", "I3", "I_n"]}, {"name": "Constants", "variables": ["a"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null}, {"type": "gapfill", "useCustomName": true, "customName": "I1 Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in line 1, $\\bar{I1}$ is [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": true, "customName": "Phase voltages", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Remember when a voltage is given describing a 3 phase source, unless you are told otherwise, it is the line-to-line voltage.   VLL = {VLL} V

\n

Remember for a star arrangement Line-to-line voltages are bigger than Line-to-neutral by $\\sqrt(3).

\n

So we can say

\n\n

\n"}, {"type": "information", "useCustomName": true, "customName": "Ohms Law", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$Z1 = ${R1} + ({X1})j

\n

$V1N = $ {V1N}

\n

So I1 = V1N/Z1  = ({V1N})/({Z1})

"}], "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "I1 Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(I1),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "I1 Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(I1)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "I2 Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in line 2, $\\bar{I2}$ is [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Remember when a voltage is given describing a 3 phase source, unless you are told otherwise, it is the line-to-line voltage.   VLL = {VLL} V

\n

Remember for a star arrangement Line-to-line voltages are bigger than Line-to-neutral by $\\sqrt(3).

\n

So we can say

\n"}, {"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$Z2 = ${R2} + ({X2})j

\n

$V2N = $ {V2N}

\n

So I2 = V2N/Z2  = ({V2N})/({Z2})

"}], "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "I2 Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(I2),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "I2 Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(I2)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "I3 Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in line 3, $\\bar{I3}$ = [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$Z3 = ${R3} + ({X3})j

\n

$V3N = $ {V3N}

\n

So I3 = V3N/Z3  = ({V3N})/({Z3})

"}], "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "I3 Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(I3),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "I3 Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(I3)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "In Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in the neutral line is, $\\bar{I_N}$ = [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": true, "customName": "Currents In=Currents Out", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

currents IN = currents OUT   ...at the star node in the laod.

\n

 $\\bar{I_N}=\\bar{I_1}+\\bar{I_2}+\\bar{I_3}$

\n

"}], "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "In Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(I_n),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "In Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(I_n)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "03_3Phase_Delta_BalancedLoad", "extensions": ["geogebra", "quantities", "weh"], "custom_part_types": [{"source": {"pk": 19, "author": {"name": "William Haynes", "pk": 2530}, "edit_page": "/part_type/19/edit"}, "name": "Engineering Accuracy with units", "short_name": "engineering-answer", "description": "

A value with units marked right if within an adjustable % error of the correct value.  Marked close if within a wider margin of error.

", "help_url": "", "input_widget": "string", "input_options": {"correctAnswer": "siground(settings['correctAnswer'],4)", "hint": {"static": true, "value": ""}, "allowEmpty": {"static": true, "value": true}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nswitch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n\n\ninterpreted_answer:\nqty(student_scalar, student_units)\n\n\n\ncorrect_quantity:\nsettings[\"correctAnswer\"]\n\n\n\ncorrect_units:\nunits(correct_quantity)\n\n\nallowed_notation_styles:\n[\"plain\",\"en\"]\n\nmatch_student_number:\nmatchnumber(studentAnswer,allowed_notation_styles)\n\nstudent_scalar:\nmatch_student_number[1]\n\nstudent_units:\nreplace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")\n\ngood_units:\ntry(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n\n\nstudent_quantity:\nswitch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n\n\npercent_error:\ntry(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n \n\nright:\npercent_error <= settings['right']\n\n\nclose:\nright_sign and percent_error <= settings['close']\n\nright_sign:\nsign(student_scalar) = sign(correct_quantity)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "switch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "qty(student_scalar, student_units)\n\n"}, {"name": "correct_quantity", "description": "", "definition": "settings[\"correctAnswer\"]\n\n"}, {"name": "correct_units", "description": "", "definition": "units(correct_quantity)\n"}, {"name": "allowed_notation_styles", "description": "", "definition": "[\"plain\",\"en\"]"}, {"name": "match_student_number", "description": "", "definition": "matchnumber(studentAnswer,allowed_notation_styles)"}, {"name": "student_scalar", "description": "", "definition": "match_student_number[1]"}, {"name": "student_units", "description": "

Modify the unit portion of the student's answer by

\n

1. replacing \"ohms\" with \"ohm\"  case insensitive

\n

2. replacing '-' with ' ' 

\n

3. replacing '°' with ' deg' 

\n

to allow answers like 10 ft-lb and 30°

", "definition": "replace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")"}, {"name": "good_units", "description": "", "definition": "try(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n"}, {"name": "student_quantity", "description": "

This fixes the student answer for two common errors.  

\n

If student_units are wrong  - replace with correct units

\n

If student_scalar has the wrong sign - replace with right sign

\n

If student makes both errors, only one gets fixed.

", "definition": "switch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n"}, {"name": "percent_error", "description": "", "definition": "try(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n "}, {"name": "right", "description": "", "definition": "percent_error <= settings['right']\n"}, {"name": "close", "description": "

Only marked close if the student actually has the right sign.

", "definition": "right_sign and percent_error <= settings['close']"}, {"name": "right_sign", "description": "", "definition": "sign(student_scalar) = sign(correct_quantity) "}], "settings": [{"name": "correctAnswer", "label": "Correct Quantity.", "help_url": "", "hint": "The correct answer given as a JME quantity.", "input_type": "code", "default_value": "", "evaluate": true}, {"name": "right", "label": "% Accuracy for right.", "help_url": "", "hint": "Question will be considered correct if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "0.2", "evaluate": true}, {"name": "close", "label": "% Accuracy for close.", "help_url": "", "hint": "Question will be considered close if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "1.0", "evaluate": true}, {"name": "C1", "label": "Close with units.", "help_url": "", "hint": "Partial Credit for close value with appropriate units.  if correct answer is 100 N and close is ±1%,
99  N is accepted.", "input_type": "percent", "default_value": "75"}, {"name": "C2", "label": "No units or wrong sign", "help_url": "", "hint": "Partial credit for forgetting units or using wrong sign.
If the correct answer is 100 N, both 100 and -100 N are accepted.", "input_type": "percent", "default_value": "50"}, {"name": "C3", "label": "Close, no units.", "help_url": "", "hint": "Partial Credit for close value but forgotten units.
This value would be close if the expected units were provided.  If the correct answer is 100 N, and close is ±1%,
99 is accepted.", "input_type": "percent", "default_value": "25"}], "public_availability": "always", "published": true, "extensions": ["quantities"]}], "resources": [["question-resources/Delta2.JPG", "/srv/numbas/media/question-resources/Delta2.JPG"], ["question-resources/delta1.JPG", "/srv/numbas/media/question-resources/delta1.JPG"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}, {"name": "Judy Rea", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8753/"}], "tags": [], "metadata": {"description": "

given Voltage and loads calculated all the line currents

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

\n

\n

\n

\n

\n

\n

\n

\n

A 3-phase 4-wire load is supplied by a {VLL} V 3 phase supply.

\n

The load consists of three equal loads of reistance,  $R= $ {qty({R1},'ohm')} and reactance  $X= $ {qty({X1},'ohm')}.

\n

Find the phase currents and the line currents flowing in this network.

\n

Reference Phasor:  Use the voltage between Line1 and Line2 as your zero degree reference phasor.

\n

", "advice": "", "rulesets": {}, "variables": {"Z1": {"name": "Z1", "group": "Calculated values", "definition": "R1+i*X1", "description": "", "templateType": "anything"}, "VLL": {"name": "VLL", "group": "Given in question", "definition": "random(400 .. 1000#100)", "description": "", "templateType": "randrange"}, "IphA": {"name": "IphA", "group": "Calculated values", "definition": "V12/Z1", "description": "", "templateType": "anything"}, "R1": {"name": "R1", "group": "Given in question", "definition": "random(50 .. 70#10)", "description": "", "templateType": "randrange"}, "VLN": {"name": "VLN", "group": "Calculated values", "definition": "VLL/sqrt(3)", "description": "", "templateType": "anything"}, "X1": {"name": "X1", "group": "Given in question", "definition": "random(-30 .. 30#10)", "description": "", "templateType": "randrange"}, "a": {"name": "a", "group": "Constants", "definition": "cos(120*pi/180) + i*sin(120*pi/180)", "description": "", "templateType": "anything"}, "V12": {"name": "V12", "group": "Calculated values", "definition": "VLL*(1+0*i)", "description": "", "templateType": "anything"}, "V23": {"name": "V23", "group": "Calculated values", "definition": "VLL*a*a", "description": "", "templateType": "anything"}, "V31": {"name": "V31", "group": "Calculated values", "definition": "VLL*a", "description": "", "templateType": "anything"}, "Z2": {"name": "Z2", "group": "Calculated values", "definition": "Z1", "description": "", "templateType": "anything"}, "Z3": {"name": "Z3", "group": "Calculated values", "definition": "Z1", "description": "", "templateType": "anything"}, "IphB": {"name": "IphB", "group": "Calculated values", "definition": "V23/Z2", "description": "", "templateType": "anything"}, "IphC": {"name": "IphC", "group": "Calculated values", "definition": "V31/Z3", "description": "", "templateType": "anything"}, "I1": {"name": "I1", "group": "Calculated values", "definition": "IphA- IphC", "description": "", "templateType": "anything"}, "test": {"name": "test", "group": "Ungrouped variables", "definition": "abs(I1)", "description": "", "templateType": "anything"}, "I2": {"name": "I2", "group": "Calculated values", "definition": "IphB - IphA", "description": "", "templateType": "anything"}, "I3": {"name": "I3", "group": "Calculated values", "definition": "IphC-IphB", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["test"], "variable_groups": [{"name": "FreqUsedDefinitions", "variables": []}, {"name": "Given in question", "variables": ["VLL", "R1", "X1"]}, {"name": "Calculated values", "variables": ["VLN", "V12", "V23", "V31", "Z1", "Z2", "Z3", "IphA", "IphB", "IphC", "I1", "I2", "I3"]}, {"name": "Constants", "variables": ["a"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Line to Line voltages", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

As instructed in the question the zero degree reference phasor is line to line  voltage, V12

\n

$V_{12} = ${VLL }$ \\angle  0 ^{\\circ} $  , $V_{23} = ${VLL }$\\angle $ [[0]]$^{\\circ} $   , $V_{31} = ${VLL }$\\angle $ [[1]]$^{\\circ} $     

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "angle2", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "-120", "maxValue": "-120", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "angle3", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "120", "maxValue": "120", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "IphA Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in phase A, $\\bar{IphA}$ is [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": true, "customName": "Impedance ", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

We are given resistance and reactance so can calculate $Z = R + j (X_L-X_C)

\n

"}, {"type": "information", "useCustomName": true, "customName": "Line current or phase current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Before you find the line current you must first fine the phase currents in each phase. 

\n

Remember a delta is like a triangle withe points connectd to the \"line\"

\n\n

Voltages in  DELTA  Line to Line voltage = phase voltage ...  VphA = V12  etc.

\n

Currents in DELTA  phase currents are not the same as line currents.

\n

\n

Calculate each phase current first using ohm's law. IphA = VphA/ZphA

\n

"}], "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "IphA Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(IphA),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "IphA Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(IphA)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "IphB Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in phase A, $\\bar{IphB}$ is [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": true, "customName": "Impedance ", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

We are given resistance and reactance so can calculate $Z = R + j (X_L-X_C)

\n

"}, {"type": "information", "useCustomName": true, "customName": "Line current or phase current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Before you find the line current you must first fine the phase currents in each phase. 

\n

Remember a delta is like a triangle withe points connectd to the \"line\"

\n\n

Voltages in  DELTA  Line to Line voltage = phase voltage ...  VphA = V12  etc.

\n

Currents in DELTA  phase currents are not the same as line currents.

\n

\n

Calculate each phase current first using ohm's law. IphA = VphA/ZphA

\n

"}], "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "IphB Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(IphB),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "IphB Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(IphB)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "IphC Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in phase C, $\\bar{IphC}$ is [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": true, "customName": "Impedance ", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

We are given resistance and reactance so can calculate $Z = R + j (X_L-X_C)

\n

"}, {"type": "information", "useCustomName": true, "customName": "Line current or phase current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Before you find the line current you must first fine the phase currents in each phase. 

\n

Remember a delta is like a triangle withe points connectd to the \"line\"

\n\n

Voltages in  DELTA  Line to Line voltage = phase voltage ...  VphA = V12  etc.

\n

Currents in DELTA  phase currents are not the same as line currents.

\n

\n

Calculate each phase current first using ohm's law. IphA = VphA/ZphA

\n

"}], "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "IphC Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(IphC),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "IphC Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(IphC)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "I1 Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in line 1, $\\bar{I1}$ is [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": true, "customName": "Equations for line currents in DELTA", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

"}], "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "I1 Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(I1),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "I1 Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(I1)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "I2 Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in line 2, $\\bar{I2}$ is [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": true, "customName": "Equations for line currents in DELTA", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

"}], "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "I2 Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(I2),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "I2 Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(I2)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "I3 Current", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The current in line 3, $\\bar{I3}$ = [[0]] at an angle of [[1]].

\n

(Include units in your answer e.g. 9.99 ohm, 9.99 A, 9.99 V and 99.9 deg)   

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

"}], "gaps": [{"type": "engineering-answer", "useCustomName": true, "customName": "I3 Mag", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(abs(I3),'A')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}, {"type": "engineering-answer", "useCustomName": true, "customName": "I3 Deg", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "settings": {"correctAnswer": "qty(arg(I3)*(180/pi),'deg')", "right": "2", "close": "5", "C1": "75", "C2": "50", "C3": "25"}}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "04_3Phase_Delta_UnbalancedLoad", "extensions": ["geogebra", "quantities", "weh"], "custom_part_types": [], "resources": [["question-resources/Delta2.JPG", "/srv/numbas/media/question-resources/Delta2.JPG"], ["question-resources/delta1.JPG", "/srv/numbas/media/question-resources/delta1.JPG"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}, {"name": "Judy Rea", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8753/"}], "tags": [], "metadata": {"description": "

given Voltage and loads calculated all the line currents

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

\n

\n

\n

\n

\n

\n

\n

\n

A 3-phase 4-wire load is supplied by a {VLL} V 3 phase supply.

\n

The load consists of three loads

\n\n

Find the line currents flowing in this network.

\n

Reference Phasor:  Use the voltage between Line1 and Line2 as your zero degree reference phasor.

\n

", "advice": "", "rulesets": {}, "variables": {"Z1": {"name": "Z1", "group": "Calculated values", "definition": "R1+i*X1", "description": "", "templateType": "anything"}, "VLL": {"name": "VLL", "group": "Given in question", "definition": "random(400 .. 1000#100)", "description": "", "templateType": "randrange"}, "IphA": {"name": "IphA", "group": "Calculated values", "definition": "V12/Z1", "description": "", "templateType": "anything"}, "R1": {"name": "R1", "group": "Given in question", "definition": "random(50 .. 70#10)", "description": "", "templateType": "randrange"}, "VLN": {"name": "VLN", "group": "Calculated values", "definition": "VLL/sqrt(3)", "description": "", "templateType": "anything"}, "X1": {"name": "X1", "group": "Given in question", "definition": "random(-30 .. 30#10)", "description": "", "templateType": "randrange"}, "a": {"name": "a", "group": "Constants", "definition": "cos(120*pi/180) + i*sin(120*pi/180)", "description": "", "templateType": "anything"}, "V12": {"name": "V12", "group": "Calculated values", "definition": "VLL*(1+0*i)", "description": "", "templateType": "anything"}, "V23": {"name": "V23", "group": "Calculated values", "definition": "VLL*a*a", "description": "", "templateType": "anything"}, "V31": {"name": "V31", "group": "Calculated values", "definition": "VLL*a", "description": "", "templateType": "anything"}, "Z2": {"name": "Z2", "group": "Calculated values", "definition": "R2+i*X2", "description": "", "templateType": "anything"}, "Z3": {"name": "Z3", "group": "Calculated values", "definition": "R3+i*X3", "description": "", "templateType": "anything"}, "IphB": {"name": "IphB", "group": "Calculated values", "definition": "V23/Z2", "description": "", "templateType": "anything"}, "IphC": {"name": "IphC", "group": "Calculated values", "definition": "V31/Z3", "description": "", "templateType": "anything"}, "I1": {"name": "I1", "group": "Calculated values", "definition": "IphA- IphC", "description": "", "templateType": "anything"}, "test": {"name": "test", "group": "Ungrouped variables", "definition": "abs(I1)", "description": "", "templateType": "anything"}, "I2": {"name": "I2", "group": "Calculated values", "definition": "IphB - IphA", "description": "", "templateType": "anything"}, "I3": {"name": "I3", "group": "Calculated values", "definition": "IphC-IphB", "description": "", "templateType": "anything"}, "R2": {"name": "R2", "group": "Given in question", "definition": "random(80 .. 150#10)", "description": "", "templateType": "randrange"}, "X2": {"name": "X2", "group": "Given in question", "definition": "random(-50 .. 50#10)", "description": "", "templateType": "randrange"}, "X3": {"name": "X3", "group": "Given in question", "definition": "random(-50 .. 50#10)", "description": "", "templateType": "randrange"}, "R3": {"name": "R3", "group": "Given in question", "definition": "random(50 .. 150#10)", "description": "", "templateType": "randrange"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["test"], "variable_groups": [{"name": "FreqUsedDefinitions", "variables": []}, {"name": "Given in question", "variables": ["VLL", "R1", "X1", "R2", "X2", "R3", "X3"]}, {"name": "Calculated values", "variables": ["VLN", "V12", "V23", "V31", "Z1", "Z2", "Z3", "IphA", "IphB", "IphC", "I1", "I2", "I3"]}, {"name": "Constants", "variables": ["a"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Line to Line voltages", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

As instructed in the question the zero degree reference phasor is line to line  voltage, V12. Fill in the angles of the other two voltages

\n

$V_{12} = ${VLL }$ \\angle  0 ^{\\circ} V$  , $V_{23} = ${VLL }$\\angle $ [[0]]$^{\\circ} V$   , $V_{31} = ${VLL }$\\angle $ [[1]]$^{\\circ} V$     

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "angle2", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "-120", "maxValue": "-120", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "angle3", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "120", "maxValue": "120", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Phase voltages", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

In DELTA loads, the phase voltages are the same as the line to line voltages so 

\n

$V_{A} = ${VLL }$ \\angle  0 ^{\\circ} V$  , $V_{B} = ${VLL }$\\angle $ [[0]]$^{\\circ} V$   , $V_{C} = ${VLL }$\\angle $ [[1]]$^{\\circ} V$     

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "angle2", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "-120", "maxValue": "-120", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "angle3", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "120", "maxValue": "120", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Phase Impedance", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The impedance in each phase is; 

\n

$Z_{A} = ($ [[0]]$ \\angle  $[[1]]$ ^{\\circ}) \\Omega$  , 

\n

$Z_{B} = ($ [[2]]$ \\angle  $[[3]]$ ^{\\circ}) \\Omega$  ,

\n

$Z_{C} = ($ [[4]]$ \\angle  $[[5]]$ ^{\\circ} )\\Omega$  

\n

\n

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Use $Z = R + j(X_L - X_C) $ for each phase.

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "ZAmag", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(Z1) * 0.98", "maxValue": "abs(Z1) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "ZAph", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "arg(Z1)*(180/pi) * 0.98", "maxValue": "arg(Z1)*(180/pi) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "ZBmag", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(Z2) * 0.98", "maxValue": "abs(Z2) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "ZBph", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "arg(Z2)*(180/pi) * 0.98", "maxValue": "arg(Z2)*(180/pi) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "ZCmag", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(Z3) * 0.98", "maxValue": "abs(Z3) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "ZCph", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "arg(Z3)*(180/pi) * 0.98", "maxValue": "arg(Z3)*(180/pi) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Phase Currents", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The phase currents in each phase are 

\n

$I_{A} = ($ [[0]]$ \\angle  $[[1]]$ ^{\\circ} )A$  , 

\n

$I_{B} = ($ [[2]]$ \\angle  $[[3]]$ ^{\\circ} )A$  ,

\n

$I_{C} = ($ [[4]]$ \\angle  $[[5]]$ ^{\\circ} )A$  

\n

\n

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": true, "customName": "Phase current - Ohms Law", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

For each phase use Ohms Law

\n

current through a phase = voltage across that phase / impedence ofhta that phase

\n

e.g. $IphA = \\frac{VphA}{ ZphA}$  and so on.

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "IphAmag", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(IphA) * 0.98", "maxValue": "abs(IphA) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "IphAph", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "arg(IphA)*(180/pi) * 0.98", "maxValue": "arg(IphA)*(180/pi) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "IphBmag", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(IphB) *0.98", "maxValue": "abs(IphB) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "IphBph", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "arg(IphB)*(180/pi) * 0.98", "maxValue": "arg(IphB)*(180/pi) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "IphCmag", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(IphC) * 0.98", "maxValue": "abs(IphC) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "IphCph", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "arg(IphC)*(180/pi) * 0.98", "maxValue": "arg(IphC)*(180/pi) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Line Currents", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The Line currents in flowing to this load are

\n

$I_{1} = ( $ [[0]]$ \\angle  $[[1]]$ ^{\\circ} )A$  , 

\n

$I_{2} = ($ [[2]]$ \\angle  $[[4]]$ ^{\\circ} )A$  ,

\n

$I_{2} = ($ [[3]]$ \\angle  $[[5]]$ ^{\\circ} )A$  

\n

\n

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": true, "customName": "Equations for line currents in DELTA", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "I1mag", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(I1) * 0.98", "maxValue": "abs(I1) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "I1ph", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "arg(I1)*(180/pi) * 0.98", "maxValue": "arg(I1)*(180/pi) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "I2mag", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(I2) * 0.98", "maxValue": "abs(I2) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "I3mag", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(I3) * 0.98", "maxValue": "abs(I3) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "I2ph", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "arg(I2)*(180/pi) * 0.98", "maxValue": "arg(I2)*(180/pi) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "I3ph", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "arg(I3)*(180/pi) * 0.98", "maxValue": "arg(I3)*(180/pi) * 1.02", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "Power Factor Correction", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", ""], "variable_overrides": [[], []], "questions": [{"name": "00_PFC_3load_givenDifferentInputs", "extensions": ["geogebra", "quantities", "weh"], "custom_part_types": [], "resources": [["question-resources/Delta2.JPG", "/srv/numbas/media/question-resources/Delta2.JPG"], ["question-resources/delta1.JPG", "/srv/numbas/media/question-resources/delta1.JPG"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}, {"name": "Judy Rea", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8753/"}], "tags": [], "metadata": {"description": "

given Voltage and loads calculated all the line currents

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

\n

\n

\n

\n

\n

\n

\n

\n

A chemical plant consists for 3 loads

\n\n

(a) Calculate the total power factor of the power consumed by these loads in the chemical plant.

\n

(b) Determine the size of capacitor required (in kVAr) to ensure unity power factor.

\n

(c) Determine the size of capacitor required (in kVAr) to achive a power factor of at least 0.95. 

\n

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"P1": {"name": "P1", "group": "Given in question", "definition": "random(10 .. 20#1)", "description": "

kW

", "templateType": "randrange", "can_override": false}, "pf1": {"name": "pf1", "group": "Given in question", "definition": "random(0.6 .. 0.75#0.05)", "description": "", "templateType": "randrange", "can_override": false}, "S1": {"name": "S1", "group": "Calculated values", "definition": "P1/pf1", "description": "", "templateType": "anything", "can_override": false}, "S2": {"name": "S2", "group": "Given in question", "definition": "random(8 .. 15#1)", "description": "", "templateType": "randrange", "can_override": false}, "Q1": {"name": "Q1", "group": "Calculated values", "definition": "sqrt(S1^2-P1^2)", "description": "", "templateType": "anything", "can_override": false}, "P2": {"name": "P2", "group": "Calculated values", "definition": "S2*pf2", "description": "", "templateType": "anything", "can_override": false}, "Q2": {"name": "Q2", "group": "Calculated values", "definition": "sqrt(S2^2-P2^2)", "description": "", "templateType": "anything", "can_override": false}, "pf2": {"name": "pf2", "group": "Given in question", "definition": "random(0.6 .. 0.9#0.1)", "description": "", "templateType": "randrange", "can_override": false}, "Q3MagCap": {"name": "Q3MagCap", "group": "Given in question", "definition": "random(3 .. 7#1)", "description": "", "templateType": "randrange", "can_override": false}, "pfTotal": {"name": "pfTotal", "group": "Calculated values", "definition": "0.8", "description": "", "templateType": "anything", "can_override": false}, "Ptotal": {"name": "Ptotal", "group": "Calculated values", "definition": "P1+P2+P3", "description": "", "templateType": "anything", "can_override": false}, "P3": {"name": "P3", "group": "Given in question", "definition": "0", "description": "", "templateType": "anything", "can_override": false}, "Qtotal": {"name": "Qtotal", "group": "Calculated values", "definition": "Q1+Q2+Q3", "description": "", "templateType": "anything", "can_override": false}, "Q3": {"name": "Q3", "group": "Calculated values", "definition": "-1*Q3MagCap\n", "description": "", "templateType": "anything", "can_override": false}, "Stotal": {"name": "Stotal", "group": "Calculated values", "definition": "Ptotal+i*Qtotal", "description": "", "templateType": "anything", "can_override": false}, "pfUncorrected": {"name": "pfUncorrected", "group": "Calculated values", "definition": "Ptotal/abs(Stotal)", "description": "", "templateType": "anything", "can_override": false}, "minTol": {"name": "minTol", "group": "Constants", "definition": "0.98", "description": "", "templateType": "anything", "can_override": false}, "maxTol": {"name": "maxTol", "group": "Constants", "definition": "1.02", "description": "", "templateType": "anything", "can_override": false}, "S3": {"name": "S3", "group": "Calculated values", "definition": "P3+i*Q3", "description": "

Q3 is already negative by definition.

", "templateType": "anything", "can_override": false}, "pfRequired": {"name": "pfRequired", "group": "Given in question", "definition": "0.95", "description": "", "templateType": "anything", "can_override": false}, "SrequiredMag": {"name": "SrequiredMag", "group": "Calculated values", "definition": "Ptotal/pfRequired", "description": "", "templateType": "anything", "can_override": false}, "QtotalRequired": {"name": "QtotalRequired", "group": "Calculated values", "definition": "sqrt(SrequiredMag^2-Ptotal^2)", "description": "", "templateType": "anything", "can_override": false}, "Qpfc": {"name": "Qpfc", "group": "Calculated values", "definition": "QtotalRequired - Qtotal", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "pfUncorrected < 0.8", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "FreqUsedDefinitions", "variables": []}, {"name": "Given in question", "variables": ["P1", "pf1", "S2", "pf2", "Q3MagCap", "P3", "pfRequired"]}, {"name": "Calculated values", "variables": ["S1", "Q1", "P2", "Q2", "Q3", "S3", "pfTotal", "Ptotal", "Qtotal", "Stotal", "pfUncorrected", "SrequiredMag", "QtotalRequired", "Qpfc"]}, {"name": "Constants", "variables": ["minTol", "maxTol"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Examine each load", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Complete the follwoing table 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
QS
Load 1[[0]] kW[[3]] kVAr[[6]] kVA
Load 2[[1]] kW[[4]] kVAr[[7]] kVA
Load 3[[2]] kW[[5]] kVAr\n

[[8]] kVA

\n
\n

", "stepsPenalty": "4.5", "steps": [{"type": "information", "useCustomName": true, "customName": "Help", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "
\n

Use units to help know what info you are given;

\n\n

If you know any two from these five variables, P, Q, S , pf and $\\theta$ ...

\n

...  then you can always find the other values using these two equations

\n\n

\n

Also, you will need to be careful with polarity of reactive power depeding on leading or lagging loads.  

\n

Inductors will have +Q values. Capactitors are the opposite. (i.e. -Q values)

\n

CIVIL ...use this to work if Cap or Inductor.  

\n

e.g.  current __________ voltage (lead or lag)

\n

\n
"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "P1", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P1*minTol", "maxValue": "P1*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "P2", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P2*minTol", "maxValue": "P2*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "P3", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P3*minTol", "maxValue": "P3*maxTol", "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": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Q1*minTol", "maxValue": "Q1*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Q2", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Q2*minTol", "maxValue": "Q2*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Q3", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Q3*minTol", "maxValue": "Q3*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "S1", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(S1)*minTol", "maxValue": "abs(S1)*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "S2", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(S2)*minTol", "maxValue": "abs(S2)*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "S3", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(S3)*minTol", "maxValue": "abs(S3)*maxTol", "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": "(a) Total Load", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The combined load is there for $($[[0]]}$\\angle $[[1]]$^{\\circ}) kVA = $ [[2]] $kW + j$[[3]] $kVAr$

\n

And the uncorrected power factor is [[4]].

\n

", "stepsPenalty": "2.5", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Add all the real power values to get $P_{total}$

\n

Add all the reactive power values to get $Q_{total}$

\n

Then find total apparent power $S_{total} = P_{total} +jQ_{total}$ 

\n

Finaly, convert from rectangular to polar form. 

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Smag", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(Stotal)*minTol", "maxValue": "abs(Stotal)*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Sph", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "arg(Stotal)*(180/pi) *minTol", "maxValue": "arg(Stotal)*(180/pi)*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "P", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Ptotal*minTol", "maxValue": "Ptotal*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Q", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Qtotal*minTol", "maxValue": "Qtotal*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "pfTotal", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "pfUncorrected*minTol", "maxValue": "pfUncorrected*maxTol", "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": "(b) PFCunity", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

An additional capacative load of [[0]] kVar is required to correct the overall power factor to unity.

", "stepsPenalty": "0.5", "steps": [{"type": "information", "useCustomName": true, "customName": "Help with finding Qpfc", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

In these questions, we know two things about how the newTotal load will look

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

P

\n

[kW]

\n
\n

Q

\n

[kVAr]

\n
S [kVA]pf$|\\theta|$
Original Load{round(Ptotal)}{round(Qtotal)}        
Additional  PFC 0
New Total Load = OrigLoad + PFC{round(Ptotal)}{round(Ptotal)}1
\n

Now working on the New Total Row, we know 2 of the 5 variables.  So we can calulate the others

\n

(we are really only intersted in Q so we'll only work that one out.)

\n

Since $pf=\\frac{P}{|S|} $, we have |S|= {round(Ptotal)}  therefore Q = 0 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
P [kW]Q [kVAr] S [kVA]pf$|\\theta|$
Original Load{round(Ptotal)}{round(Qtotal)}
Additional  PFC 0
New Total Load = OrigLoad + PFC{round(Ptotal)}0{round(Ptotal)}1
\n

Final step, looking down the Q column ... 

\n

NewTotal Q = Orig Load Q + Qpfc 

\n

0 = {round(Qtotal)} + Qpfc

\n

Qpfc = {round(Qtotal*-1)}

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
P [kW]Q [kVAr]S [kVA]pf$|\\theta|$
Original Load{round(Ptotal)}{round(Qtotal)}
Additional  PFC 0{round(Qtotal*-1)}
New Total Load = OrigLoad + PFC{round(Ptotal)}0{round(Ptotal)}1
"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Qtotal needed", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(Qtotal)*minTol", "maxValue": "abs(Qtotal)*maxTol", "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": "(c) PFC", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

An additional capacative load of [[0]] kVar is required to correct the overall power factor to 0.95.

", "stepsPenalty": "0.5", "steps": [{"type": "information", "useCustomName": true, "customName": "Help with finding Qpfc", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

WARNING

\n

I've round the values in this solution to make it readable ... you will need to keep a few decimal places.

\n

JR Nov'21

\n

\n

In these questions, we know two things about how the newTotal load will look

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

P

\n

[kW]

\n
\n

Q

\n

[kVAr]

\n
S [kVA]pf$|\\theta|$
Original Load{round(Ptotal)}{round(Qtotal)}        
Additional  PFC 0
New Total Load = OrigLoad + PFC{round(Ptotal)}??????0.95
\n

Now working on the New Total Row, we know 2 of the 5 variables.  So we can calulate the others

\n

(we are really only intersted in Q so we'll only work that one out.)

\n

Since $pf=\\frac{P}{|S|} $, we have |S|= {round(Ptotal)} * 0.95  therefore Q = {round(QtotalRequired)}

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
P [kW]Q [kVAr] S [kVA]pf$|\\theta|$
Original Load{round(Ptotal)}{round(Qtotal)}
Additional  PFC 0????
New Total Load = OrigLoad + PFC{round(Ptotal)}{round(QtotalRequired)}{round(SrequiredMag)}0.95
\n

Final step, looking down the Q column ... 

\n

NewTotal Q = Orig Load Q + Qpfc 

\n

{round(QtotalRequired)} = {round(Qtotal)} + Qpfc

\n

Qpfc = {round(QtotalRequired)} - {round(Qtotal)} 

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
P [kW]Q [kVAr]S [kVA]pf$|\\theta|$
Original Load{round(Ptotal)}{round(Qtotal)}
Additional  PFC 0{round(QtotalRequired)} - {round(Qtotal)} 
New Total Load = OrigLoad + PFC{round(Ptotal)}{round(QtotalRequired)}{round(SrequiredMag)}1
\n

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Qpfc needed", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(Qpfc)*minTol", "maxValue": "abs(Qpfc)*maxTol", "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"}, {"name": "00_PFC_4loads_pf_0.95", "extensions": ["geogebra", "quantities", "weh"], "custom_part_types": [], "resources": [["question-resources/Delta2.JPG", "/srv/numbas/media/question-resources/Delta2.JPG"], ["question-resources/delta1.JPG", "/srv/numbas/media/question-resources/delta1.JPG"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}, {"name": "Judy Rea", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8753/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

\n

\n

\n

\n

\n

\n

\n

\n

A chemical plant consists for 4 loads

\n\n

What size power factor correction capacitor would you order to correct the overall power factor to 0.95?  (Capacitor banks are available in steps of 5 kVAr)

\n

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"P1": {"name": "P1", "group": "Given in question", "definition": "random(10 .. 15#1)", "description": "

kW

", "templateType": "randrange", "can_override": false}, "pf1": {"name": "pf1", "group": "Given in question", "definition": "1", "description": "", "templateType": "number", "can_override": false}, "S1": {"name": "S1", "group": "Calculated values", "definition": "P1/pf1", "description": "", "templateType": "anything", "can_override": false}, "S2": {"name": "S2", "group": "Given in question", "definition": "random(80 .. 100#5)", "description": "", "templateType": "randrange", "can_override": false}, "Q1": {"name": "Q1", "group": "Calculated values", "definition": "sqrt(S1^2-P1^2)", "description": "", "templateType": "anything", "can_override": false}, "P2": {"name": "P2", "group": "Calculated values", "definition": "S2*pf2", "description": "", "templateType": "anything", "can_override": false}, "Q2": {"name": "Q2", "group": "Calculated values", "definition": "sqrt(S2^2-P2^2)", "description": "", "templateType": "anything", "can_override": false}, "pf2": {"name": "pf2", "group": "Given in question", "definition": "random(0.6 .. 0.75#0.05)", "description": "", "templateType": "randrange", "can_override": false}, "Q3MagCap": {"name": "Q3MagCap", "group": "Given in question", "definition": "random(2 .. 4#0.5)", "description": "", "templateType": "randrange", "can_override": false}, "Ptotal": {"name": "Ptotal", "group": "Calculated values", "definition": "P1+P2+P3+P4", "description": "", "templateType": "anything", "can_override": false}, "P3": {"name": "P3", "group": "Given in question", "definition": "0", "description": "", "templateType": "anything", "can_override": false}, "Qtotal": {"name": "Qtotal", "group": "Calculated values", "definition": "Q1+Q2+Q3+Q4", "description": "", "templateType": "anything", "can_override": false}, "Q3": {"name": "Q3", "group": "Calculated values", "definition": "-1*Q3MagCap\n", "description": "", "templateType": "anything", "can_override": false}, "Stotal": {"name": "Stotal", "group": "Calculated values", "definition": "Ptotal+i*Qtotal", "description": "", "templateType": "anything", "can_override": false}, "pfUncorrected": {"name": "pfUncorrected", "group": "Calculated values", "definition": "Ptotal/abs(Stotal)", "description": "", "templateType": "anything", "can_override": false}, "minTol": {"name": "minTol", "group": "Constants", "definition": "0.98", "description": "", "templateType": "anything", "can_override": false}, "maxTol": {"name": "maxTol", "group": "Constants", "definition": "1.02", "description": "", "templateType": "anything", "can_override": false}, "S3": {"name": "S3", "group": "Calculated values", "definition": "P3+i*Q3", "description": "

Q3 is already negative by definition.

", "templateType": "anything", "can_override": false}, "pfRequired": {"name": "pfRequired", "group": "Given in question", "definition": "0.95", "description": "", "templateType": "anything", "can_override": false}, "SrequiredMag": {"name": "SrequiredMag", "group": "Calculated values", "definition": "Ptotal/pfRequired", "description": "", "templateType": "anything", "can_override": false}, "QtotalRequired": {"name": "QtotalRequired", "group": "Calculated values", "definition": "sqrt(SrequiredMag^2-Ptotal^2)", "description": "", "templateType": "anything", "can_override": false}, "Qpfc": {"name": "Qpfc", "group": "Calculated values", "definition": "QtotalRequired - Qtotal", "description": "", "templateType": "anything", "can_override": false}, "S4": {"name": "S4", "group": "Given in question", "definition": "random(40 .. 50#5)", "description": "", "templateType": "randrange", "can_override": false}, "P4": {"name": "P4", "group": "Given in question", "definition": "round(S4/sqrt(2))", "description": "", "templateType": "anything", "can_override": false}, "Q4": {"name": "Q4", "group": "Calculated values", "definition": "sqrt(S4^2-P4^2)", "description": "", "templateType": "anything", "can_override": false}, "QpfcRounded": {"name": "QpfcRounded", "group": "Calculated values", "definition": "round((Qpfc)/5) *5", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "pfUncorrected < 0.8", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "FreqUsedDefinitions", "variables": []}, {"name": "Given in question", "variables": ["P1", "pf1", "S2", "pf2", "Q3MagCap", "P3", "pfRequired", "S4", "P4"]}, {"name": "Calculated values", "variables": ["S1", "Q1", "P2", "Q2", "Q3", "S3", "Q4", "Ptotal", "Qtotal", "Stotal", "pfUncorrected", "SrequiredMag", "QtotalRequired", "Qpfc", "QpfcRounded"]}, {"name": "Constants", "variables": ["minTol", "maxTol"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Examine each load", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Complete the follwwing table.

\n

Note for S, only the magnitude is required.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Q|S|
Load 1[[0]] kW[[4]] kVAr[[8]] kVA
Load 2[[1]] kW[[5]] kVAr[[9]] kVA
Load 3[[2]] kW[[6]] kVAr\n

[[10]] kVA

\n
Load 4[[3]] kW[[7]] kVAr\n

[[11]] kVA

\n
\n

", "stepsPenalty": "6", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Given any two from $P,Q,S,pf$ the rest of the values can be found by various manipulation of the following equations.

\n

\n

$P^2 + Q^2 = |S|^2$

\n

$ pf =  \\frac{P}{|S|} = cos(\\Theta) $

\n

Also, you will need to be careful with polarity of reactive power $Q$ depeding on leading or lagging loads.

\n

CIVIL - helps to tell if the load is capacitive or inductive.

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "P1", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P1*minTol", "maxValue": "P1*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "P2", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P2*minTol", "maxValue": "P2*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "P3", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P3*minTol", "maxValue": "P3*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "P4", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P4*minTol", "maxValue": "P4*maxTol", "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": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Q1*minTol", "maxValue": "Q1*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Q2", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Q2*minTol", "maxValue": "Q2*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Q3", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Q3*minTol", "maxValue": "Q3*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Q4", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Q4*minTol", "maxValue": "Q4*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "S1", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(S1)*minTol", "maxValue": "abs(S1)*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "S2", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(S2)*minTol", "maxValue": "abs(S2)*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "S3", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(S3)*minTol", "maxValue": "abs(S3)*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "S4", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(S4)*minTol", "maxValue": "abs(S4)*maxTol", "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": "Total Load", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The combined load is there for $($[[0]]}$\\angle $[[1]]$^{\\circ}) kVA = $ [[2]] $kW + j$[[3]] $kVAr$

\n

And the uncorrected power factor is [[4]].

\n

", "stepsPenalty": "2.5", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Add all the real power values to get $P_{total}$

\n

Add all the reactive power values to get $Q_{total}$

\n

Then find total apparent power $S_{total} = P_{total} +jQ_{total}$ 

\n

Finaly, convert from rectangular to polar form. 

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Smag", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "abs(Stotal)*minTol", "maxValue": "abs(Stotal)*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Sph", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "arg(Stotal)*(180/pi) *minTol", "maxValue": "arg(Stotal)*(180/pi)*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "P", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Ptotal*minTol", "maxValue": "Ptotal*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Q", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Qtotal*minTol", "maxValue": "Qtotal*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "pfTotal", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "pfUncorrected*minTol", "maxValue": "pfUncorrected*maxTol", "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": "PFC", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

An additional capacative load of [[0]] kVar is required to correct the overall power factor to 0.95.

\n

The power rating of the new capacitor should be set to  [[1]]  kVAr.

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": true, "customName": "Hint", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

To get unity power factor you would need to fully compensate for the $Q_{total}$ so a capacitor sized $-Q_{total}$ would do the job.

\n

Here we are asked to correct the power factor to 0.95. Adding a PFC cap load will not change the real power of the original load. 

\n

On the row for New Total we know  P and pf (=0.95) we can find $Q_{newTotal}$. 

\n

Final step then is to $Q_{origLoad}$ + $Q_{pfc}$ = $Q_{newTotal}$ and solve for $Q_{pfc}.$

\n

Then round to the nearest 5 kVAr.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PQ
Uncorrected Load{round(Ptotal)}{round(Qtotal)}
Additional  Cap (PFC)0  (no real power consumbed by PFC)$Q_{pfc}$
Corrected load = Uncorrected + PFC\n

{round(Ptotal)} + 0 = {round(Ptotal)}

\n
\n

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Qpfc needed", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "alternatives": [{"type": "numberentry", "useCustomName": true, "customName": "neg Q?", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "minValue": "Qpfc*maxTol", "maxValue": "Qpfc*minTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "minValue": "abs(Qpfc)*minTol", "maxValue": "abs(Qpfc)*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "QpfcRounded", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "alternatives": [{"type": "numberentry", "useCustomName": true, "customName": "Neg Q?", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "minValue": "QpfcRounded*maxTol", "maxValue": "QpfcRounded*minTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "minValue": "abs(QpfcRounded)*maxTol", "maxValue": "abs(QpfcRounded)*minTol", "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"}]}, {"name": "Transients", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", ""], "variable_overrides": [[], [], []], "questions": [{"name": "Transients_RC_qu2", "extensions": ["geogebra", "quantities", "weh"], "custom_part_types": [], "resources": [["question-resources/Delta2.JPG", "/srv/numbas/media/question-resources/Delta2.JPG"], ["question-resources/delta1.JPG", "/srv/numbas/media/question-resources/delta1.JPG"], ["question-resources/Capture_OVvVQTf.JPG", "/srv/numbas/media/question-resources/Capture_OVvVQTf.JPG"], ["question-resources/RLcct.png", "/srv/numbas/media/question-resources/RLcct.png"], ["question-resources/rcNetwork.JPG", "/srv/numbas/media/question-resources/rcNetwork.JPG"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}, {"name": "Judy Rea", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8753/"}], "tags": [], "metadata": {"description": "

given Vdc, Iop , Top, res find L.

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

\n

\n

\n

\n

\n

\n

\n

\n

\n

\n

An circuit consists of a  {Rkohm} k\u2126 resistor, a {CuF} uF capacitor and a switch, all connected in series. 

\n

It is supplied by a DC voltage source, {Vdc} V.

\n

\n

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Vdc": {"name": "Vdc", "group": "Given in question", "definition": "random(20,22,25,28, 30)", "description": "", "templateType": "anything", "can_override": false}, "R": {"name": "R", "group": "Calculated values", "definition": "Rkohm * 1000", "description": "", "templateType": "anything", "can_override": false}, "I0": {"name": "I0", "group": "Calculated values", "definition": "Vdc/R", "description": "", "templateType": "anything", "can_override": false}, "tau": {"name": "tau", "group": "Calculated values", "definition": "R*C", "description": "", "templateType": "anything", "can_override": false}, "minTol": {"name": "minTol", "group": "Constants", "definition": "0.95", "description": "", "templateType": "anything", "can_override": false}, "maxTol": {"name": "maxTol", "group": "Constants", "definition": "1.05", "description": "", "templateType": "anything", "can_override": false}, "CuF": {"name": "CuF", "group": "Given in question", "definition": "random(4..40 #2)", "description": "", "templateType": "anything", "can_override": true}, "t1": {"name": "t1", "group": "Given in question", "definition": "round(random(0.25,0.5,1,2,4,610)*tau*1000)/1000.0", "description": "", "templateType": "anything", "can_override": false}, "t2": {"name": "t2", "group": "Given in question", "definition": "round(random(0.25,0.5,1,2,4,610)*tau*1000)/1000.0", "description": "", "templateType": "anything", "can_override": false}, "t3": {"name": "t3", "group": "Given in question", "definition": "round(random(0.25,0.5,1,2,4,610)*tau*1000)/1000.0", "description": "", "templateType": "anything", "can_override": false}, "i1": {"name": "i1", "group": "Calculated values", "definition": "I0*(e^(-t1/tau))", "description": "", "templateType": "anything", "can_override": false}, "i2": {"name": "i2", "group": "Calculated values", "definition": "I0*(e^(-t2/tau))", "description": "", "templateType": "anything", "can_override": false}, "i3": {"name": "i3", "group": "Calculated values", "definition": "I0*(e^(-t3/tau))", "description": "", "templateType": "anything", "can_override": false}, "i4": {"name": "i4", "group": "Calculated values", "definition": "I0*(e^(-t4/tau))", "description": "", "templateType": "anything", "can_override": false}, "t4": {"name": "t4", "group": "Given in question", "definition": "round(random(0.25,0.5,1,2,4,6,10)*tau*1000)/1000.0", "description": "", "templateType": "anything", "can_override": false}, "C": {"name": "C", "group": "Calculated values", "definition": "CuF*10^-6\n", "description": "", "templateType": "anything", "can_override": false}, "Iss": {"name": "Iss", "group": "Calculated values", "definition": "0", "description": "", "templateType": "anything", "can_override": false}, "Rkohm": {"name": "Rkohm", "group": "Given in question", "definition": "random(0.1..0.5 #0.05)", "description": "", "templateType": "anything", "can_override": false}, "test": {"name": "test", "group": "Given in question", "definition": "t1=t4", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "t1<>t2 \nand\nt1<>t3\nand \nt1<>t4\nand\nt2 0.1\n\n\n\n\n", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "FreqUsedDefinitions", "variables": []}, {"name": "Given in question", "variables": ["Vdc", "Rkohm", "CuF", "t1", "t2", "t3", "t4", "test"]}, {"name": "Calculated values", "variables": ["R", "I0", "Iss", "tau", "i1", "i2", "i3", "i4", "C"]}, {"name": "Constants", "variables": ["minTol", "maxTol"]}, {"name": "Unnamed group", "variables": []}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Find tau and Iss", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Initially, immediately after the switch is closed the current flowing is [[1]] mA.

\n

After some time, when all the transients have died out, the current flowing is [[0]] mA.

\n

The time constant for this circuit is [[2]] ms.

\n

", "stepsPenalty": 0, "steps": [{"type": "numberentry", "useCustomName": true, "customName": "Steady state", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What initial current,$I_{0}$, immediatly after the switch is closed? 

\n

Initially, the cap is uncharged so no voltage is dropped across it meaning the full source voltage is dropped across the resister, hence, by ohm's law,  $I_{0} = \\frac{V_{DC}}{R} $.

\n

What is the steady state current,$I_{SS}$,will be reached when all the transients settle down? 

\n

This is zero, since when all transients are settled down capacitors are like open circuits.

\n

\n

", "minValue": "minTol*Iss", "maxValue": "maxTol*Iss", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Find Tau ", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\tau=RC$

", "minValue": "minTol*(tau)", "maxValue": "maxTol*(tau)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Iss mA", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Iss*1000*minTol", "maxValue": "Iss*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "I0 mA", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "I0*1000*minTol", "maxValue": "I0*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "tau ms", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "tau*1000*minTol", "maxValue": "tau*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Current Curve", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

After {t1*1000} ms, the current is [[0]] mA.

\n

After {t2*1000} ms, the current is [[1]] mA.

\n

After [[2]] ms for the current is {round(I3*1000)} mA.

\n

After [[3]] ms for the current is {round(I4*1000)} mA.

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": true, "customName": "help", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

So the equation descibing the transient current in this circuit is 

\n

$i(t) = I_{0}(e^{\\frac{-t}{\\tau}})$ where ${\\tau} = {{RC}}$.

\n

\n

\n

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "i1mA", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "i1*1000*minTol", "maxValue": "i1*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "i2mA", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "i2*1000*minTol", "maxValue": "i2*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "t3ms", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "t3*1000*minTol", "maxValue": "t3*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "t4ms", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "t4*1000*minTol", "maxValue": "t4*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Transients_RL_qu1", "extensions": ["geogebra", "quantities", "weh"], "custom_part_types": [], "resources": [["question-resources/Delta2.JPG", "/srv/numbas/media/question-resources/Delta2.JPG"], ["question-resources/delta1.JPG", "/srv/numbas/media/question-resources/delta1.JPG"], ["question-resources/Capture_OVvVQTf.JPG", "/srv/numbas/media/question-resources/Capture_OVvVQTf.JPG"], ["question-resources/RLcct.png", "/srv/numbas/media/question-resources/RLcct.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}, {"name": "Judy Rea", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8753/"}], "tags": [], "metadata": {"description": "

given Vdc, Iop , Top, res find L.

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

\n

\n

\n

\n

\n

\n

\n

\n

\n

\n

An circuit consists of a  {R} \u2126 resistor, a {L} H n inductor and a switch, all connected in series.  It is supplied by a DC voltage source, {Vdc} V.

\n

\n

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Vdc": {"name": "Vdc", "group": "Given in question", "definition": "random(10,12,15,18)", "description": "", "templateType": "anything", "can_override": false}, "R": {"name": "R", "group": "Given in question", "definition": "random(150..300 #10)", "description": "", "templateType": "anything", "can_override": false}, "Iss": {"name": "Iss", "group": "Calculated values", "definition": "Vdc/R", "description": "", "templateType": "anything", "can_override": false}, "tau": {"name": "tau", "group": "Calculated values", "definition": "L/R", "description": "", "templateType": "anything", "can_override": false}, "minTol": {"name": "minTol", "group": "Constants", "definition": "0.95", "description": "", "templateType": "anything", "can_override": false}, "maxTol": {"name": "maxTol", "group": "Constants", "definition": "1.05", "description": "", "templateType": "anything", "can_override": false}, "L": {"name": "L", "group": "Given in question", "definition": "random(4..40 #2)", "description": "", "templateType": "anything", "can_override": false}, "t1": {"name": "t1", "group": "Given in question", "definition": "round(random(0.25,0.5,1,2,4,610)*tau*1000)/1000.0", "description": "", "templateType": "anything", "can_override": false}, "t2": {"name": "t2", "group": "Given in question", "definition": "round(random(0.25,0.5,1,2,4,610)*tau*1000)/1000.0", "description": "", "templateType": "anything", "can_override": false}, "t3": {"name": "t3", "group": "Given in question", "definition": "round(random(0.25,0.5,1,2,4,610)*tau*1000)/1000.0", "description": "", "templateType": "anything", "can_override": false}, "i1": {"name": "i1", "group": "Calculated values", "definition": "Iss*(1-e^(-t1/tau))", "description": "", "templateType": "anything", "can_override": false}, "i2": {"name": "i2", "group": "Calculated values", "definition": "Iss*(1-e^(-t2/tau))", "description": "", "templateType": "anything", "can_override": false}, "i3": {"name": "i3", "group": "Calculated values", "definition": "Iss*(1-e^(-t3/tau))", "description": "", "templateType": "anything", "can_override": false}, "i4": {"name": "i4", "group": "Calculated values", "definition": "Iss*(1-e^(-t4/tau))", "description": "", "templateType": "anything", "can_override": false}, "t4": {"name": "t4", "group": "Given in question", "definition": "round(random(0.25,0.5,1,2,4,610)*tau*1000)/1000.0", "description": "", "templateType": "anything", "can_override": false}, "I0": {"name": "I0", "group": "Calculated values", "definition": "0", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "t1<>t2 \nand\nt1<>t3\nand \nt1<>t4\n\n\n\n", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "FreqUsedDefinitions", "variables": []}, {"name": "Given in question", "variables": ["Vdc", "R", "L", "t1", "t2", "t3", "t4"]}, {"name": "Calculated values", "variables": ["Iss", "tau", "i1", "i2", "i3", "i4", "I0"]}, {"name": "Constants", "variables": ["minTol", "maxTol"]}, {"name": "Unnamed group", "variables": []}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Find tau and Iss", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Initally, immediately after the switch is closed, how much current flows? [[0]] mA

\n

After the switch has closed and all the transients have died out, the current flowing is [[1]] mA.   

\n

The time constant for this circuit is [[2]] ms.

\n

", "stepsPenalty": 0, "steps": [{"type": "numberentry", "useCustomName": true, "customName": "Steady state", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What steady state current,$I_{SS}$,will be reached when all the transients settle down?  

\n

When all transients are settled down inductors appear like short circuits and capacitors are like open circuits.

\n

So in steady state, by ohm's law,  $I_{SS} = \\frac{V_{DC}}{R} $

\n

\n

", "minValue": "minTol*Iss", "maxValue": "maxTol*Iss", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Find Tau ", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\tau=\\frac L R$

\n

\n

\n

\n

", "minValue": "minTol*(tau)", "maxValue": "maxTol*(tau)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "I0 mA", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "I0*1000*minTol", "maxValue": "I0*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Iss mA", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "Iss*1000*minTol", "maxValue": "Iss*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "tau ms", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "tau*1000*minTol", "maxValue": "tau*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": " Curve", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

After {t1*1000} ms, the current is [[0]] mA.

\n

After {t2*1000} ms, the current is [[1]] mA.

\n

It takes [[2]] ms for the current to grow to {round(I3*1000)} mA.

\n

It takes [[3]] ms for the current to grow to {round(I4*1000)} mA.

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": true, "customName": "help", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

So the equation descibing the transient current in this circuit is 

\n

$i(t) = I_{SS}(1-e^{\\frac{-t}{\\tau}})$ where ${\\tau} = {\\frac{L}{R}}$.

\n

\n

\n

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "i1mA", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "i1*1000*minTol", "maxValue": "i1*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "i2mA", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "i2*1000*minTol", "maxValue": "i2*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "t3ms", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "t3*1000*minTol", "maxValue": "t3*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "t4ms", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "t4*1000*minTol", "maxValue": "t4*1000*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Transients_RL_qu2", "extensions": ["geogebra", "quantities", "weh"], "custom_part_types": [], "resources": [["question-resources/Delta2.JPG", "/srv/numbas/media/question-resources/Delta2.JPG"], ["question-resources/delta1.JPG", "/srv/numbas/media/question-resources/delta1.JPG"], ["question-resources/Capture_OVvVQTf.JPG", "/srv/numbas/media/question-resources/Capture_OVvVQTf.JPG"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}, {"name": "Judy Rea", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8753/"}], "tags": [], "metadata": {"description": "

given Vdc, Iop , Top, res find L.

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

\n

\n

\n

\n

\n

\n

\n

\n

\n

\n

A relay coil has a resistance of {R} \u2126  and the current required to operate the relay is {{Iop}*1000} mA.

\n

When the coil is connected to a {Vdc} V d.c. power supply the operating time between, switch-on and the start of the relay operation is {top*1000} ms.

\n

\n

Find L requried to achieve this behaviour.

\n

", "advice": "", "rulesets": {}, "variables": {"Vdc": {"name": "Vdc", "group": "Given in question", "definition": "random(10,12,15,18)", "description": "", "templateType": "anything"}, "R": {"name": "R", "group": "Given in question", "definition": "random(150..300 #10)", "description": "", "templateType": "anything"}, "top": {"name": "top", "group": "Given in question", "definition": "random(0.025.. 0.05 #0.005)", "description": "

operating time in seconds (not Milli

", "templateType": "anything"}, "a": {"name": "a", "group": "Constants", "definition": "cos(120*pi/180) + i*sin(120*pi/180)", "description": "", "templateType": "anything"}, "Iop": {"name": "Iop", "group": "Given in question", "definition": "random(0.01.. 0.03 #0.005)", "description": "

current in A

", "templateType": "anything"}, "Iss": {"name": "Iss", "group": "Calculated values", "definition": "Vdc/R", "description": "", "templateType": "anything"}, "tau": {"name": "tau", "group": "Calculated values", "definition": "-1*top/ln(1-iop/Iss)", "description": "

Use iop = Iss(1-exp^-top/TAU)

\n

ln(1-iop/Iss) = -top/TAU

\n

TAU = -top/ln(1-iop/Iss)

", "templateType": "anything"}, "L": {"name": "L", "group": "Calculated values", "definition": "r*tau\n", "description": "", "templateType": "anything"}, "minTol": {"name": "minTol", "group": "Constants", "definition": "0.98", "description": "", "templateType": "anything"}, "maxTol": {"name": "maxTol", "group": "Constants", "definition": "1.02", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "FreqUsedDefinitions", "variables": []}, {"name": "Given in question", "variables": ["Vdc", "R", "top", "Iop"]}, {"name": "Calculated values", "variables": ["Iss", "tau", "L"]}, {"name": "Constants", "variables": ["a", "minTol", "maxTol"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Find L", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

To get the relay to operate after {top*1000} ms an inductor of  [[0]] H is needed.

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": true, "customName": "Relays explained", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The message has been 'relayed' from primary circuit to the secondary circuit with a know time-delay.

\n

The relay is supplied a by a dc voltage source and consists of an inductor and a resistor in series.

\n

When current flows through the coil of the relay circuit (BLUE), the magnetic field is created(RED). When the current reaches the operating current {Iop}, then the relay \"operates\" because the magnetic field is now strong enought to cause the switch in secondary circuit to close (GREEN).   

\n

In this question, we are asked to design (i.e. select) a value of L that will set a {top*1000} ms time-delay between closing the control switch (BLUE)  to when the secondary switch will close. (GREEN)

\n

\n

\n

\n

\n

\n

\n

\n

\n

"}, {"type": "numberentry", "useCustomName": true, "customName": "Steady state", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What steady state current,$I_{SS}$,will be reached when all the transients settle down?  

\n

When all transients are settled down inductors appear like short circuits and capacitors are like open circuits.

\n

So in steady state, by ohm's law,  $I_{SS} = \\frac{V_{DC}}{R} = ${Iop} A = {Iop*1000} mA

\n

\n

\n

\n

", "minValue": "minTol*Iss", "maxValue": "maxTol*Iss", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Find Tau ", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

We would like the current have grown to the operating current, {Iop*1000} mA after {top*1000} ms.

\n

Currents grow in an RL circuit according the equation  $i(t) = I_{SS}(1-e^{\\frac{-t}{\\tau}})$

\n

So fill ... $i(t) = i(${top}$) = ${Iop} , $t = ${top}, $I_{SS} = ${Iss} into the equation and rearrange to fine $\\tau$.

\n

\n

Rearranged equation to calculate

\n

${\\tau}=\\frac{-{t_{op}}}{ln(1 -\\frac{i_{op}}{I_{SS}})} $

\n

So  ${\\tau}$ is ...

\n

\n

\n

", "minValue": "minTol*(tau)", "maxValue": "maxTol*(tau)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "information", "useCustomName": true, "customName": "Find L", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

${\\tau} = \\frac{L}{R}$

\n

Since R={R}, and we now know ${\\tau}$ then we can find L.

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "L", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "L*minTol", "maxValue": "L*maxTol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "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": []}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Judy Rea", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/8753/"}], "extensions": ["geogebra", "quantities", "weh"], "custom_part_types": [{"source": {"pk": 19, "author": {"name": "William Haynes", "pk": 2530}, "edit_page": "/part_type/19/edit"}, "name": "Engineering Accuracy with units", "short_name": "engineering-answer", "description": "

A value with units marked right if within an adjustable % error of the correct value.  Marked close if within a wider margin of error.

", "help_url": "", "input_widget": "string", "input_options": {"correctAnswer": "siground(settings['correctAnswer'],4)", "hint": {"static": true, "value": ""}, "allowEmpty": {"static": true, "value": true}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nswitch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n\n\ninterpreted_answer:\nqty(student_scalar, student_units)\n\n\n\ncorrect_quantity:\nsettings[\"correctAnswer\"]\n\n\n\ncorrect_units:\nunits(correct_quantity)\n\n\nallowed_notation_styles:\n[\"plain\",\"en\"]\n\nmatch_student_number:\nmatchnumber(studentAnswer,allowed_notation_styles)\n\nstudent_scalar:\nmatch_student_number[1]\n\nstudent_units:\nreplace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")\n\ngood_units:\ntry(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n\n\nstudent_quantity:\nswitch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n\n\npercent_error:\ntry(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n \n\nright:\npercent_error <= settings['right']\n\n\nclose:\nright_sign and percent_error <= settings['close']\n\nright_sign:\nsign(student_scalar) = sign(correct_quantity)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "switch( \n right and good_units and right_sign, add_credit(1.0,'Correct.'),\n right and good_units and not right_sign, add_credit(settings['C2'],'Wrong sign.'),\n right and right_sign and not good_units, add_credit(settings['C2'],'Correct value, but wrong or missing units.'),\n close and good_units, add_credit(settings['C1'],'Close.'),\n close and not good_units, add_credit(settings['C3'],'Answer is close, but wrong or missing units.'),\n incorrect('Wrong answer.')\n)\n"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "qty(student_scalar, student_units)\n\n"}, {"name": "correct_quantity", "description": "", "definition": "settings[\"correctAnswer\"]\n\n"}, {"name": "correct_units", "description": "", "definition": "units(correct_quantity)\n"}, {"name": "allowed_notation_styles", "description": "", "definition": "[\"plain\",\"en\"]"}, {"name": "match_student_number", "description": "", "definition": "matchnumber(studentAnswer,allowed_notation_styles)"}, {"name": "student_scalar", "description": "", "definition": "match_student_number[1]"}, {"name": "student_units", "description": "

Modify the unit portion of the student's answer by

\n

1. replacing \"ohms\" with \"ohm\"  case insensitive

\n

2. replacing '-' with ' ' 

\n

3. replacing '°' with ' deg' 

\n

to allow answers like 10 ft-lb and 30°

", "definition": "replace_regex('ohms','ohm',\n replace_regex('\u00b0', ' deg',\n replace_regex('-', ' ' ,\n studentAnswer[len(match_student_number[0])..len(studentAnswer)])),\"i\")"}, {"name": "good_units", "description": "", "definition": "try(\ncompatible(quantity(1, student_units),correct_units),\nmsg,\nfeedback(msg);false)\n"}, {"name": "student_quantity", "description": "

This fixes the student answer for two common errors.  

\n

If student_units are wrong  - replace with correct units

\n

If student_scalar has the wrong sign - replace with right sign

\n

If student makes both errors, only one gets fixed.

", "definition": "switch(not good_units, \n student_scalar * correct_units, \n not right_sign,\n -quantity(student_scalar, student_units),\n quantity(student_scalar,student_units)\n)\n \n"}, {"name": "percent_error", "description": "", "definition": "try(\nscalar(abs((correct_quantity - student_quantity)/correct_quantity))*100 \n,msg,\nif(student_quantity=correct_quantity,0,100))\n "}, {"name": "right", "description": "", "definition": "percent_error <= settings['right']\n"}, {"name": "close", "description": "

Only marked close if the student actually has the right sign.

", "definition": "right_sign and percent_error <= settings['close']"}, {"name": "right_sign", "description": "", "definition": "sign(student_scalar) = sign(correct_quantity) "}], "settings": [{"name": "correctAnswer", "label": "Correct Quantity.", "help_url": "", "hint": "The correct answer given as a JME quantity.", "input_type": "code", "default_value": "", "evaluate": true}, {"name": "right", "label": "% Accuracy for right.", "help_url": "", "hint": "Question will be considered correct if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "0.2", "evaluate": true}, {"name": "close", "label": "% Accuracy for close.", "help_url": "", "hint": "Question will be considered close if the scalar part of the student's answer is within this % of correct value.", "input_type": "code", "default_value": "1.0", "evaluate": true}, {"name": "C1", "label": "Close with units.", "help_url": "", "hint": "Partial Credit for close value with appropriate units.  if correct answer is 100 N and close is ±1%,
99  N is accepted.", "input_type": "percent", "default_value": "75"}, {"name": "C2", "label": "No units or wrong sign", "help_url": "", "hint": "Partial credit for forgetting units or using wrong sign.
If the correct answer is 100 N, both 100 and -100 N are accepted.", "input_type": "percent", "default_value": "50"}, {"name": "C3", "label": "Close, no units.", "help_url": "", "hint": "Partial Credit for close value but forgotten units.
This value would be close if the expected units were provided.  If the correct answer is 100 N, and close is ±1%,
99 is accepted.", "input_type": "percent", "default_value": "25"}], "public_availability": "always", "published": true, "extensions": ["quantities"]}], "resources": [["question-resources/Delta2.JPG", "/srv/numbas/media/question-resources/Delta2.JPG"], ["question-resources/delta1.JPG", "/srv/numbas/media/question-resources/delta1.JPG"], ["question-resources/Capture_OVvVQTf.JPG", "/srv/numbas/media/question-resources/Capture_OVvVQTf.JPG"], ["question-resources/RLcct.png", "/srv/numbas/media/question-resources/RLcct.png"], ["question-resources/rcNetwork.JPG", "/srv/numbas/media/question-resources/rcNetwork.JPG"]]}