|
1D Heat Equation Solver 1.0
Computational Methods Assignment 2025
|
Crank-Nicolson scheme implementation. More...
#include <crank_nicolson.hpp>


Public Member Functions | |
| std::string | name () const override |
| Get human-readable name of the scheme. | |
| bool | uses_previous_step () const noexcept override |
| Indicates if the scheme requires data from time step n-1. | |
| void | step (const Grid &g, double D, double dt, const std::vector< double > &Tprev, const std::vector< double > &Tcurr, std::vector< double > &Tnext) const override |
| Advance one time step using Crank-Nicolson scheme. | |
| Public Member Functions inherited from Method | |
| virtual | ~Method ()=default |
Crank-Nicolson scheme implementation.
Definition at line 9 of file crank_nicolson.hpp.
|
inlineoverridevirtual |
Get human-readable name of the scheme.
Implements Method.
Definition at line 12 of file crank_nicolson.hpp.
|
overridevirtual |
Advance one time step using Crank-Nicolson scheme.
Implements Method.
Definition at line 11 of file crank_nicolson.cpp.
|
inlineoverridevirtualnoexcept |
Indicates if the scheme requires data from time step n-1.
Implements Method.
Definition at line 17 of file crank_nicolson.hpp.