public class CrankNicolsonHeatEquation1D extends Object implements PDESolver
UnsupportedOperationException
being thrown.Modifier and Type | Class and Description |
---|---|
static class |
CrankNicolsonHeatEquation1D.Coefficients
Gets the coefficients of a discretized 1D heat equation for each time
step.
|
Constructor and Description |
---|
CrankNicolsonHeatEquation1D() |
Modifier and Type | Method and Description |
---|---|
PDESolutionTimeSpaceGrid1D |
solve(HeatEquation1D pde,
int M,
int N)
Solves the given one-dimensional heat equation.
|
public PDESolutionTimeSpaceGrid1D solve(HeatEquation1D pde, int M, int N)
pde
- the PDE problemM
- the number of grid points along the time-axis (excluding the
initial condition)N
- the number of grid points along the space-axis (excluding the
two boundaries)Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.