public class CrankNicolsonConvectionDiffusionEquation1D extends Object implements PDESolver
Modifier and Type | Class and Description |
---|---|
static class |
CrankNicolsonConvectionDiffusionEquation1D.Coefficients
Gets the coefficients of a discretized 1D convection-diffusion equation
for each time step.
|
Constructor and Description |
---|
CrankNicolsonConvectionDiffusionEquation1D()
Constructs a Crank-Nicolson solver for a 1 dimensional
convection-diffusion PDE.
|
Modifier and Type | Method and Description |
---|---|
PDESolutionTimeSpaceGrid1D |
solve(ConvectionDiffusionEquation1D pde,
int M,
int N)
Solves a 1 dimensional convection-diffusion equation.
|
public CrankNicolsonConvectionDiffusionEquation1D()
public PDESolutionTimeSpaceGrid1D solve(ConvectionDiffusionEquation1D pde, int M, int N)
pde
- a 1 dimensional convection-diffusion equationM
- 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.