Class PDETimeSpaceGrid1D


  • public abstract class PDETimeSpaceGrid1D
    extends Object
    This grid numerically solves a 1D PDE, e.g., using the Crank-Nicolson scheme.
    • Field Detail

      • u

        protected final Vector[] u
        the solution matrix
    • Constructor Detail

      • PDETimeSpaceGrid1D

        public PDETimeSpaceGrid1D​(int M)
        Constructs a time-space grid.
        Parameters:
        M - the number of grid points along the time-axis (excluding the initial condition)
    • Method Detail

      • initialCondition

        public abstract void initialCondition()
        Initializes the grid with the initial conditions.
      • getRHS

        public abstract Vector getRHS​(int m)
      • propagate

        public Vector[] propagate()
        Propagates the grid to the next time step by solving \(Au=d\).
        Returns:
        the grid, u