Skip to content

Problem

Problem(grid, *args, **kwargs)

Bases: stride.Problem

Problem class for NDK. It is a subclass of stride.Problem.

The problem defines a medium with a set of fields (such as Vp or density), some transducers (such as a series of scalar point transducers), a geometry where those transducers are located in space, and the acquisitions that happen given that geometry.

Parameters:

Name Type Description Default
grid Grid

the grid to use for the problem.

required

add_material_fields(materials, masks)

Add material fields as media to the problem.

Included fields are:

  • the speed of sound (in m/s)
  • density (in kg/m^3)
  • absorption (in dB/cm)

Parameters:

Name Type Description Default
materials Mapping[str, Struct]

a mapping from material names to Structs containing the material properties.

required
masks Mapping[str, npt.NDArray[np.bool_]]

a mapping from material names to boolean masks indicating the gridpoints.

required