public static class CrankNicolsonHeatEquation1D.Coefficients extends Object
Constructor and Description |
---|
Coefficients(HeatEquation1D pde,
int N,
double dx,
double dt)
Constructs the coefficient computation
|
Modifier and Type | Method and Description |
---|---|
TridiagonalMatrix |
getLHS() |
Vector |
getRHS(Vector um,
double tm,
double tmp1) |
public Coefficients(HeatEquation1D pde, int N, double dx, double dt)
pde
- the 1D heat equationN
- the number of grid points along the space-axis (excluding
the two boundaries)dx
- the spatial stepdt
- the time steppublic TridiagonalMatrix getLHS()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.