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

#include <mg_bottom_direct.hpp>

Public Types

using Mat = Kokkos::View<FacReal***, Kokkos::LayoutRight, CCMem>
using Sq = Kokkos::View<FacReal**, Kokkos::LayoutRight, CCMem>

Public Member Functions

int n () const
void coords (int f, int c[3]) const
int extIndex (const int c[3]) const
int extOf (int f) const
int factorIndex (const int c[3]) const
template<class OpV>
bool face (const OpV &AFX, const OpV &AFY, const OpV &AFZ, const int c[3], int i, int f6, int nb[3], double &af) const
template<class Member, class RV, class ZV, class CV>
void apply (const Member &t, const RV &r, const ZV &z, const CV &comp, const ZV *keep, bool teamAlgorithm=false) const
template<class Member>
void laneSubstitute (const Member &t) const
template<class Member>
void teamSubstitute (const Member &t) const

Static Public Member Functions

static BottomDirect allocate (const BottomPlanes &p, C3 ext)
static void laneMatVec (FacReal *acc, const FacReal *x, const FacReal *v, int b, int lo, int hi)

Public Attributes

BottomPlanes pl
C3 ext {0, 0, 0}
Mat Q
Mat Y
Sq e
Sq Sg
Sq L
Sq W
Kokkos::View< double *, CCMem > s
Kokkos::View< FacReal *, CCMem > g
Kokkos::View< FacReal *, CCMem > u
Kokkos::View< int *, CCMem > stat

Static Public Attributes

static constexpr bool kHostLaneM = std::is_same_v<CCMem, Kokkos::HostSpace>

Detailed Description

template<class FacReal>
struct peclet::flow::BottomDirect< FacReal >

Definition at line 135 of file mg_bottom_direct.hpp.

Member Typedef Documentation

◆ Mat

template<class FacReal>
using peclet::flow::BottomDirect< FacReal >::Mat = Kokkos::View<FacReal***, Kokkos::LayoutRight, CCMem>

Definition at line 136 of file mg_bottom_direct.hpp.

◆ Sq

template<class FacReal>
using peclet::flow::BottomDirect< FacReal >::Sq = Kokkos::View<FacReal**, Kokkos::LayoutRight, CCMem>

Definition at line 137 of file mg_bottom_direct.hpp.

Member Function Documentation

◆ allocate()

template<class FacReal>
BottomDirect peclet::flow::BottomDirect< FacReal >::allocate ( const BottomPlanes & p,
C3 ext )
inlinestatic

◆ n()

template<class FacReal>
int peclet::flow::BottomDirect< FacReal >::n ( ) const
inline

Definition at line 170 of file mg_bottom_direct.hpp.

References pl.

Referenced by advect.Ann::__init__(), conj.Geo2::__init__(), conj_peters.Box::__init__(), and allocate().

◆ coords()

template<class FacReal>
void peclet::flow::BottomDirect< FacReal >::coords ( int f,
int c[3] ) const
inline

Definition at line 172 of file mg_bottom_direct.hpp.

References pl.

Referenced by extOf().

◆ extIndex()

template<class FacReal>
int peclet::flow::BottomDirect< FacReal >::extIndex ( const int c[3]) const
inline

Definition at line 179 of file mg_bottom_direct.hpp.

References ext.

Referenced by extOf().

◆ extOf()

template<class FacReal>
int peclet::flow::BottomDirect< FacReal >::extOf ( int f) const
inline

Definition at line 182 of file mg_bottom_direct.hpp.

References coords(), and extIndex().

Referenced by apply().

◆ factorIndex()

template<class FacReal>
int peclet::flow::BottomDirect< FacReal >::factorIndex ( const int c[3]) const
inline

Definition at line 187 of file mg_bottom_direct.hpp.

References pl.

◆ face()

