Class CrankNicolsonHeatEquation1D.Coefficients
- java.lang.Object
-
- dev.nm.analysis.differentialequation.pde.finitedifference.parabolic.dim1.heatequation.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 Summary
Constructors Constructor Description Coefficients(HeatEquation1D pde, int N, double dx, double dt)
Constructs the coefficient computation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TridiagonalMatrix
getLHS()
Vector
getRHS(Vector um, double tm, double tmp1)
-
-
-
Constructor Detail
-
Coefficients
public Coefficients(HeatEquation1D pde, int N, double dx, double dt)
Constructs the coefficient computation- Parameters:
pde
- the 1D heat equationN
- the number of grid points along the space-axis (excluding the two boundaries)dx
- the spatial stepdt
- the time step
-
-
Method Detail
-
getLHS
public TridiagonalMatrix getLHS()
-
-