solve_source

emg3d.solver.solve_source(model, source, frequency, **kwargs)[source]

Return electric field for a given source and frequency.

This function is a simple shortcut for the following:

sfield = emg3d.get_source_field(grid, source, frequency, **kwargs)
efield = emg3d.solve(model, sfield, **kwargs)

See the documentation of emg3d.fields.get_source_field for the description of model, source, and frequency, and the documentation of emg3d.solver.solve for all other input and output parameters.