public abstract class PDETimeSpaceGrid1D extends Object
Modifier and Type | Field and Description |
---|---|
protected Vector[] |
u
the solution matrix
|
Constructor and Description |
---|
PDETimeSpaceGrid1D(int M)
Constructs a time-space grid.
|
Modifier and Type | Method and Description |
---|---|
abstract TridiagonalMatrix |
getLHS(int m) |
abstract Vector |
getRHS(int m) |
abstract void |
initialCondition()
Initializes the grid with the initial conditions.
|
Vector[] |
propagate()
Propagates the grid to the next time step by solving \(Au=d\).
|
protected final Vector[] u
public PDETimeSpaceGrid1D(int M)
M
- the number of grid points along the time-axis (excluding the
initial condition)public abstract void initialCondition()
public abstract TridiagonalMatrix getLHS(int m)
public abstract Vector getRHS(int m)
public Vector[] propagate()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.