CubbyFlow::FDMMGLinearSystem2 Struct Reference

Multigrid-syle 2-D linear system. More...

#include <Core/FDM/FDMMGLinearSystem2.h>

Public Member Functions

void Clear ()
 Clears the linear system. More...
 
size_t GetNumberOfLevels () const
 Returns the number of multigrid levels. More...
 
void ResizeWithCoarsest (const Size2 &coarsestResolution, size_t numberOfLevels)
 Resizes the system with the coarsest resolution and number of levels. More...
 
void ResizeWithFinest (const Size2 &finestResolution, size_t maxNumberOfLevels)
 Resizes the system with the finest resolution and max number of levels. More...
 

Public Attributes

FDMMGMatrix2 A
 The system matrix. More...
 
FDMMGVector2 x
 The solution vector. More...
 
FDMMGVector2 b
 The RHS vector. More...
 

Detailed Description

Multigrid-syle 2-D linear system.

Member Function Documentation

◆ Clear()

void CubbyFlow::FDMMGLinearSystem2::Clear ( )

Clears the linear system.

◆ GetNumberOfLevels()

size_t CubbyFlow::FDMMGLinearSystem2::GetNumberOfLevels ( ) const

Returns the number of multigrid levels.

◆ ResizeWithCoarsest()

void CubbyFlow::FDMMGLinearSystem2::ResizeWithCoarsest ( const Size2 coarsestResolution,
size_t  numberOfLevels 
)

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

◆ ResizeWithFinest()

void CubbyFlow::FDMMGLinearSystem2::ResizeWithFinest ( const Size2 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).

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

Member Data Documentation

◆ A

FDMMGMatrix2 CubbyFlow::FDMMGLinearSystem2::A

The system matrix.

◆ b

FDMMGVector2 CubbyFlow::FDMMGLinearSystem2::b

The RHS vector.

◆ x

FDMMGVector2 CubbyFlow::FDMMGLinearSystem2::x

The solution vector.


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