SchurExplicitFluxKernel Struct ReferenceΒΆ

adc_cpp: pops::detail::SchurExplicitFluxKernel Struct Reference
adc_cpp 0.3.0
Model-free C++23 core for coupled hyperbolic-elliptic systems on adaptive (AMR) meshes, with MPI and GPU (Kokkos) backends
pops::detail::SchurExplicitFluxKernel Struct Reference

EXPLICIT flux F = rho B^{-1} v^n (v = (mx,my)/rho) ASSEMBLED per cell, WRITTEN at the center into fx/fy. More...

#include <schur_condensation.hpp>

+ Collaboration diagram for pops::detail::SchurExplicitFluxKernel:

Public Member Functions

POPS_HD void operator() (int i, int j) const
 

Public Attributes

ConstArray4 s
 fluid state (mx, my read at components c_mx, c_my)
 
ConstArray4 bz
 B_z field at the center.
 
Array4 fx
 
Array4 fy
 output: components of the flux F = B^{-1} (mx, my)
 
Real th_dt
 theta * dt (w = th_dt * B_z)
 
int c_mx
 
int c_my
 MomentumX / MomentumY components.
 

Detailed Description

EXPLICIT flux F = rho B^{-1} v^n (v = (mx,my)/rho) ASSEMBLED per cell, WRITTEN at the center into fx/fy.

rho B^{-1} v = B^{-1} (rho v) = B^{-1} (mx, my): we apply B^{-1} DIRECTLY to the momentum (mx, my), which avoids the division by rho (and its rho=0 case). Device-clean NAMED functor.

Member Function Documentation

◆ operator()()

POPS_HD void pops::detail::SchurExplicitFluxKernel::operator() ( int  i,
int  j 
) const
inline
+ Here is the call graph for this function:

Member Data Documentation

◆ bz

ConstArray4 pops::detail::SchurExplicitFluxKernel::bz

B_z field at the center.

◆ c_mx

int pops::detail::SchurExplicitFluxKernel::c_mx

◆ c_my

int pops::detail::SchurExplicitFluxKernel::c_my

MomentumX / MomentumY components.

◆ fx

Array4 pops::detail::SchurExplicitFluxKernel::fx

◆ fy

Array4 pops::detail::SchurExplicitFluxKernel::fy

output: components of the flux F = B^{-1} (mx, my)

◆ s

ConstArray4 pops::detail::SchurExplicitFluxKernel::s

fluid state (mx, my read at components c_mx, c_my)

◆ th_dt

Real pops::detail::SchurExplicitFluxKernel::th_dt

theta * dt (w = th_dt * B_z)


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