OneSimulation docs Website Free books Plans on Gumroad

Docs › Build a first case in each physics package › Magnetostatics

5.11 Magnetostatics

onesim.physics.magnetostatics

Assemble the model from permeability, a formulation and current sources. MagneticVectorPotential(gauge=CoulombGauge()) gives a vector-potential model with a divergence constraint. SolenoidCurrent supplies azimuthal winding current and a meshing support. MagneticInsulation sets tangential potential to zero. The explicit potential, magnetic-field and reluctance boundary declarations represent other tangential boundary models. Use the coil example in Chapter 3 as a starting point. Record the gauge, outer boundary distance and winding mesh size. For a linear material, plot \(B/I\) for several currents on the same axes to verify scaling.