Class CrankNicolsonHeatEquation1D.Coefficients

  • Enclosing class:
    CrankNicolsonHeatEquation1D

    public static class CrankNicolsonHeatEquation1D.Coefficients
    extends Object
    Gets the coefficients of a discretized 1D heat equation for each time step.
    See Also:
    "section 9.3 and example 9.3.3 in particular, Schilling & Harris"
    • Constructor Detail

      • Coefficients

        public Coefficients​(HeatEquation1D pde,
                            int N,
                            double dx,
                            double dt)
        Constructs the coefficient computation
        Parameters:
        pde - the 1D heat equation
        N - the number of grid points along the space-axis (excluding the two boundaries)
        dx - the spatial step
        dt - the time step