- 积分
- 1609
- 回帖
- 0
- 西莫币
-
- 贡献
-
- 威望
-
- 存款
-
- 阅读权限
- 35
- 最后登录
- 1970-1-1
该用户从未签到
|
发表于 2016-9-9 07:35
|
显示全部楼层
来自: 加拿大
如果理解的没错的话,楼主是2D模型吧。因为3D模型的切向定义不是单一的。MagNet目前还不能直接显示这两个量。但楼主可使用Add New Field 脚本工具,使用Bx和By计算径向和切向磁密。如下是计算径向的一个简单例子以供参考:
Set oBFieldx = Sol.getSystemField(oMesh, "B x") 'Get B x field
Set oBFieldy = Sol.getSystemField(oMesh, "B y") 'Get B y field
Set oBRadial = oBFieldx
Set oBRadial2= oBFieldy
Dim oFieldx, oFieldy, oATANField, oATANField2
Set oFieldx = Sol.getSystemField(oMesh, "X") 'Get the field of X coordinates
Set oFieldy = Sol.getSystemField(oMesh, "Y") 'Get the field of Y coordinates
Set oATANField = oFieldy.atan(oFieldx) 'Get the angle
' where F1.atan(F2) in MagNet is equivalent to atan2(F1,F2) which is equal to atan(F1/F2) when F2 > 0
Set oATANField2 = oATANField.clone()
Call oATANField.cos() 'Converts field to the Cosine of its original values ; In other words the original OATANField gets overwritten with the resultant field
Call oATANField2.sin() 'Converts field to the Sine of its original values
Call oBRadial.multiply(oATANField) 'Bx*cos(angle)
Call oBRadial2.multiply(oATANField2) 'By*sin(angle)
Call oBRadial.add(oBRadial2) 'Bx*cos(angle) + By*sin(angle)
|
评分
-
查看全部评分
|