Python 分析电磁学

使用矢量优先方法,涵盖了静电学、静磁学、场、波以及传输线、波导和天线等应用。 还平衡地介绍了时变和静态领域。

为了便于理解,提供了有效的例子,解释了如何使用文中介绍的理论来解决不同类型的问题。 它还涵盖数值方法,包括 MATLAB 和向量分析。

Python分析示例

矢量分析


import scipy
from numpy import *

#Variable Declaration

A=array([10,-4,6])            
B=array([2,1,0])
ax=array([1,0,0])                #Unit vector along x direction
ay=array([0,1,0])                #Unit vector along y direction
az=array([0,0,1])                #Unit vector along z direction

#Calculations

Ay=dot(A,ay)                     #Component of A along y direction
l=scipy.sqrt(dot(3*A-B,3*A-B))   #Magnitude of the vector 3A-B

 #Defining the x,y and z components of the unit vector along A+2B
 
ux=round(dot(A+2*B,ax)/scipy.sqrt(dot(A+2*B,A+2*B)),4)
uy=round(dot(A+2*B,ay)/scipy.sqrt(dot(A+2*B,A+2*B)),4)
uz=round(dot(A+2*B,az)/scipy.sqrt(dot(A+2*B,A+2*B)),4)

u=array([ux,uy,uz])

#Results

print 'The component of A along y direction is',Ay
print 'Magnitude of 3A-B =',round(l,2)
print 'Unit vector along A+2B is',u

坐标系和变换

矢量微积分

静电场

物质空间中的电场

静电边值问题

静磁场

磁力、材料和器件

麦克斯韦方程

电磁波传播

传输线

波导

天线

详情参阅 亚图跨际

你可能感兴趣的:(交叉知识,python,电磁学)