SpatialOps
SpatialOps::Particle::ParticlesPerCell< CellField > Class Template Reference

Computes the number of particles per cell and accounts for fractional contributions. More...

#include <ParticleOperators.h>

Public Member Functions

 ParticlesPerCell (const double dx, const double xlo, const double dy=-1, const double ylo=0, const double dz=-1, const double zlo=0, const InterpOptions method=INTERPOLATE)
 construct a ParticlesPerCell operator More...
 
void set_coordinate_information (const ParticleField *const pxcoord, const ParticleField *const pycoord, const ParticleField *const pzcoord, const ParticleField *const psize)
 
void apply_to_field (DestFieldType &dest) const
 

Detailed Description

template<typename CellField>
class SpatialOps::Particle::ParticlesPerCell< CellField >

Computes the number of particles per cell and accounts for fractional contributions.

Date
October 31, 2014
Author
Tony Saad

Definition at line 49 of file ParticleOperators.h.

Constructor & Destructor Documentation

◆ ParticlesPerCell()

template<typename CellField >
SpatialOps::Particle::ParticlesPerCell< CellField >::ParticlesPerCell ( const double  dx,
const double  xlo,
const double  dy = -1,
const double  ylo = 0,
const double  dz = -1,
const double  zlo = 0,
const InterpOptions  method = INTERPOLATE 
)

construct a ParticlesPerCell operator

Parameters
dxx-direction mesh spacing
xlox-direction low coordinate of CellField (interior - not including ghost cells)
dyy-direction mesh spacing
yloy-direction low coordinate of CellField (interior - not including ghost cells)
dzz-direction mesh spacing
zloz-direction low coordinate of CellField (interior - not including ghost cells)

Definition at line 39 of file ParticleOperators.cpp.

References SpatialOps::Particle::ParticlesPerCell< CellField >::set_coordinate_information().

Here is the call graph for this function:

Member Function Documentation

◆ apply_to_field()

template<typename CellField >
void SpatialOps::Particle::ParticlesPerCell< CellField >::apply_to_field ( DestFieldType &  dest) const
Parameters
destdestination field to which values are interpolated (CellField)

Definition at line 78 of file ParticleOperators.cpp.

References SpatialOps::SpatialField< FieldLocation, T >::begin(), and SpatialOps::SpatialField< FieldLocation, T >::end().

Referenced by SpatialOps::Particle::ParticlesPerCell< CellField >::set_coordinate_information().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_coordinate_information()

template<typename CellField >
void SpatialOps::Particle::ParticlesPerCell< CellField >::set_coordinate_information ( const ParticleField *const  pxcoord,
const ParticleField *const  pycoord,
const ParticleField *const  pzcoord,
const ParticleField *const  psize 
)
Parameters
pxcoordx-coordinate of each particle
pycoordy-coordinate of each particle
pzcoordz-coordinate of each particle
psizediameter of each particle

Definition at line 62 of file ParticleOperators.cpp.

References SpatialOps::Particle::ParticlesPerCell< CellField >::apply_to_field().

Referenced by SpatialOps::Particle::ParticlesPerCell< CellField >::ParticlesPerCell().

Here is the call graph for this function:
Here is the caller graph for this function:

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