Cardinal
|
#include <LayeredBin.h>
Public Member Functions | |
LayeredBin (const InputParameters ¶meters) | |
virtual unsigned int | bin (const Point &p) const override |
virtual unsigned int | num_bins () const override |
virtual void | execute () final |
virtual void | initialize () final |
virtual void | finalize () final |
virtual Real | spatialValue (const Point &p) const override |
unsigned int | binFromBounds (const Real &pt, const std::vector< Real > &bounds) const |
virtual const std::vector< Point > & | getBinCenters () const |
virtual const std::vector< unsigned int > | directions () const |
Static Public Member Functions | |
static InputParameters | validParams () |
Protected Attributes | |
const unsigned int | _direction |
Direction of the bins (x, y, or z) More... | |
const unsigned int & | _num_layers |
Number of equal-size layers. More... | |
const SubProblem * | _layered_subproblem |
Underlying problem. More... | |
Real | _direction_min |
Minimum coordinate in the direction. More... | |
Real | _direction_max |
Maxium coordinate in the direction. More... | |
std::vector< Real > | _layer_pts |
Bounds of the 1-D layering. More... | |
std::vector< Point > | _bin_centers |
Center coordinates of the bins. More... | |
std::vector< unsigned int > | _directions |
Directions along which the bin defines points. More... | |
Class that bins spatial coordinates into a 1-D set of layers between the bounding box of the domain.
LayeredBin::LayeredBin | ( | const InputParameters & | parameters | ) |
|
overridevirtual |
Get the bin index from a spatial point
[in] | p | point |
Implements SpatialBinUserObject.
|
inherited |
Get the bin given a point in an array of bounding points between layers
[in] | pt | point along axis of the bounding points |
[in] | bounds | vector of bounding points |
|
inlinevirtualinherited |
Get the coordinate directions (x, y, z) along which the bin distribution specifies the bins. For 1-D distributions, this will be just one of x, y, and z. For 2-D distributions, this will be a combination of x-y, y-z, or x-z.
|
inlinefinalvirtualinherited |
|
inlinefinalvirtualinherited |
|
inlinevirtualinherited |
Get the bin centers
|
inlinefinalvirtualinherited |
|
overridevirtual |
|
overridevirtualinherited |
|
static |
|
protectedinherited |
Center coordinates of the bins.
|
protected |
Direction of the bins (x, y, or z)
|
protected |
Maxium coordinate in the direction.
|
protected |
Minimum coordinate in the direction.
|
protectedinherited |
Directions along which the bin defines points.
|
protected |
Bounds of the 1-D layering.
|
protected |
Underlying problem.
|
protected |
Number of equal-size layers.