autoCompute Time Step

Class: kwave.toolbox.AcousticSolver Package: kwave.toolbox

Compute Nt and dt from CFL and EndTime.

Syntax

autoComputeTimeStep(obj, CFL, EndTime)

Description

Compute the number of time steps and time step size based on the CFL number and the simulation end time.

Input Arguments

  • CFL - (numeric) Courant-Friedrichs-Lewy (CFL) number.
  • EndTime - (numeric) Simulation end time [s].

Output Arguments

  • Nt - (integer) Number of time steps.
  • dt - (numeric) Size of each time step.