Jet
v1.3.3
|
Multigrid-syle 3-D linear system. More...
#include <jet/fdm_mg_linear_system3.h>
Public Member Functions | |
void | clear () |
Clears the linear system. More... | |
size_t | numberOfLevels () const |
Returns the number of multigrid levels. More... | |
void | resizeWithCoarsest (const Size3 &coarsestResolution, size_t numberOfLevels) |
Resizes the system with the coarsest resolution and number of levels. More... | |
void | resizeWithFinest (const Size3 &finestResolution, size_t maxNumberOfLevels) |
Resizes the system with the finest resolution and max number of levels. More... | |
Public Attributes | |
FdmMgMatrix3 | A |
The system matrix. More... | |
FdmMgVector3 | x |
The solution vector. More... | |
FdmMgVector3 | b |
The RHS vector. More... | |
Multigrid-syle 3-D linear system.
void jet::FdmMgLinearSystem3::clear | ( | ) |
Clears the linear system.
size_t jet::FdmMgLinearSystem3::numberOfLevels | ( | ) | const |
Returns the number of multigrid levels.
void jet::FdmMgLinearSystem3::resizeWithCoarsest | ( | const Size3 & | coarsestResolution, |
size_t | numberOfLevels | ||
) |
Resizes the system with the coarsest resolution and number of levels.
void jet::FdmMgLinearSystem3::resizeWithFinest | ( | const Size3 & | finestResolution, |
size_t | maxNumberOfLevels | ||
) |
Resizes the system with the finest resolution and max number of levels.
This function resizes the system with multiple levels until the resolution is divisible with 2^(level-1).
finestResolution | - The finest grid resolution. |
maxNumberOfLevels | - Maximum number of multigrid levels. |
FdmMgMatrix3 jet::FdmMgLinearSystem3::A |
The system matrix.
FdmMgVector3 jet::FdmMgLinearSystem3::b |
The RHS vector.
FdmMgVector3 jet::FdmMgLinearSystem3::x |
The solution vector.