The Magnetic Fields Interface
The Magnetic Fields (mf) interface (), found under the AC/DC>Electromagnetic Fields branch when adding a physics interface, is used to compute magnetic field and induced current distributions in and around coils, conductors, and magnets. Depending on the licensed products, stationary, frequency-domain, small-signal analysis, and time-domain modeling are supported in 2D and 3D. Note that the frequency and time-domain formulations become ill-posed when approaching the static limit. You can extend the useful frequency range downward by adding a low conductivity.
The physics interface solves Maxwell’s equations, which are formulated using the magnetic vector potential and, optionally for coils, the scalar electric potential as the dependent variables.
The main node is Ampère’s Law, which adds the equation for the magnetic vector potential and provides an interface for defining the constitutive relations and its associated properties, such as the relative permeability.
When this physics interface is added, these default nodes are also added to the Model BuilderMagnetic Fields, Ampère’s Law, Magnetic Insulation (the default boundary condition), and Initial Values. Then, from the Physics toolbar, add other nodes that implement boundary conditions and external currents. You can also right-click Magnetic Fields to select physics features from the context menu.
Physics-Controlled Mesh
The physics-controlled mesh is controlled from the Mesh node’s Settings window (if the Sequence type is Physics-controlled mesh). There, in the table in the Physics-Controlled Mesh section, find the physics interface in the Contributor column and select or clear the check box in the Use column on the same table row for enabling (the default) or disabling contributions from the physics interface to the physics-controlled mesh.
Information from the physics, such as the presence of an infinite elements domain or periodic condition, will be used to automatically set up an appropriate mesh sequence.
In the COMSOL Multiphysics Reference Manual see the Physics-Controlled Mesh section for more information about how to define the physics-controlled mesh.
Settings
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics interface. Refer to such physics interface variables in expressions using the pattern <name>.<variable_name>. In order to distinguish between variables belonging to different physics interfaces, the name string must be unique. Only letters, numbers, and underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is mf.
Background Field
This section allows the specification of a background magnetic vector potential (that generates a background magnetic flux density). The only option to Solve for is Full field.
Components
The current vector has the same direction as the magnetic vector potential. This setting also controls the direction in which applied and induced currents can flow in the model. The default option is to solve for the out-of-plane component only. Therefore, the only Components option is Out-of-plane vector potential.
Thickness
For 2D components, enter a value or expression for the global Out-of-plane thickness d (SI unit: m). The default of 1 m is typically not representative for a thin domain. Instead it describes a unit thickness that makes the 2D equation identical to the equation used for 3D components.
Use the Change Thickness (Out-of-Plane) node (described for the Electrostatics interface) to define specific geometric entities (for example, domains) instead of a global setting for the thickness.
Error Check
To display this section, click the Show More Options button () and select Advanced Physics Options in the Show More Options dialog box.
When the Check applicability of features in study check box is selected, any features that are incompatible with the study will generate an error message when trying to solve or show the default solver. No solver will be generated. Deselect it and you will be able to run the model, possibly with runtime errors instead. It is available to allow the advanced user to tweak any feature and use it outside of its intended study scope.
Dependent Variables
The dependent variable is the Magnetic vector potential A. You can change both its field name and the individual component variable names. If the new field name coincides with the name of another magnetic vector potential field in the model, the physics interfaces share degrees of freedom and component names. The new field name must not coincide with the name of a field of another type, or with a component name belonging to some other field. Component names must be unique within a model, except for fields of the same type sharing a common field name.
DiscretizatioN
Quadrupole Lens: Application Library path COMSOL_Multiphysics/Electromagnetics/quadrupole