get_magnetic_field#

emg3d.fields.get_magnetic_field(model, efield)[source]#

Return magnetic field corresponding to provided electric field.

Retrieve the magnetic field \(\mathbf{H}\) from the electric field \(\mathbf{E}\) using Farady’s law, given by

\[\nabla \times \mathbf{E} = \rm{i}\omega\mu\mathbf{H} .\]

Note that the magnetic field is defined on the faces of the grid, unlike the electric field which is defined on the edges.

Parameters:
modelModel

The model; a emg3d.models.Model instance.

efieldField

The electric field; a emg3d.fields.Field instance.

Returns:
hfieldField

The magnetic field; a emg3d.fields.Field instance.