Jet  v1.3.3
Static Public Member Functions | List of all members
jet::FdmMgUtils2 Class Reference

Multigrid utilities for 2-D FDM system. More...

#include <jet/fdm_mg_linear_system2.h>

Static Public Member Functions

static void restrict (const FdmVector2 &finer, FdmVector2 *coarser)
 Restricts given finer grid to the coarser grid. More...
 
static void correct (const FdmVector2 &coarser, FdmVector2 *finer)
 Corrects given coarser grid to the finer grid. More...
 
template<typename T >
static void resizeArrayWithCoarsest (const Size2 &coarsestResolution, size_t numberOfLevels, std::vector< Array2< T >> *levels)
 Resizes the array with the coarsest resolution and number of levels. More...
 
template<typename T >
static void resizeArrayWithFinest (const Size2 &finestResolution, size_t maxNumberOfLevels, std::vector< Array2< T >> *levels)
 Resizes the array with the finest resolution and max number of levels. More...
 

Detailed Description

Multigrid utilities for 2-D FDM system.

Member Function Documentation

◆ correct()

static void jet::FdmMgUtils2::correct ( const FdmVector2 coarser,
FdmVector2 finer 
)
static

Corrects given coarser grid to the finer grid.

◆ resizeArrayWithCoarsest()

template<typename T >
static void jet::FdmMgUtils2::resizeArrayWithCoarsest ( const Size2 coarsestResolution,
size_t  numberOfLevels,
std::vector< Array2< T >> *  levels 
)
static

Resizes the array with the coarsest resolution and number of levels.

◆ resizeArrayWithFinest()

template<typename T >
static void jet::FdmMgUtils2::resizeArrayWithFinest ( const Size2 finestResolution,
size_t  maxNumberOfLevels,
std::vector< Array2< T >> *  levels 
)
static

Resizes the array 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).

Parameters
finestResolution- The finest grid resolution.
maxNumberOfLevels- Maximum number of multigrid levels.

◆ restrict()

static void jet::FdmMgUtils2::restrict ( const FdmVector2 finer,
FdmVector2 coarser 
)
static

Restricts given finer grid to the coarser grid.


The documentation for this class was generated from the following file: