differt.em.AbstractFieldSolver

differt.em.AbstractFieldSolver#

class AbstractFieldSolver[source]#

Bases: Module

Abstract base class for all EM field solvers.

A field solver computes the received complex field(s) from a set of paths (however they were obtained) and the geometry/materials they interacted with.

This mirrors the path solver hierarchy (AbstractPathSolver): subclasses are expected to target a specific kind of paths, e.g., GeometricFieldSolver for TracedPaths, or, in the future, a solver for LaunchedPaths.

Methods

compute_fields(paths, mesh, frequency)

Compute the received complex fields for the given paths.

Detailed documentation

abstractmethod compute_fields(paths, mesh, frequency)[source]#

Compute the received complex fields for the given paths.

Solver-specific configuration (e.g., antenna polarization, radio materials) belongs on the solver instance itself, as attributes, rather than as extra arguments here – see, e.g., GeometricFieldSolver’s attributes.

Parameters:
Return type:

Complex[Array, "*batch"]

Returns:

The received complex fields.