AcousticSource

Package: kwave.toolbox Superclasses: kwave.toolbox.GridInput

Class used to define acoustic sources.

Syntax

source = AcousticSource(kgrid);

Description

This class is used to define the acoustic source terms (which includes initial conditions). The constructor takes an object of the kwave.toolbox.Grid class, which defines the grid size.

Examples

Define the grid and source objects, and assign the initial pressure.

  kgrid = kwave.toolbox.Grid([128, 128], 1e-3);
  source = kwave.toolbox.AcousticSource(kgrid);
  source.initialPressure = rand(source.gridSize);

Required Properties

  • initialPressure - Initial acoustic pressure distribution [Pa].

Optional Properties

  • initialVelocity - Initial acoustic particle velocity distribution [m/s]. If this is not defined, it is assumed to be zero.

See Also

  • GridInput