Astronomical bodies, including stars, planets, galaxies can have Magnetic Fields, generally generated by a Dynamo, i.e., rotating material that is electrically conductive. They also be a remnant of earlier magnetism, preserved by Ferromagnetism, the "permanent magnet" effect of Iron and some other materials.
An object's magnetic field can be Dipole, basically arranged with the two magnetic polarities in opposite directions, or Multipole, arranged so that more than one region of its surface has each polarity. The dynamo includes moving material conducting electricity, e.g., something conductive convecting. A body (planet or star) showing a dipole field suggests the magnetic field's origin is dominated by a single large dynamo or aligned dynamos. A multipole field may be the result of ferromagnetism generated at an earlier age, or may be multiple misaligned dynamos. The latter is more likely in larger bodies and in slower rotation. A magnetic field can be "basically" dipole, i.e., include only small, weak regions other than what is expected in a dipole. Jupiter has a dipole field, but also Magnetic Spots, which might share characteristics of Sunspots.
An Angular Power Spectrum of the Magnetic Field Strength (a Magnetic Power Spectrum, using power in the sense of "the square of the Multipole Expansion coefficients"). around a spherical magnetized object (or sphere-shaped surface concentric with the center of an object) yields a characteristic of the field, e.g., to what degree it is organized into multiple poles at various scales.
There is a tendency to align a body's magnetic field with its spin, but it can be off, often by several degrees, a Dipole Tilt. Some cited Solar System magnetic fields (sources I've found are not always consistent):
|Body||Topology||Dipole Tilt||Field at equator|
|Earth||dipole||11°||about 0.3 Gauss|
Io, Europa, Callisto, and Titan have basically none. The Sun's varies over its 22-year cycle during which it flips polarity twice. Its topology varies, more dipole-like during Solar Minimum (fewest sunspots), the tilt for most of the cycle is 10° or less, and its Magnetic Flux Density is on the order of 100 times Earth's.
Current models and simulations produces some of the features seen in solar system magnetic fields, but have not been made to consistently reproduce them in detail.