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

Assembled momentum operator on the device: (A u)_i = diag_i u_i + Σ coef·u[nbr], with an optional implicit-FOU advection part (rebuilt each step from the lagged velocity): a per-cell outflow diagonal advDiag + per-face inflow coefficients over a second (face-geometry) CSR. More...

#include <momentum.hpp>

Public Attributes

View< doublediag
 size n
 
View< IndexfaceStart
 CSR row offsets, size n+1.
 
View< IndexfaceNbr
 neighbour leaf per off-diagonal, size nnz
 
View< doublefaceCoef
 off-diagonal coefficient, size nnz
 
Index n = 0
 
bool hasAdv = false
 
View< doubleadvDiag
 per-cell outflow (diagonal) advection weight, size n
 
View< IndexadvStart
 face-geom CSR row offsets, size n+1
 
View< IndexadvNbr
 face-geom neighbour per face, size nFaces
 
View< doubleadvCoef
 per-face inflow advection coefficient (0 on outflow/solid faces)
 

Detailed Description

Assembled momentum operator on the device: (A u)_i = diag_i u_i + Σ coef·u[nbr], with an optional implicit-FOU advection part (rebuilt each step from the lagged velocity): a per-cell outflow diagonal advDiag + per-face inflow coefficients over a second (face-geometry) CSR.

hasAdv=false ⇒ the pure cut-cell operator, bit-exact unchanged.

Definition at line 43 of file momentum.hpp.

Member Data Documentation

◆ diag

View<double> peclet::core::amr::MomentumOp::diag

size n

Definition at line 44 of file momentum.hpp.

Referenced by peclet::core::amr::assembleMomentum(), and peclet::core::amr::momView().

◆ faceStart

View<Index> peclet::core::amr::MomentumOp::faceStart

CSR row offsets, size n+1.

Definition at line 45 of file momentum.hpp.

Referenced by peclet::core::amr::assembleMomentum(), and peclet::core::amr::momView().

◆ faceNbr

View<Index> peclet::core::amr::MomentumOp::faceNbr

neighbour leaf per off-diagonal, size nnz

Definition at line 46 of file momentum.hpp.

Referenced by peclet::core::amr::assembleMomentum(), and peclet::core::amr::momView().

◆ faceCoef

View<double> peclet::core::amr::MomentumOp::faceCoef

off-diagonal coefficient, size nnz

Definition at line 47 of file momentum.hpp.

Referenced by peclet::core::amr::assembleMomentum(), and peclet::core::amr::momView().

◆ n

◆ hasAdv

◆ advDiag

View<double> peclet::core::amr::MomentumOp::advDiag

per-cell outflow (diagonal) advection weight, size n

Definition at line 51 of file momentum.hpp.

Referenced by peclet::core::amr::momView(), and peclet::core::amr::AmrFlow< Bits >::setSolid().

◆ advStart

View<Index> peclet::core::amr::MomentumOp::advStart

face-geom CSR row offsets, size n+1

Definition at line 52 of file momentum.hpp.

Referenced by peclet::core::amr::momView(), and peclet::core::amr::AmrFlow< Bits >::setSolid().

◆ advNbr

View<Index> peclet::core::amr::MomentumOp::advNbr

face-geom neighbour per face, size nFaces

Definition at line 53 of file momentum.hpp.

Referenced by peclet::core::amr::momView(), and peclet::core::amr::AmrFlow< Bits >::setSolid().

◆ advCoef

View<double> peclet::core::amr::MomentumOp::advCoef

per-face inflow advection coefficient (0 on outflow/solid faces)

Definition at line 54 of file momentum.hpp.

Referenced by peclet::core::amr::momView(), and peclet::core::amr::AmrFlow< Bits >::setSolid().


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