Cardinal
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
RadialBin Class Reference

#include <RadialBin.h>

Inheritance diagram for RadialBin:
[legend]

Public Member Functions

 RadialBin (const InputParameters &parameters)
 
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 _vertical_axis
 Direction of the vertical axis (x, y, or z) More...
 
const Real & _rmin
 Minimum radial coordinate. More...
 
const Real & _rmax
 Maximum radial coordinate. More...
 
const unsigned int & _nr
 Number of radial layers. More...
 
const Real & _growth_r
 Growth factor to apply to successive layers. More...
 
std::vector< Real > _radial_pts
 Points defining the bounds of the radial regions. 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...
 

Detailed Description

Class that bins spatial coordinates into a 1-D set of layers in the radial direction.

Constructor & Destructor Documentation

◆ RadialBin()

RadialBin::RadialBin ( const InputParameters &  parameters)

Member Function Documentation

◆ bin()

unsigned int RadialBin::bin ( const Point &  p) const
overridevirtual

Get the bin index from a spatial point

Parameters
[in]ppoint
Returns
bin index

Implements SpatialBinUserObject.

◆ binFromBounds()

unsigned int SpatialBinUserObject::binFromBounds ( const Real &  pt,
const std::vector< Real > &  bounds 
) const
inherited

Get the bin given a point in an array of bounding points between layers

Parameters
[in]ptpoint along axis of the bounding points
[in]boundsvector of bounding points
Returns
layer

◆ directions()

virtual const std::vector<unsigned int> SpatialBinUserObject::directions ( ) const
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.

◆ execute()

virtual void SpatialBinUserObject::execute ( )
inlinefinalvirtualinherited

◆ finalize()

virtual void SpatialBinUserObject::finalize ( )
inlinefinalvirtualinherited

◆ getBinCenters()

virtual const std::vector<Point>& SpatialBinUserObject::getBinCenters ( ) const
inlinevirtualinherited

Get the bin centers

Returns
bin centers

◆ initialize()

virtual void SpatialBinUserObject::initialize ( )
inlinefinalvirtualinherited

◆ num_bins()

unsigned int RadialBin::num_bins ( ) const
overridevirtual

Get the total number of bins

Returns
total number of bins

Implements SpatialBinUserObject.

◆ spatialValue()

Real SpatialBinUserObject::spatialValue ( const Point &  p) const
overridevirtualinherited

◆ validParams()

InputParameters RadialBin::validParams ( )
static

Member Data Documentation

◆ _bin_centers

std::vector<Point> SpatialBinUserObject::_bin_centers
protectedinherited

Center coordinates of the bins.

◆ _directions

std::vector<unsigned int> SpatialBinUserObject::_directions
protectedinherited

Directions along which the bin defines points.

◆ _growth_r

const Real& RadialBin::_growth_r
protected

Growth factor to apply to successive layers.

◆ _nr

const unsigned int& RadialBin::_nr
protected

Number of radial layers.

◆ _radial_pts

std::vector<Real> RadialBin::_radial_pts
protected

Points defining the bounds of the radial regions.

◆ _rmax

const Real& RadialBin::_rmax
protected

Maximum radial coordinate.

◆ _rmin

const Real& RadialBin::_rmin
protected

Minimum radial coordinate.

◆ _vertical_axis

const unsigned int RadialBin::_vertical_axis
protected

Direction of the vertical axis (x, y, or z)


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