【电磁】基于Matlab实现理想圆柱形电流片的精确磁场

1 内容介绍

The magnetic field of a cylindrical sheet of current provides a representation of the external field of a cylinder uniformly magnetized along its symmetry axis and an approximation to a helically wound solenoid and is expressible in terms of elliptical integral functions.

2 部分代码

xi_p = z+L/2;

xi_m = z-L/2;

alpha_p=1./sqrt(xi_p.^2+(rho+R).^2);

alpha_m=1./sqrt(xi_m.^2+(rho+R).^2);

beta_p=xi_p.*alpha_p;

beta_m=xi_m.*alpha_m;

g=(rho-R)./(rho+R);

k2_p=(xi_p.^2+(rho-R).^2)./(xi_p.^2+(rho+R).^2);

k2_m=(xi_m.^2+(rho-R).^2)./(xi_m.^2+(rho+R).^2);

k_p=sqrt(k2_p);

k_m=sqrt(k2_m);

K=@(k)ellipticK((1-k.^2));

E=@(k)ellipticE((1-k.^2));

Pi=@(k,g)ellipticPi(1-g.^2,(1-k.^2));

P_1=@(k,g)(K(k)-(2./(1-k.^2)).*(K(k)-E(k)));

P_2=@(k,g)( (1./(g.^2-1)).*(...

g.*(Pi(k,g)-K(k))+g.^2*Pi(k,g)-K(k)) );

B_r=(mu0*M*R./pi)*(alpha_p.*P_1(k_p,g) -alpha_m.*P_1(k_m,g));

B_z=(mu0*M*R./(pi.*(rho+R))).*(beta_p.*P_2(k_p,g)-beta_m.*P_2(k_m,g));

3 运行结果

4 参考文献

References

[1] Alessio Caciagli, Roel J. Baars, Albert P. Philipse, Bonny W.M. Kuipers, ''Exact expression for the magnetic field of a finite cylinder with arbitrary uniform magnetization,'' Journal of Magnetism and Magnetic Materials,

Volume 456, 2018, Pages 423-432, ISSN 0304-8853, .

博主简介:擅长智能优化算法神经网络预测信号处理元胞自动机图像处理路径规划无人机雷达通信无线传感器等多种领域的Matlab仿真,相关matlab代码问题可私信交流。

部分理论引用网络文献,若有侵权联系博主删除。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

matlab科研助手

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值