|
numerics
|
#include <adi.hpp>
Public Member Functions | |
| CrankNicolsonADI ()=default | |
| CrankNicolsonADI (int N_, double dt_, double h_) | |
| void | sweep (CVector &psi, bool x_axis, double tau) const |
Public Attributes | |
| int | N = 0 |
| double | dt = 0.0 |
| double | h = 0.0 |
|
default |
Pre-factor both tridiagonals.
| N_ | Interior grid points per axis |
| dt_ | Full timestep |
| h_ | Grid spacing |
Definition at line 47 of file adi.hpp.
References dt, num::ComplexTriDiag::factor(), h, num::ipow(), and N.
Apply one CN sweep along x (col fibers, x_axis=true) or y (row fibers). Selects the half-step tridiagonal for tau < 0.75*dt, full-step otherwise.
Definition at line 66 of file adi.hpp.
References num::col_fiber_sweep(), dt, h, num::ipow(), N, and num::row_fiber_sweep().
| double num::CrankNicolsonADI::dt = 0.0 |
Definition at line 38 of file adi.hpp.
Referenced by CrankNicolsonADI(), and sweep().
| double num::CrankNicolsonADI::h = 0.0 |
Definition at line 39 of file adi.hpp.
Referenced by CrankNicolsonADI(), and sweep().
| int num::CrankNicolsonADI::N = 0 |
Definition at line 37 of file adi.hpp.
Referenced by CrankNicolsonADI(), and sweep().