Voltecx 目前為測試版。macOS 版先推出,Windows 與 Linux 安裝包仍在測試中。測試版。macOS 版先推出,Windows 與 Linux 版仍在測試。⁠最新消息
文件

磁場力與轉矩 (field.force)

元件參考 · English

選單: 無(快速開啟、CLI、Python 與 MCP) · 執行方式: 背景工作,有進度與取消

預覽功能:在「編輯 › 偏好設定 › 模擬」開啟預覽功能,或執行 preview.set {"enabled":true}。回覆會帶有 preview: true 與說明。

以下參數與說明取自指令本身的定義,與 CLI、Python 及 MCP 讀到的文字相同,因此保留英文。

說明

Preview. Solves the model as magnetics.fieldSolve meshes it (magnetostatic, linear materials, or the core on its B-H curve with nonlinear) with the currents given, all at once, and gives the force and torque on the body by the weighted stress tensor (the Maxwell stress tensor over the air around the body, weighted by a function that is 1 on the body and 0 on every other part, as FEMM's block integral), through the model's depth. The torque is positive anticlockwise (+z). virtualWork checks it by the derivative of the co-energy (on the B-H curve with nonlinear: each moved problem is a Newton solve, so it takes longer; a magnet's co-energy is the one on its recoil line, and a magnet in the body turns its magnetization with the body, 2d.md §13.7); lorentzN checks it for a coil in air. An axisymmetric sketch (axisymmetric: true, an (r, z) section about x = 0) gives the axial force F_z on the body for the full turn, the same three ways (2d.md §13.5), with nonlinear too (Newton's method on the (r, z) section, virtual work on the curve), and with magnets (direction [r, z], a ring magnetized in the section, on its recoil line in the body or outside it); the body may reach the axis; not with centreMm. With dimension 3, forceN and torqueNm are [x, y, z] for the whole 3D model (z along the extrusion, z = 0 its middle plane; centreMm may be [x, y, z]), the weighting held at 0 on the model's sides and free on its caps (3d.md §9.8), and lorentzN [x, y, z] on a non-magnetic body that carries current. Changes nothing.

參數

  • design: object? (a magnetics.design reply, or its best design)
  • sketch: object? (instead of design: the planar drawing magnetics.fieldSolve takes, in mm; field.lineProfile, field.regionTable and field.calculator also take an axisymmetric (r, z) section, axisymmetric: true with no depthMm, revolved a full turn, its magnets' direction [r, z] in the section)
  • muR: number? (design only)
  • clearanceMm: number=0.1 (design only)
  • elementMm: number? (largest element in the core and the windings, 0.01 to 50 mm)
  • currents: object? ({circuit: amperes}; default 1 A in every circuit; a circuit left out carries none)
  • magnets: [{region:str (the name of a region of the drawing that is not a coil; with a design, \"centre-leg gap\" draws the centre leg's gap as its own region, a slot the magnet fills, refused for a ring or a gapless design),direction:[x,y] (the magnetization direction, any length; [r, z] in an axisymmetric section),temperatureC:number,grade:str (a built-in grade: Arnold N35, Arnold N42, Arnold N42H or Arnold N42UH, sintered NdFeB, each from its Arnold Magnetic Technologies data sheet) | {name:str,source:str (the data sheet the values come from: document, revision, table),recoilMuR:number (≥ 1),points:[{temperatureC,brT (remanence),hcjAPerM (intrinsic coercivity),hkAPerM (knee field, H_k ≤ H_cJ)}] (1 to 64, rising temperature)}}]? (permanent magnets, at most 64: each region becomes a magnet on its recoil line B = μ0 μrec H + Br at the temperature, Br, H_cJ and H_k linear between the sheet's points and the nearest point outside them with an outsideMaterialData warning; any other grade's values are the caller's, and the grade must name its sheet; demagCurve:[[H,B]]? (field.lineProfile, field.regionTable, magnetics.fieldFluxMap, magnetics.fieldSolve {dimension: 3} and field.force {dimension: 3} only, every other command refuses it: the grade's normal demagnetization curve at temperatureC from the same data sheet, A/m and T, 2 to 200 points from [0, Br] with H and B both falling through the knee, its Br within 1 % of the grade's; the magnet is then solved by Newton's method on it, a reverse field along the magnetization on the curve and a forward or crosswise one on the recoil line, reversibly, with Br from the curve))
  • regions: [str] (the body: the names of the labels whose regions it is made of, e.g. ["core"]; every one must be surrounded by air, or touch only the body's other regions)
  • centreMm: [x,y]=[0,0] (mm, the point the torque is about; planar only)
  • virtualWork: bool=false (also find the force by virtual work: six more solves, the body moved by ±1e-3 of its size along x and y and turned by ±1e-4 rad; axisymmetric: two solves, moved along z)
  • nonlinear: bool=false (solve the core regions on their material's catalogue B-H curve by Newton's method: N87, N97, 3C90 and 3C95 have data-sheet curves; another material stays linear, with a note; a magnet stays on its recoil line)
  • material: str? (nonlinear with a sketch, required there: the catalogue material of its core regions; a design uses its own)
  • temperatureC: number? (nonlinear: the core temperature for the curve, -40 to 200; default the design's, else 25)
  • dimension: 2|3=2 (3: the 3D model magnetics.fieldSolve {dimension: 3} extrudes from a sketch or an E-type design, meshed as its half through the depth with even layers (the quarter when the body is its own mirror across x = 0; never with magnets) and whole with odd layers, the part's force unfolded into the whole body's and the planes named in mirrorPlanes; nonlinear and material as in 2D; magnets as in 2D, each its region through the depth magnetized in the drawing's plane, the model then never quartered, with magnets rows by volume (volumeMm3, direction [x,y,0], worstAtMm [x,y,z]) and their warnings, a drawing of magnets alone (no coil) extruded with no winding, its only source the magnets, and no currents; virtualWork as in 2D (six more solves, linear or Newton's with nonlinear: F_x, F_y and τ_z; on the quarter two, the move along y only, F_x then 0 by symmetry and τ_z = −c_x F_y; F_z, τ_x and τ_y null, since the extrusion's ends hold the body along z; 3d.md (9.8d)); not with an axisymmetric sketch; not a ring design)
  • layers: int? (dimension 3: element layers through the depth, 1 to the solver's limit; default 8)

回覆

  • currents
  • regions
  • dimension? (3 for the 3D force)
  • axisymmetric
  • forceN:[x,y] (axisymmetric: [0, F_z], the radial force cancelling round the axis)
  • torqueNm (null when axisymmetric)
  • method:"weightedStressTensor"
  • virtualWork:{forceN:[x,y],torqueNm,stepMm,angleRad}|null (dimension 3: forceN [x,y,null], torqueNm [null,null,z])
  • mirrorPlanes? (dimension 3: the mirror planes the part was unfolded across, e.g. ["z"])
  • lorentzN:[x,y]|null (the Lorentz force on the body's current; only when every region of it is non-magnetic)
  • nonlinear (true when the core was solved on a curve)
  • material:{name,temperatureC}|null (with nonlinear)
  • model (with newtonSteps when solved on a curve)
  • notes
  • preview
  • previewNote