I already know how to calculate magnetic field inside a current carrying wire with Ampere's law. LINK But I can't figure what we can do about wires with non-circular cross sections like rectangular or hexagonal.
I think calculation of the magnetic field in every position inside the wire may need numerical calculation but can we find an analytical solution for the center of the wire?
If not what is the right numerical approach?