2024 Lab 1 Fields Visualization
2024 Lab 1 Fields Visualization
Kovaleva
2. Report Length
Professional reports have page numbers. The length of the report is counted from
Introduction to Conclusion. References and Appendices do not contribute to the page
count.
Marking rubric
Marking rubric
Criterion Poor Needs improvement Good Excellent
0% 50% 80% 100%
Introduction Very little background Certain major Good introduction but A cohesive well-written
(10%) information is provided introductory points are fails to provide context introduction to the
and/or information is missing (background, or background for some background material
incorrect. No references theory, context), or parts of the experiment, pertinent to the
are provided. explanations are unclear. or certain information is experiment with
References are used not cohesive. appropriate references.
properly. Places the purpose of the
experiment in context.
Method Several important details Missing several design Includes most of the Contains the details how
(25%) are missing. Narrative is and experimental details important design and calculations and the
incorrect, illogical, or or contains some experimental details but experiment was
copied directly from the incorrect statements. missing one or more performed. Written in
lab manual. Written in relevant pieces of the correct tense and
incorrect tense. information. omits information that
can be assumed by peers.
Results and Discussions Figures, graphs and tables Some of the results are Most of the results are Results are correct. All
(40%) are poorly constructed, correct. Most figures, correct, only minor figures, graphs and
have missing numbers, graphs and tables are errors exist. All figures, tables are numbered and
captions or numbers. shown but some required graphs and tables are have appropriate
Important discussions are features are missing. correctly shown and captions and explicitly
missing. Certain reported Certain data reported are explicitly mentioned in mentioned in the text.
results are not mentioned not mentioned in the text the text but there are Relevant data are
in the text. or missing. Captions are some minor problems presented and used in the
not descriptive or that can be improved. discussion.
incorrect. Most relevant data are
presented and used in
the discussion but some
comparisons are omitted.
Conclusion No or unsatisfactory A satisfactory review of A good review of the Excellent review of the
(10%) review of the results. The the results. The results. Student results with
conclusion is too short and conclusion is presented demonstrates demonstrated
below the expected quality. but not in sufficient understanding of the understanding of the
detail. topic. Result topic. Result
discrepancies are not discrepancies are
explained correctly. explained correctly.
Presentation The level of presentation is A satisfactory A commendable Exemplary presentation
(15%) clearly below the presentation of the report presentation of the report
of the report with
professional engineering with acceptable standard with good organization, excellent organization, in
reports. Poor order of of organization, format, format, language, expected format,
presentation. Format is not language, illustrations, sufficiently clear professional language,
followed at most places. numbering etc. Quality illustrations, section attractive illustrations,
Below acceptable level of needs to be improved in numbering etc. Quality proper numbering of
language, illustrations etc. most places. Brevity is can be further improved. sections etc. The
Brevity is not displayed. not displayed. Page limit not exceeded. paragraphs are justified
(text aligned with both
margins). Page limit not
exceeded.
Total = (mark for Introduction)*0.1 + (mark for Method)*0.25 + (mark for Results and Discussions)*0.4 + (mark for
(100%) Conclusion)*0.1 + (mark for Presentation)*0.15
ELEN3002/6017 Lab 1 Prepared by M. Kovaleva
% Coordinate transformation
r = sqrt(x.^2 +y.^2);
phi = atan2d(y, x);
% Given vector
Ax = ...
ADD AN EXPRESSION TO COMPLETE THIS CODE
Ay = ...
% Calculate divergence
~~~~~~~~~~ do not copy this image ~~~~~~~~~~
% Create a figure
quiver(x, y, Ax, Ay)
grid on; axis square; hold on
contour(x, y, D, 30)
xlabel('x'); ylabel('y')
xlim([min max]); ylim([min max]);
set(gca, 'Fontsize', 18)
Curl code
% Coordinate transformation
r = sqrt(x.^2 +y.^2);
% Calculate curl of B
[curlz, cav] = curl(x, y, Bx, By);
~~~~~~~~~~ do not copy this image ~~~~~~~~~~
% Create a figure
quiver(x, y, Bx, By)
grid on; axis square; hold on
contour(x, y, curlz, 30)
xlabel('x'); ylabel('y')
xlim([min max]); ylim([min max]);
set(gca, 'Fontsize', 18)
% Test point
probe_ind = [68, 78];
probe_x = x(probe_ind(1), probe_ind(2));
probe_y = y(probe_ind(1), probe_ind(2));
probe_r = sqrt(probe_x^2 + probe_y^2);
% Print answers
fprintf('x = %.10f y = %.10f\n', probe_x, probe_y);
fprintf('curl calculated analytically = %.10f\n', calcul_curl);
fprintf('curl calculated by matlab = %.10f\n', matlab_curl);
ELEN3002/6017 Lab 1 Prepared by M. Kovaleva
2. Electrostatics
The idea of electric flux line (or electric lines of force as they are sometimes called) was
introduced by Michael Faraday (1791 - 1867) in his experimental investigation as a way of
visualizing the electric field. An electric flux line is an imaginary path or line drawn in such a
way that its direction at any point is the direction of the electric field at that point. A typical
application of field mapping (flux lines and equipotential surfaces) is found in the diagnosis of
the human heart.
Electric field intensity 𝐸𝐸�⃗ due to a charge distribution can be obtained from Coulomb’s law or
from Gauss’s law when the charge distribution is symmetric. Another way of obtaining 𝐸𝐸�⃗ is
from the electric scalar potential 𝑉𝑉. For an electrostatic field, the negative gradient of voltage
is the electric field:
𝜕𝜕𝜕𝜕 𝜕𝜕𝜕𝜕 𝜕𝜕𝜕𝜕
𝐸𝐸�⃗ = −∇
�⃗𝑉𝑉 = − � 𝑥𝑥� + 𝑦𝑦� + 𝑧𝑧̂ �
𝜕𝜕𝜕𝜕 𝜕𝜕𝜕𝜕 𝜕𝜕𝜕𝜕
Electric potential is related to the work done in carrying a charge from one point to another.
Electric potential due to a charge distribution can be found as:
𝑄𝑄 𝑘𝑘𝑘𝑘
𝑉𝑉 = =
4𝜋𝜋𝜀𝜀0 𝑅𝑅 𝑅𝑅
where the proportionality constant (also called Coulomb’s constant) can be defined as:
1 𝑚𝑚
𝑘𝑘 = � �
4𝜋𝜋𝜀𝜀0 𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹
According to the superposition principle, the electric potential at point 𝑃𝑃𝑡𝑡 due to a system of 𝑛𝑛
discrete point charges located at 𝑃𝑃1 , 𝑃𝑃2 , … , 𝑃𝑃𝑛𝑛 is the sum of the potentials due to the individual
charges:
𝑄𝑄1 𝑄𝑄2 𝑄𝑄𝑛𝑛
𝑉𝑉 = + + ⋯+
4𝜋𝜋𝜀𝜀0 |𝑅𝑅�⃗ − 𝑅𝑅�⃗1 | 4𝜋𝜋𝜀𝜀0 |𝑅𝑅�⃗ − 𝑅𝑅�⃗2 | 4𝜋𝜋𝜀𝜀0 |𝑅𝑅�⃗ − 𝑅𝑅�⃗𝑛𝑛 |
Example of a MATLAB code to plot electric field and equipotential lines is given below:
ELEN3002/6017 Lab 1 Prepared by M. Kovaleva
_______________________________________________________________
produce two plots. Compare the value of the curl at points 𝑃𝑃1 = (𝑥𝑥1 , 𝑦𝑦1 ) = (0.6, 0.6) and
𝑃𝑃2 = (𝑥𝑥2 , 𝑦𝑦2 ) = (5, 7). Create a comparison table. Explain the discrepancy.
* The use of Python or another programming language instead of MATLAB to perform this
Laboratory is allowed.