template<class FacReal>
template<class OpV>
bool peclet::flow::BottomDirect< FacReal >::face ( const OpV & AFX,
const OpV & AFY,
const OpV & AFZ,
const int c[3],
int i,
int f6,
int nb[3],
double & af ) const
inline

Definition at line 195 of file mg_bottom_direct.hpp.

References ext, and pl.

◆ apply()

template<class FacReal>
template<class Member, class RV, class ZV, class CV>
void peclet::flow::BottomDirect< FacReal >::apply ( const Member & t,
const RV & r,
const ZV & z,
const CV & comp,
const ZV * keep,
bool teamAlgorithm = false ) const
inline

Definition at line 228 of file mg_bottom_direct.hpp.

References extOf(), g, kHostLaneM, laneSubstitute(), pl, s, teamSubstitute(), and u.

◆ laneMatVec()

template<class FacReal>
void peclet::flow::BottomDirect< FacReal >::laneMatVec ( FacReal * acc,
const FacReal * x,
const FacReal * v,
int b,
int lo,
int hi )
inlinestatic

Definition at line 255 of file mg_bottom_direct.hpp.

References PECLET_BOTTOM_HOST_SIMD.

Referenced by laneSubstitute().

◆ laneSubstitute()

template<class FacReal>
template<class Member>
void peclet::flow::BottomDirect< FacReal >::laneSubstitute ( const Member & t) const
inline

Definition at line 284 of file mg_bottom_direct.hpp.

References e, g, peclet::flow::kBottomMaxPlane, laneMatVec(), PECLET_BOTTOM_HOST_SIMD, pl, Q, u, and Y.

Referenced by apply().

◆ teamSubstitute()

template<class FacReal>
template<class Member>
void peclet::flow::BottomDirect< FacReal >::teamSubstitute ( const Member & t) const
inline

Definition at line 340 of file mg_bottom_direct.hpp.

References e, g, PECLET_BOTTOM_UNROLL, pl, Q, u, and Y.

Referenced by apply().

Member Data Documentation

◆ pl

◆ ext

template<class FacReal>
C3 peclet::flow::BottomDirect< FacReal >::ext {0, 0, 0}

Definition at line 139 of file mg_bottom_direct.hpp.

Referenced by allocate(), extIndex(), face(), and gsv1.Case::face_avg().

◆ Q

template<class FacReal>
Mat peclet::flow::BottomDirect< FacReal >::Q

Definition at line 140 of file mg_bottom_direct.hpp.

Referenced by laneSubstitute(), and teamSubstitute().

◆ Y

template<class FacReal>
Mat peclet::flow::BottomDirect< FacReal >::Y

Definition at line 141 of file mg_bottom_direct.hpp.

Referenced by laneSubstitute(), and teamSubstitute().

◆ e

template<class FacReal>
Sq peclet::flow::BottomDirect< FacReal >::e

Definition at line 142 of file mg_bottom_direct.hpp.

Referenced by laneSubstitute(), and teamSubstitute().

◆ Sg

template<class FacReal>
Sq peclet::flow::BottomDirect< FacReal >::Sg

Definition at line 143 of file mg_bottom_direct.hpp.

◆ L

◆ W

template<class FacReal>
Sq peclet::flow::BottomDirect< FacReal >::W

Definition at line 143 of file mg_bottom_direct.hpp.

Referenced by gsv1.Layered::avg().

◆ s

◆ g

template<class FacReal>
Kokkos::View<FacReal*, CCMem> peclet::flow::BottomDirect< FacReal >::g

◆ u

◆ stat

template<class FacReal>
Kokkos::View<int*, CCMem> peclet::flow::BottomDirect< FacReal >::stat

Definition at line 148 of file mg_bottom_direct.hpp.

◆ kHostLaneM

template<class FacReal>
bool peclet::flow::BottomDirect< FacReal >::kHostLaneM = std::is_same_v<CCMem, Kokkos::HostSpace>
staticconstexpr

Definition at line 226 of file mg_bottom_direct.hpp.

Referenced by apply().


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