// Numbas version: finer_feedback_settings {"name": "Magnetic fields from a bundle of connected wires", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Magnetic fields from a bundle of connected wires", "tags": [], "metadata": {"description": "
Combination of fields from a bundle of wires.
", "licence": "All rights reserved"}, "statement": "A thin electrically insulated wire is unwound from a reel and cut into {nwires} sections by a student, each {length} cm long. A single wire is analysed and found to have a diameter of {diametermm} mm and an electrical resistance of {resistance} Ω. The {nwires} pieces of wire are all straightened, tighly bundled together and laid on the benchtop in the lab from left to right in front of the student. The left-hand ends of each of the {nwires} wires are electrically connected together, and this end of the bundle is connected to the positive electrode of a power supply. The right-hand ends of the wires are also connected together electrically and this end of the bundle is attached to the negative electrode of the power supply.
\nWhen the power supply is switched on, an electrical current flows through the bundle of wires.
\nWhen providing numerical answers you may express them using scientific notation. Express values to four significant figures and use the values of physical constants as provided in the course notes. You may need to consider the concepts of Ohm's Law and how resistors combine.
", "advice": "This is a question that draws upon the ideas of the field from a long straight wire, and from the notions of current and voltage. The bundle of wires can be thought of as a single current, but we have to be careful about determining how much current we have passing through the wires.
\nFirst, we note that if there is a current $j_1$ in each wire, the total current is $Nj_1$, where $N$ is the number of wires. The fields are then
\n$\\displaystyle \\left|\\vec{H}\\right|={j\\over 2\\pi R}={\\left|\\vec{B}\\right|\\over\\mu}$
\nIn the first case we have a constant potential difference across the bundle. Each wire has the same potential difference (voltage) so that by Ohms-law we can determine the current in one wire to be
\n$j_1=V/R_1$
\nwhere $R_1$ is the resistance of a single wire. We could determine the total resistance of the bundle to be $R_1/N$, since they are in parallel. Alternatively we could note that the same current, $j_1$, is flowing through each wire, so the total current is the sum of the currents over all the wires. Either way
\n$j=NV/R_1$
\nFor the second case we have a constant current source attached to the wires. This specifies the current through all the wires together, so that in this case the input current is split between the {nwires} wires, i.e.
\n$j_1=j/N$
\nWe're not really interested in $j_1$, so we simply use $j$ for the determination of the field.
\nThe assumptions we need to make is that the bundle of wires is tightly packed so that the distance we're determining the field further from the bundle that the overall cross-sectional area of the bundle.
", "rulesets": {}, "extensions": [], "variables": {"nwires": {"name": "nwires", "group": "Ungrouped variables", "definition": "random(10..100)", "description": "Number of wires in the bundle
", "templateType": "anything"}, "mu": {"name": "mu", "group": "Ungrouped variables", "definition": "4*10^-7*pi", "description": "Permeability of free space in Tm/A
", "templateType": "anything"}, "diametermm": {"name": "diametermm", "group": "Ungrouped variables", "definition": "random(0.1..1#0.1)*0.5", "description": "Diameter of each wire in mm.
", "templateType": "anything"}, "distancemm": {"name": "distancemm", "group": "Ungrouped variables", "definition": "random(1..5#0.1)*10", "description": "Distance from the (centre of) the bundle to the point at which the field is being determined.
", "templateType": "anything"}, "hpd": {"name": "hpd", "group": "Ungrouped variables", "definition": "currentv*0.5/pi/distance", "description": "", "templateType": "anything"}, "distance": {"name": "distance", "group": "Ungrouped variables", "definition": "distancemm*0.001", "description": "", "templateType": "anything"}, "current": {"name": "current", "group": "Ungrouped variables", "definition": "random(0.01..0.5#0.01)*10", "description": "", "templateType": "anything"}, "voltage": {"name": "voltage", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything"}, "currentv": {"name": "currentv", "group": "Ungrouped variables", "definition": "voltage/(resistance*1.0/nwires)", "description": "", "templateType": "anything"}, "resistance": {"name": "resistance", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "Resistance of each wire in Ohms.
", "templateType": "anything"}, "bi": {"name": "bi", "group": "Ungrouped variables", "definition": "current*mu*500000/pi/distance", "description": "", "templateType": "anything"}, "length": {"name": "length", "group": "Ungrouped variables", "definition": "random(1..10#0.1)+5", "description": "Length of wires - this is not relevant to the calculations.
", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["bi", "current", "currentv", "diametermm", "distance", "distancemm", "hpd", "length", "mu", "nwires", "resistance", "voltage"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "H-field", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Write down an expression for the magnetising field strength as a function of distance from the bundle. (You will have to make some assumptions.) Express your answer in terms of the current in each wire, $j$, the number of wires, $N$ and the distance of the bundle to the point at which the field is being determined, $R$.
\n$\\displaystyle\\left|\\vec{H}\\right|=$[[0]]
", "gaps": [{"type": "jme", "useCustomName": true, "customName": "H formula", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "N j /(2 pi R)", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "singleLetterVariables": true, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "j", "value": ""}, {"name": "n", "value": ""}, {"name": "r", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Voltage source", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "The power source is initially set so that the potential difference across the bundle of wires is held at a constant value of {voltage} V. What is the magnitude of the magnetizing field strength at a distance of {distancemm} mm from the wire bundle?
\n$\\displaystyle\\left|\\vec{H}\\right|=$[[0]] A/m
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Hpd", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "hpd*0.999", "maxValue": "hpd*1.001", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "sigfig", "precision": "04", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en", "scientific"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Current source", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "The power source is next set to a current source of {current} A. What is the magnitude of the magnetic flux density also at a distance of {distancemm} mm from the wire bundle in this different case where the current through the bundle of wires is held constant?
\n$\\displaystyle\\left|\\vec{B}\\right|=$[[0]] μT
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Bcurrent", "marks": "5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "bi*0.999", "maxValue": "bi*1.001", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "sigfig", "precision": "04", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en", "scientific"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Jon Goss", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3925/"}]}]}], "contributors": [{"name": "Jon Goss", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3925/"}]}