CubbyFlow::FDMMGUtils3 Class Reference

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

#include <Core/FDM/FDMMGLinearSystem3.hpp>

Static Public Member Functions

static void Restrict (const FDMVector3 &finer, FDMVector3 *coarser)
 Restricts given finer grid to the coarser grid. More...
 
static void Correct (const FDMVector3 &coarser, FDMVector3 *finer)
 Corrects given coarser grid to the finer grid. More...
 
template<typename T >
static void ResizeArrayWithCoarsest (const Vector3UZ &coarsestResolution, size_t numberOfLevels, std::vector< Array3< T >> *levels)
 Resizes the array with the coarsest resolution and number of levels. More...
 
template<typename T >
static void ResizeArrayWithFinest (const Vector3UZ &finestResolution, size_t maxNumberOfLevels, std::vector< Array3< 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 CubbyFlow::FDMMGUtils3::Correct ( const FDMVector3 coarser,
FDMVector3 finer 
)
static

Corrects given coarser grid to the finer grid.

◆ ResizeArrayWithCoarsest()

template<typename T >
void CubbyFlow::FDMMGUtils3::ResizeArrayWithCoarsest ( const Vector3UZ coarsestResolution,
size_t  numberOfLevels,
std::vector< Array3< T >> *  levels 
)
static

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

◆ ResizeArrayWithFinest()

template<typename T >
void CubbyFlow::FDMMGUtils3::ResizeArrayWithFinest ( const Vector3UZ finestResolution,
size_t  maxNumberOfLevels,
std::vector< Array3< 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.
levels- The array to resize.

◆ Restrict()

static void CubbyFlow::FDMMGUtils3::Restrict ( const FDMVector3 finer,
FDMVector3 coarser 
)
static

Restricts given finer grid to the coarser grid.


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