How to determine the magnetic field in a round circuit using biot-savart law

조회 수: 12 (최근 30일)
Nghia
Nghia 2013년 12월 23일
답변: GONTI NIKITHA 2023년 4월 25일
Hi everybody, I am doing a project in MATLAB. My project is: using the Biot-Savart law, determine the magnetic field in a round circuit. Here is the equation:
The requirements are:
  1. Enter the radius of the circle (the round circuit)
  2. Divide the circle into many tiny straight circuits, and add all the magnetic fields of those circuit (with illustration).
  3. Draw the graph to illustrate the magnetic lines.
Please give me at least some clue to carry out this project. Thank you so much.
My English is not good, if there are any mistakes, please forgive me. Thanks.
  댓글 수: 2
Youssef  Khmou
Youssef Khmou 2013년 12월 23일
i can help with this project, you just give the numerical values of the current I and the absolute permeability .

댓글을 달려면 로그인하십시오.

답변 (3개)

Youssef  Khmou
Youssef Khmou 2013년 12월 23일
편집: Youssef Khmou 2013년 12월 23일
The magnetic field B(r) is perpendicular to the the circle, hence it depends on the altitude z, but suppose that we want to evaluate B at the center of circle , ie z=0.
You can use this part as a starting point :
% R=input(' Radius of the circuit [m]:');
r=0.1:0.01:2; % radius
u0=4*pi*1e-7; % Hm^-1.
I=1; % current 1A
%=linspace(0,1e-1,100);
B=(u0/2*pi)*((I*pi)./r);
figure,plot(r,B), xlabel('radius'),ylabel('Magnetic flux');grid on;
  댓글 수: 1
Nghia
Nghia 2013년 12월 23일
Thank you so much. If it's possible, can you give me the rest of this project? Actually my programing ability is not good and this is the first time I work with Matlab, so this project is hard for me. The current I is not written in the thread, so let's set it as 1A.

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2013년 12월 23일
Some clues. For 1, try using inputdlg(). For 3, use plot(). And the FAQ talks about circles: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F

GONTI NIKITHA
GONTI NIKITHA 2023년 4월 25일
% R=input(' Radius of the circuit [m]:');
r=0.1:0.01:2; % radius
u0=4*pi*1e-7; % Hm^-1.
I=1; % current 1A
%=linspace(0,1e-1,100);
B=(u0/2*pi)*((I*pi)./r);
figure,plot(r,B), xlabel('radius'),ylabel('Magnetic flux');grid on;

카테고리

Help CenterFile Exchange에서 General Physics에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by