peclet-amr 0.2.0
Block-local-Morton AMR octree + collocated cut-cell Navier–Stokes solver (header-only C++20, Kokkos + MPI)
Loading...
Searching...
No Matches
peclet::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< double > diag
 size n
 
std::vector< Index > start
 CSR row offsets, size n+1.
 
std::vector< Index > nbr
 neighbour leaf per off-diagonal, size nnz
 
std::vector< double > coef
 off-diagonal coefficient, size nnz
 

Detailed Description

template<unsigned Bits = 21u>
struct peclet::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 295 of file cut_cell.hpp.

Member Data Documentation

◆ diag

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

size n

Definition at line 296 of file cut_cell.hpp.

Referenced by peclet::amr::AmrCutCell< Bits >::assembleOperator().

◆ start

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

CSR row offsets, size n+1.

Definition at line 297 of file cut_cell.hpp.

◆ nbr

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

neighbour leaf per off-diagonal, size nnz

Definition at line 298 of file cut_cell.hpp.

◆ coef

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

off-diagonal coefficient, size nnz

Definition at line 299 of file cut_cell.hpp.


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