quadgrid 0.1
simple cartesian quad grid with particles for c++/octave
Loading...
Searching...
No Matches
boundary< GVAR_t > Class Template Reference

#include <taylor_dispersion.h>

Public Member Functions

 boundary (GVAR_t Jdiffy_, idx_t nx_, idx_t ny_)
DEVICE void operator() (idx_t i)

Private Types

using idx_t = particles_t::idx_t

Private Attributes

GVAR_t Jdiffy
idx_t nx
idx_t ny

Detailed Description

template<typename GVAR_t>
class boundary< GVAR_t >

Definition at line 213 of file taylor_dispersion.h.

Member Typedef Documentation

◆ idx_t

template<typename GVAR_t>
using boundary< GVAR_t >::idx_t = particles_t::idx_t
private

Definition at line 214 of file taylor_dispersion.h.

Constructor & Destructor Documentation

◆ boundary()

template<typename GVAR_t>
boundary< GVAR_t >::boundary ( GVAR_t Jdiffy_,
idx_t nx_,
idx_t ny_ )
inline

Definition at line 219 of file taylor_dispersion.h.

Member Function Documentation

◆ operator()()

template<typename GVAR_t>
DEVICE void boundary< GVAR_t >::operator() ( idx_t i)
inline

Definition at line 224 of file taylor_dispersion.h.

224 {
225 using qgt = quadgrid_t<GVAR_t>;
226
227 Jdiffy[qgt::sub2gind(ny, i, ny+1)] = 0;
228 Jdiffy[qgt::sub2gind(0, i, ny+1)] = 0;
229
230 }

Member Data Documentation

◆ Jdiffy

template<typename GVAR_t>
GVAR_t boundary< GVAR_t >::Jdiffy
private

Definition at line 215 of file taylor_dispersion.h.

◆ nx

template<typename GVAR_t>
idx_t boundary< GVAR_t >::nx
private

Definition at line 216 of file taylor_dispersion.h.

◆ ny

template<typename GVAR_t>
idx_t boundary< GVAR_t >::ny
private

Definition at line 216 of file taylor_dispersion.h.


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