Magnetism A-formulation
This page describes the available interactions and couplings for magnetostatics using the magnetic vector potential in Allsolve. The weak formulation is stated up front; the full derivation is at the end of this page.
Weak formulation
Section titled “Weak formulation”The weak form solved by Allsolve is
where is the magnetic vector potential, the magnetic field intensity, the current density, and the magnetic permeability.
See Formulation derivation for the full strong-to-weak derivation.
Interactions
Section titled “Interactions”Magnetic wall
Section titled “Magnetic wall”Imposes a zero tangential magnetic field on the boundary, equivalent to a perfect magnetic conductor (PMC). In the A-formulation, this is a natural boundary condition, meaning it is satisfied automatically if no other condition is applied.
Remanence
Section titled “Remanence”Defines a remanent magnetization for permanent magnets. Can be specified as a constant vector or as a vector valued function.
| How to use | You can use either the matrix editor or the expression editor. With the matrix editor, provide a 3×1 matrix for a 3D problem (2×1 for 2D, etc.) with remanence field vector values for each dimension. In the expression editor, write the direct expression. |
| Example | [1; 5; 0] applies a 3D remanence field of , and to the specified region. Same principles apply for 2D. See also Adding spatially varying remanence field to permanent magnets. |
| Unit | Remanence magnetic field in Teslas (T) |
Periodicity
Section titled “Periodicity”Imposes periodic boundary conditions on the magnetic vector potential field between two boundaries. Reduces the computational domain size for geometrically symmetric or antisymmetric problems, avoiding the need to model the full geometry.
| Example | Periodicity follows the same principles, regardless of which physics module it belongs to. See how periodicity is used in magnetism as a reference: Periodicity in electric motors |
Couplings to Other Physics
Section titled “Couplings to Other Physics”This formulation supports the following couplings:
- A-v coupling
- Current flow
Compatibilities with analysis types
Section titled “Compatibilities with analysis types”Magnetism A supports Static, Harmonic, Multiharmonic, and Transient analysis. Eigenmode analysis is not supported.
See the full compatibility table in Simulations overview.
Use cases
Section titled “Use cases”Formulation derivation
Section titled “Formulation derivation”Strong formulation
Section titled “Strong formulation”Our starting points along with the material relation are
Since the magnetic field is divergence-free, we can use the identity for divergence of a curl and write the magnetic field as a curl of some vector
Vector is called a magnetic vector potential. By substituting into and rearranging, the material relation becomes
Substituting into , the strong form becomes
Deriving the weak form
Section titled “Deriving the weak form”To obtain the weak form, multiply by the test function and integrate over the domain :
Using the identity for divergence of a cross product on the first term we get
Applying the divergence theorem on the first term we obtain
Using the scalar triple product rule on the boundary term we get
Substituting in the second term and by rearranging we get the final weak formulation stated at the top of this page.