measure the magnetic field

5 次查看(过去 30 天)
Ram W
Ram W 2019-5-16
Hi everyone,
I am new with Matlab, I'm tring to measure the magnatic field in a prototype of gradient coil by using biosvat law, the problem is I need arcs instead of streight line in the attached image and I don't know how can I generate these arcs via matlab.
I used this code to simulate the wires pattern.
Looking forward for your help.
thanks in advanced.
% Source points (where there is a current source)
Gamma1 = [0.03,0,0; % x,y,z [m,m,m]
0.19,0,0;
0.19,0.32,0;
0.03,0.32,0;
0.03,0,0
0.03,0,0.25
0.19,0,0.25;
0.19,0.32,0.25;
0.03,0.32,0.25;
0.03,0,0.25];
I1 = 2; % filament current [A]
dGamma1 = 1e-3; % filament max discretization step [m]
[BSmag] = BSmag_add_filament(BSmag,Gamma1,I1,dGamma1);
Gamma2 = [0.41,0,0; % x,y,z [m,m,m] ( 1 and 3 2dam b3d w 2 w 4 nfs alshe)
0.25,0,0;
0.25,0.32,0;
0.41,0.32,0;
0.41,0,0
0.41,0,0.25
0.25,0,0.25;
0.25,0.32,0.25;
0.41,0.32,0.25;
0.41,0,0.25];
I2 = 2; % filament current [A]
dGamma2 = 1e-3; % filament max discretization step [m]
[BSmag] = BSmag_add_filament(BSmag,Gamma2,I2,dGamma2);

回答(2 个)

son nguyen xuan
son nguyen xuan 2019-8-23
hi i'm doing the same thing as you. it's about simulating gradient coil in mri. can i ask you some quenstion?
kind regards

ABDUR RAHMAN
ABDUR RAHMAN 2022-6-22
% Source points (where there is a current source)
Gamma1 = [0.03,0,0; % x,y,z [m,m,m]
0.19,0,0;
0.19,0.32,0;
0.03,0.32,0;
0.03,0,0
0.03,0,0.25
0.19,0,0.25;
0.19,0.32,0.25;
0.03,0.32,0.25;
0.03,0,0.25];
I1 = 2; % filament current [A]
dGamma1 = 1e-3; % filament max discretization step [m]
[BSmag] = BSmag_add_filament(BSmag,Gamma1,I1,dGamma1);
Gamma2 = [0.41,0,0; % x,y,z [m,m,m] ( 1 and 3 2dam b3d w 2 w 4 nfs alshe)
0.25,0,0;
0.25,0.32,0;
0.41,0.32,0;
0.41,0,0
0.41,0,0.25
0.25,0,0.25;
0.25,0.32,0.25;
0.41,0.32,0.25;
0.41,0,0.25];
I2 = 2; % filament current [A]
dGamma2 = 1e-3; % filament max discretization step [m]
[BSmag] = BSmag_add_filament(BSmag,Gamma2,I2,dGamma2);

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by