Explicit Gauge Fixing/Divergence Constraint
The AC/DC Module has a gauge fixing feature that is imposed by adding an extra scalar field variable ψ (not to be confused with Ψ used in the gauge transformation in The Gauge and Equation of Continuity for Dynamic Fields). The ψ field is used to impose a divergence constraint. In the most simple case, that is for magnetostatics, Ampère’s law for the magnetic vector potential reads:
The equation for ψ is used to impose the Coulomb gauge: ∇⋅ A = 0. However, to get a closed set of equations, ψ must be able to affect the first equation and this is obtained by modifying the first equation to:
The additional term on the right-hand side can be seen as a Lagrange multiplier that not only imposes the Coulomb gauge but also eliminates any divergence in the externally generated current density, Je and makes it comply with the current continuity inherent in Ampère’s law.
The gauge fixing feature similarly imposes the Coulomb gauge also for the dynamic (frequency domain) study type in the Magnetic and Electric Fields interface.
For the dynamic (Frequency Domain and Time Dependent study) types for the Magnetic Fields interface, the gauge is already determined so the gauge fixing feature is not allowed to impose the Coulomb gauge but reduces to help imposing current conservation. The first one is for the Frequency Domain study and the second one is for the Time Dependent study type:
The main benefit of using this kind of divergence constraint is improved numerical stability, especially when approaching the static limit when the inherent gauge deteriorates.