主要内容

磁静力剂

Magnetostatic solution and derived quantities

    Description

    A磁静力剂物体在方便绘制和后处理的形式中包含磁电势,磁场和磁通密度值。

    The magnetic potential, magnetic field, and magnetic flux density are calculated at the nodes of the triangular or tetrahedral mesh generated byGeneratemesh. Magnetic potential values at the nodes appear in theMagneticPotential财产。节点处的磁场值出现在MagneticField财产。节点处的磁通密度出现在磁性浮雕密度财产。

    To interpolate the magnetic potential, magnetic field, and magnetic flux density to a custom grid, such as the one specified by网格格里德, use theinterpolateMagneticPotential,间磁性菲尔德, 和螺型磁通弹功能。

    Creation

    使用solvefunction. This function returns a solution as a磁静力剂目的。

    Properties

    expand all

    节点处的磁性值, returned as a vector for a 2-D problem or anFEStruct3-D问题的对象。该对象的性质包含节点处的磁电势的组件。

    Data Types:double

    节点处的磁场值, returned as anFEStruct目的。The properties of this object contain the components of the magnetic field at nodes.

    节点处的磁通量密度值,返回FEStruct目的。The properties of this object contain the components of the magnetic flux density at nodes.

    有限元网格,返回女性特性目的。For details, see女性特性. For a 3-D model, the mesh must be linear.

    Object Functions

    interpolateMagneticPotential Interpolate magnetic potential in magnetostatic result at arbitrary spatial locations
    间磁性菲尔德 Interpolate magnetic field in magnetostatic result at arbitrary spatial locations
    螺型磁通弹 Interpolate magnetic flux density in magnetostatic result at arbitrary spatial locations

    Examples

    collapse all

    Solve a 2-D electromagnetic problem.

    Create an electromagnetic model for magnetostatic analysis.

    emagmodel = createpde('电磁','magnetostatic');

    导入和绘制代表带有孔的板的几何形状。

    导入测定法(emagmodel,'PlateHolePlanar.stl')
    ans = DiscreteGeometry with properties: NumCells: 0 NumFaces: 1 NumEdges: 5 NumVertices: 5 Vertices: [5x3 double]
    pdegplot(emagmodel,'edgelabels','on')

    Figure contains an axes object. The axes object contains an object of type line.

    指定单位SI系统中的真空渗透率值。

    emagmodel.vacuumpermeabible = 1.2566370614E-6;

    指定材料的相对渗透性。

    electromagneticProperties(emagmodel,“相对效果”,5000);

    Apply the magnetic potential boundary conditions on the edges framing the rectangle and the circle.

    电磁体BC(emagmodel,'MagneticPotential',0,'Edge',1:4);电磁体BC(emagmodel,'MagneticPotential',0.01,'Edge',5);

    Specify the current density for the entire geometry.

    electromagneticSource(emagmodel,'CurrentDensity',0.5);

    Generate the mesh.

    Generatemesh(emagmodel);

    解决模型。

    R = solve(emagmodel)
    R = MagnetostaticResults with properties: MagneticPotential: [1218x1 double] MagneticField: [1x1 FEStruct] MagneticFluxDensity: [1x1 FEStruct] Mesh: [1x1 FEMesh]

    绘制magnetic potential and field.

    pdeplot(emagmodel,'XYData',R.MagneticPotential,...'flowdata',[R.MagneticField.Hx...r.magneticfield.hy]) axisequal

    Figure contains an axes object. The axes object contains 2 objects of type patch, quiver.

    Solve an electromagnetic problem and find the magnetic potential and field distribution for a 3-D geometry representing a plate with a hole.

    Create an electromagnetic model for magnetostatic analysis.

    emagmodel = createpde('电磁','magnetostatic');

    导入和绘制代表带有孔的板的几何形状。

    导入测定法(emagmodel,'plateholesolid.stl');pdegplot(emagmodel,'FaceLabels','on','FaceAlpha',0.3)

    Figure contains an axes object. The axes object contains 3 objects of type quiver, patch, line.

    指定单位SI系统中的真空渗透率值。

    emagmodel.vacuumpermeabible = 1.2566370614E-6;

    指定材料的相对渗透性。

    electromagneticProperties(emagmodel,“相对效果”,5000);

    Specify the current density for the entire geometry.

    electromagneticSource(emagmodel,'CurrentDensity',[0; 0; 0.5]);

    在侧面和与孔接壤的面上施加磁性边界条件。

    电磁体BC(emagmodel,'MagneticPotential',[0;0;0],'Face',3:6); electromagneticBC(emagmodel,'MagneticPotential',[0;0;0.01],'Face',7);

    生成网格。

    Generatemesh(emagmodel);

    解决模型。

    R = solve(emagmodel)
    R = MagnetostaticResults with properties: MagneticPotential: [1x1 FEStruct] MagneticField: [1x1 FEStruct] MagneticFluxDensity: [1x1 FEStruct] Mesh: [1x1 FEMesh]

    绘制z- 磁性电势的组成。

    pdeplot3D(emagmodel,'ColormapData',r.magneticpotential.az)

    绘制磁场。

    pdeplot3D(emagmodel,'flowdata',[R.MagneticField.Hx...r.magneticfield.hy...r.magneticfield.hz])

    Introduced in R2021a