quadgrid 0.1
simple cartesian quad grid with particles for c++/octave
Loading...
Searching...
No Matches
ptcl_to_grd_update_t< P2G_t, COORD_t > Class Template Reference

Template class for the update of ptcl_to_grd mapping. More...

#include <particles.h>

Public Member Functions

 ptcl_to_grd_update_t (P2G_t ptcl_to_grd_, const COORD_t x_, const COORD_t y_, const real_t hx_, const real_t hy_, const idx_t nrows_)
HOST DEVICE void operator() (particles_t::idx_t ii)

Private Types

using idx_t = particles_t::idx_t

Private Attributes

P2G_t ptcl_to_grd
const COORD_t x
const COORD_t y
const real_t hx
const real_t hy
const idx_t nrows

Detailed Description

template<typename P2G_t, typename COORD_t>
class ptcl_to_grd_update_t< P2G_t, COORD_t >

Template class for the update of ptcl_to_grd mapping.

Definition at line 458 of file particles.h.

Member Typedef Documentation

◆ idx_t

template<typename P2G_t, typename COORD_t>
using ptcl_to_grd_update_t< P2G_t, COORD_t >::idx_t = particles_t::idx_t
private

Definition at line 461 of file particles.h.

Constructor & Destructor Documentation

◆ ptcl_to_grd_update_t()

template<typename P2G_t, typename COORD_t>
ptcl_to_grd_update_t< P2G_t, COORD_t >::ptcl_to_grd_update_t ( P2G_t ptcl_to_grd_,
const COORD_t x_,
const COORD_t y_,
const real_t hx_,
const real_t hy_,
const idx_t nrows_ )
inline

Definition at line 470 of file particles.h.

Template class for the update of ptcl_to_grd mapping.
Definition particles.h:459
const real_t hx
Definition particles.h:465
const idx_t nrows
Definition particles.h:467
const COORD_t x
Definition particles.h:463
const COORD_t y
Definition particles.h:464
const real_t hy
Definition particles.h:466

Member Function Documentation

◆ operator()()

template<typename P2G_t, typename COORD_t>
HOST DEVICE void ptcl_to_grd_update_t< P2G_t, COORD_t >::operator() ( particles_t::idx_t ii)
inline

Definition at line 476 of file particles.h.

476 {
478 static_cast<idx_t> (std::floor (x[ii] / hx)),
479 nrows);
480 }
particles_t::idx_t idx_t
Definition particles.h:461
HOST static DEVICE idx_t sub2gind(idx_t r, idx_t c, idx_t nr)

Member Data Documentation

◆ hx

template<typename P2G_t, typename COORD_t>
const real_t ptcl_to_grd_update_t< P2G_t, COORD_t >::hx
private

Definition at line 465 of file particles.h.

◆ hy

template<typename P2G_t, typename COORD_t>
const real_t ptcl_to_grd_update_t< P2G_t, COORD_t >::hy
private

Definition at line 466 of file particles.h.

◆ nrows

template<typename P2G_t, typename COORD_t>
const idx_t ptcl_to_grd_update_t< P2G_t, COORD_t >::nrows
private

Definition at line 467 of file particles.h.

◆ ptcl_to_grd

template<typename P2G_t, typename COORD_t>
P2G_t ptcl_to_grd_update_t< P2G_t, COORD_t >::ptcl_to_grd
private

Definition at line 462 of file particles.h.

◆ x

template<typename P2G_t, typename COORD_t>
const COORD_t ptcl_to_grd_update_t< P2G_t, COORD_t >::x
private

Definition at line 463 of file particles.h.

◆ y

template<typename P2G_t, typename COORD_t>
const COORD_t ptcl_to_grd_update_t< P2G_t, COORD_t >::y
private

Definition at line 464 of file particles.h.


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