flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
peclet::flow::ChebCoeffs Struct Reference

The Chebyshev coefficient recurrence (Golub-Varga; the form multigrid Chebyshev smoothers use). More...

#include <mac_cheb_momentum.hpp>

Public Member Functions

 ChebCoeffs (double lo, double hi)
void next (int it, double &alpha, double &beta)
 Coefficients for iteration it (0-based). Advances the recurrence.

Public Attributes

double theta
double delta
double sigma
double rho

Detailed Description

The Chebyshev coefficient recurrence (Golub-Varga; the form multigrid Chebyshev smoothers use).

Iteration 0 takes alpha = 1/theta, beta = 0; iteration k takes rho_k = 1/(2 sigma - rho_{k-1}), alpha = 2 rho_k / delta, beta = rho_k rho_{k-1}. Holding the recurrence in one small struct keeps the driver free of solver algebra.

Definition at line 115 of file mac_cheb_momentum.hpp.

Constructor & Destructor Documentation

◆ ChebCoeffs()

peclet::flow::ChebCoeffs::ChebCoeffs ( double lo,
double hi )
inline

Definition at line 117 of file mac_cheb_momentum.hpp.

References delta, rho, sigma, and theta.

Member Function Documentation

◆ next()

void peclet::flow::ChebCoeffs::next ( int it,
double & alpha,
double & beta )
inline

Coefficients for iteration it (0-based). Advances the recurrence.

Definition at line 120 of file mac_cheb_momentum.hpp.

References delta, rho, sigma, and theta.

Referenced by peclet::flow::VelocityMG::chebSmooth(), and peclet::flow::Solver< Grid >::chebSolveComp().

Member Data Documentation

◆ theta

double peclet::flow::ChebCoeffs::theta

Definition at line 116 of file mac_cheb_momentum.hpp.

Referenced by ChebCoeffs(), and next().

◆ delta

double peclet::flow::ChebCoeffs::delta

Definition at line 116 of file mac_cheb_momentum.hpp.

Referenced by ChebCoeffs(), and next().

◆ sigma

double peclet::flow::ChebCoeffs::sigma

◆ rho


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