core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::amr::AmrCutCell< Bits >::Assembled Struct Reference

The assembled linear operator A as a per-cell diagonal + face CSR: (A u)_i = diag[i]·u_i + Σ_{k∈[start[i],start[i+1])} coef[k]·u[nbr[k]]. More...

#include <cut_cell.hpp>

Public Attributes

std::vector< doublediag
 size n
 
std::vector< Indexstart
 CSR row offsets, size n+1.
 
std::vector< Indexnbr
 neighbour leaf per off-diagonal, size nnz
 
std::vector< doublecoef
 off-diagonal coefficient, size nnz
 

Detailed Description

template<unsigned Bits = 21u>
struct peclet::core::amr::AmrCutCell< Bits >::Assembled

The assembled linear operator A as a per-cell diagonal + face CSR: (A u)_i = diag[i]·u_i + Σ_{k∈[start[i],start[i+1])} coef[k]·u[nbr[k]].

Reproduces applyOp exactly (same coefficients): identity on solid rows; the C/F-aware idiag·I − μ∇² on regular fluid cells; the ξ-overlay 6-stencil on cut cells; plus the implicit-FOU advection coupling when buildAdvectionFou has been called. This is the device-portable form of the host operator — upload it once and run a parallel smoother / Krylov over it (momentum.hpp), instead of the serial gaussSeidel.

Definition at line 203 of file cut_cell.hpp.

Member Data Documentation

◆ diag

template<unsigned Bits = 21u>
std::vector<double> peclet::core::amr::AmrCutCell< Bits >::Assembled::diag

◆ start

template<unsigned Bits = 21u>
std::vector<Index> peclet::core::amr::AmrCutCell< Bits >::Assembled::start

CSR row offsets, size n+1.

Definition at line 205 of file cut_cell.hpp.

Referenced by peclet::core::amr::AmrCutCell< Bits >::assembleOperator(), and peclet::core::amr::AmrCutCell< Bits >::hostOp().

◆ nbr

template<unsigned Bits = 21u>
std::vector<Index> peclet::core::amr::AmrCutCell< Bits >::Assembled::nbr

neighbour leaf per off-diagonal, size nnz

Definition at line 206 of file cut_cell.hpp.

Referenced by peclet::core::amr::AmrCutCell< Bits >::assembleOperator(), and peclet::core::amr::AmrCutCell< Bits >::hostOp().

◆ coef

template<unsigned Bits = 21u>
std::vector<double> peclet::core::amr::AmrCutCell< Bits >::Assembled::coef

off-diagonal coefficient, size nnz

Definition at line 207 of file cut_cell.hpp.

Referenced by peclet::core::amr::AmrCutCell< Bits >::assembleOperator(), and peclet::core::amr::AmrCutCell< Bits >::hostOp().


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