30 #define NEUTRON_MASS 939565378
33 #define LIGHT_SPEED 299792458
216 Tally(
char* tally_name=(
char*)
"");
229 double getTally(
int bin_index,
int batch_num);
393 :
Tally(tally_name) {
429 :
Tally(tally_name) {
465 :
Tally(tally_name) {
523 char* tally_name=(
char*)
"")
572 char* tally_name=(
char*)
"")
625 char* tally_name=(
char*)
"")
672 char* tally_name=(
char*)
"")
723 char* tally_name=(
char*)
"")
772 char* tally_name=(
char*)
"")
821 char* tally_name=(
char*)
"")
868 char* tally_name=(
char*)
"")
895 char* tally_name=(
char*)
"")
919 char* tally_name=(
char*)
"")
966 char* tally_name=(
char*)
"")
1018 char* tally_name=(
char*)
"")
1065 char* tally_name=(
char*)
"")
1117 char* tally_name=(
char*)
"")
1164 char* tally_name=(
char*)
"")
1215 char* tally_name=(
char*)
"")
1262 char* tally_name=(
char*)
"")
1313 char* tally_name=(
char*)
"")
1360 char* tally_name=(
char*)
"")
1389 char* tally_name=(
char*)
"")
1436 char* tally_name=(
char*)
"")
1538 char* tally_name=(
char*)
"")
1562 char* tally_name=(
char*)
"")
1586 char* tally_name=(
char*)
"")
1613 :
Tally(tally_name){
1639 "the bins have not yet been created",
_tally_name);
1658 index = std::numeric_limits<int>::max();
triggerTypes
The type of precision trigger for a tally object.
Definition: Tally.h:73
DerivedTally * operator*(Tally *tally)
Tally multiplication operator.
Definition: Tally.cpp:1660
void retrieveTallyVariance(double *data, int num_bins)
This method fills an array with the tally variances.
Definition: Tally.cpp:593
A class for tallying the flux in all regions filled by a material.
Definition: Tally.h:1453
GeometryTransportRateTally(Geometry *geometry, char *tally_name=(char *)"")
GeometryTransportRateTally constructor calls the GeometryTally constructor and Tally constructors and...
Definition: Tally.h:1261
void tally(neutron *neutron)
Tally the material group-to-group scattering rate by incrementing the tally by at the neutron's ener...
Definition: Tally.cpp:3259
Represents a neutron in a PINSPEC simulation.
Definition: Neutron.h:27
double * getBinCenters()
Returns a double array of bin center values.
Definition: Tally.cpp:115
int findUpperIndex(T *x, int upper_bound, int lower_bound, U pt)
This function finds the index of the first element in an array that is greater than the given paramet...
Definition: interpolate.h:31
A class for tallying the transport rate within the geometry.
Definition: Tally.h:1251
void tally(neutron *neutron)
Tally the material leakage rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3645
DerivedTally * subtractFloats(const float *amt, const int length)
Tally subtraction with an array of floats.
Definition: Tally.cpp:2534
tallyTypes
The types of tallies which may be instantiated and used in a PINSPEC simulation.
Definition: Tally.h:99
void computeScaledBatchStatistics(double scale_factor)
Computes average, variance, standard deviation and relative error for each bin over the set of batche...
Definition: Tally.cpp:1049
A class for tallying the absorption rate within a region.
Definition: Tally.h:932
binSpacingType getBinSpacingType()
Returns the bin spacing type (EQUAL, LOGARITHMIC, OTHER).
Definition: Tally.cpp:160
A class for tallying the transport rate within a material.
Definition: Tally.h:1204
tallyType getTallyType()
Returns the type of tally for these bins (FLUX, COLLISION_RATE, etc).
Definition: Tally.cpp:178
virtual void tally(neutron *neutron)=0
A method to tally a neutron to be implemented by subclasses.
int _num_edges
Definition: Tally.h:180
char * _tally_name
Definition: Tally.h:176
void tally(neutron *neutron)
Tally the region absorption rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3383
A class for tallying the collision rate within a material.
Definition: Tally.h:1007
RegionGroupRateTally(Region *region, char *tally_name=(char *)"")
RegionGroupRateTally constructor calls the RegionTally constructor and Tally constructors and sets th...
Definition: Tally.h:747
A class for tallying the outter scattering rate within the geometry.
Definition: Tally.h:857
A class for tallying the leakage rate for the regions filled by a material.
Definition: Tally.h:1378
void tally(neutron *neutron)
Tally the geometry elastic scattering rate by incrementing the tally by at the neutron's energy...
Definition: Tally.cpp:3230
double getMaxVariance()
Returns the maximum tally variance over batches.
Definition: Tally.cpp:355
double * _centers
Definition: Tally.h:184
void tally(neutron *neutron)
Tally the material flux by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3689
Material * _material
Definition: Tally.h:384
Tally * clone()
Creates a new version of this tally with identical data.
Definition: Tally.cpp:1379
void tally(neutron *neutron)
Tally the region outter scattering rate by incrementing the tally by at the neutron's energy...
Definition: Tally.cpp:3327
A class for tallying the flux for the geometry.
Definition: Tally.h:1499
void retrieveTallyEdges(double *data, int num_bins)
This method fills an array with the tally bin edges.
Definition: Tally.cpp:513
double ** _tallies
Definition: Tally.h:186
void tally(neutron *neutron)
Tally the region flux by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3700
A class for tallying the group-to-group scattering rate for an isotope.
Definition: Tally.h:689
double * _batch_std_dev
Definition: Tally.h:207
A class for tallying the leakage rate for a region.
Definition: Tally.h:1402
double getMaxMu()
Returns the maximum average tally over batches.
Definition: Tally.cpp:338
double * _batch_rel_err
Definition: Tally.h:209
A class for tallying the collision rate within a material.
Definition: Tally.h:512
A class for tallying the elastic scattering rate within a material.
Definition: Tally.h:614
double * _edges
Definition: Tally.h:182
void setPrecisionTrigger(triggerType trigger_type, float precision)
Sets a precision trigger for this tally.
Definition: Tally.cpp:760
A class for tallying the elastic scattering rate within the geometry.
Definition: Tally.h:661
An abstract class for tallies with MATERIAL domain type.
Definition: Tally.h:380
A class for tallying the leakage rate for the geometry.
Definition: Tally.h:1425
RegionTransportRateTally(Region *region, char *tally_name=(char *)"")
RegionTransportRateTally constructor calls the RegionTally constructor and Tally constructors and set...
Definition: Tally.h:1238
void normalizeBatchMu()
Divide each tally by the maximum tally value.
Definition: Tally.cpp:1099
void setBatchRelErr(double *batch_rel_err)
Assigns an array for the tally batch relative errors.
Definition: Tally.cpp:3841
RegionAbsorptionRateTally(Region *region, char *tally_name=(char *)"")
RegionAbsorptionRateTally constructor calls the RegionTally constructor and Tally constructors and se...
Definition: Tally.h:942
void tally(neutron *neutron)
Tally the geometry diffusion rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3626
void retrieveTallyStdDev(double *data, int num_bins)
This method fills an array with the tally standard deviations.
Definition: Tally.cpp:626
RegionDiffusionRateTally(Region *region, char *tally_name=(char *)"")
RegionDiffusionRateTally constructor calls the RegionTally constructor and Tally constructors and set...
Definition: Tally.h:1336
GeometryElasticRateTally(Geometry *geometry, char *tally_name=(char *)"")
GeometryElasticRateTally constructor calls the GeometryTally constructor and Tally constructors and s...
Definition: Tally.h:671
MaterialLeakageRateTally(Material *material, char *tally_name=(char *)"")
MaterialLeakageRateTally constructor calls the MaterialTally constructor and Tally constructors and s...
Definition: Tally.h:1388
The Isotope represents a nuclide at some temperature.
Definition: Isotope.h:41
float getTriggerPrecision()
Returns the trigger precision for this tally.
Definition: Tally.cpp:409
A class for tallying the capture rate within the geometry.
Definition: Tally.h:1054
RegionOutScatterRateTally(Region *region, char *tally_name=(char *)"")
RegionOutScatterRateTally constructor calls the RegionTally constructor and Tally constructors and se...
Definition: Tally.h:844
A class for tallying the fission rate within a region..
Definition: Tally.h:1130
void tally(neutron *neutron)
Tally the material outter scattering rate by incrementing the tally by at the neutron's energy...
Definition: Tally.cpp:3314
Tally(char *tally_name=(char *)"")
Tally constructor.
Definition: Tally.cpp:26
void tally(neutron *neutron)
Tally the geometry leakage rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3671
double _bin_delta
Definition: Tally.h:188
A class for tallying the flux for a region.
Definition: Tally.h:1476
Geometry * _geometry
Definition: Tally.h:456
void tally(neutron *neutron)
Tally the geometry transport rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3565
GeometryTally(Geometry *geometry, char *tally_name=(char *)"")
GeometryTally constructor calls the Tally constructor and sets the tally domain to GEOMETRY...
Definition: Tally.h:464
triggerType getTriggerType()
Returns the precision trigger type (VARIANCE, STANDARD_DEVIATION, RELATIVE_ERROR, or NONE)...
Definition: Tally.cpp:419
binSpacingType _bin_spacing
Definition: Tally.h:190
void tally(neutron *neutron)
Tally the material fission rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3483
void tally(neutron *neutron)
Tally the region diffusion rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3611
void tally(neutron *neutron)
Tally the isotope diffusion rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3582
A class for tallying the absorption rate within a material.
Definition: Tally.h:908
DerivedTally * operator/(Tally *tally)
Tally division operator.
Definition: Tally.cpp:1772
GeometryAbsorptionRateTally(Geometry *geometry, char *tally_name=(char *)"")
GeometryAbsorptionRateTally constructor calls the GeometryTally constructor and Tally constructors an...
Definition: Tally.h:965
double * _batch_variance
Definition: Tally.h:205
int _num_batches
Definition: Tally.h:201
MaterialOutScatterRateTally(Material *material, char *tally_name=(char *)"")
MaterialOutScatterRateTally constructor calls the MaterialTally constructor and Tally constructors an...
Definition: Tally.h:820
void outputBatchStatistics(const char *filename)
Outputs the batch statistics (if they have been computed) to an ASCII file.
Definition: Tally.cpp:1122
GeometryGroupRateTally(Geometry *geometry, char *tally_name=(char *)"")
GeometryGroupRateTally constructor calls the GeometryTally constructor and Tally constructors and set...
Definition: Tally.h:771
void printTallies(bool uncertainties=false)
Print the tally values to the screen.
Definition: Tally.cpp:1239
Isotope * _isotope
Definition: Tally.h:346
void retrieveTallyRelErr(double *data, int num_bins)
This method fills an array with the tally relative errors.
Definition: Tally.cpp:659
bool _computed_statistics
Definition: Tally.h:211
RegionCaptureRateTally(Region *region, char *tally_name=(char *)"")
RegionCaptureRateTally constructor calls the RegionTally constructor and Tally constructors and sets ...
Definition: Tally.h:1041
void tally(neutron *neutron)
Tally the isotope absorption rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3356
void setTallyDomainType(tallyDomainType type)
Set the tally domain type (MATERIAL, REGION, etc.).
Definition: Tally.cpp:690
A class for tallying the outter scattering rate for an isotope.
Definition: Tally.h:788
A class for tallying the group-to-group scattering rate within a region.
Definition: Tally.h:737
GeometryFissionRateTally(Geometry *geometry, char *tally_name=(char *)"")
GeometryFissionRateTally constructor calls the GeometryTally constructor and Tally constructors and s...
Definition: Tally.h:1163
DerivedTally * operator+(Tally *tally)
Tally addition operator.
Definition: Tally.cpp:1443
The region class represents a region in 2D space.
Definition: Region.h:58
void tally(neutron *neutron)
Tally the region absorption rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3396
double getMaxStdDev()
Returns the maximum tally standard deviatoin.
Definition: Tally.cpp:389
IsotopeTally(Isotope *isotope, char *tally_name=(char *)"")
IsotopeTally constructor calls the Tally constructor and sets the tally domain to ISOTOPE...
Definition: Tally.h:355
void setBatchVariance(double *batch_variance)
Assigns an array for the tally batch variances.
Definition: Tally.cpp:3821
enum tallyTypes tallyType
The types of tallies which may be instantiated and used in a PINSPEC simulation.
void tally(neutron *neutron)
Tally the region capture rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3439
void tallyGroup(neutron *neutron, double weight)
This method tallies a particular weight for a neutron for group-to group scattering.
Definition: Tally.cpp:959
virtual ~Tally()
Tally destructor deletes memory for tallies, number of tallies, bin centers and bin edges (if they ha...
Definition: Tally.cpp:53
double * getBatchVariance()
Returns a pointer to an array of tally batch variances if they have been computed.
Definition: Tally.cpp:293
float _trigger_precision
Definition: Tally.h:198
void computeBatchStatistics()
Computes average, variance, standard deviation and relative error for each bin over the set of batche...
Definition: Tally.cpp:998
void tally(neutron *neutron)
Tally the region group-to-group scattering rate by incrementing the tally by at the neutron's energy...
Definition: Tally.cpp:3272
void tally(neutron *neutron)
Tally the material elastic scattering rate by incrementing the tally by at the neutron's energy...
Definition: Tally.cpp:3217
IsotopeCaptureRateTally(Isotope *isotope, char *tally_name=(char *)"")
IsotopeCaptureRateTally constructor calls the IsotopeTally constructor and Tally constructors and set...
Definition: Tally.h:994
void tally(neutron *neutron)
Tally the region fission rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3495
The Geometry represents the highest level entity in which a neutron may reside during a PINSPEC simul...
Definition: Geometry.h:48
void retrieveTallyMu(double *data, int num_bins)
This method fills an array with the average tally values.
Definition: Tally.cpp:563
IsotopeGroupRateTally(Isotope *isotope, char *tally_name=(char *)"")
IsotopeGroupRateTally constructor calls the IsotopeTally constructor and Tally constructors and sets ...
Definition: Tally.h:699
int getNumEdges()
Returns the number of tally edges.
Definition: Tally.cpp:93
void setBatchStdDev(double *batch_std_dev)
Assigns an array for the tally batch standard deviations.
Definition: Tally.cpp:3831
triggerType _trigger_type
Definition: Tally.h:196
A class for tallying the diffusion rate within a material.
Definition: Tally.h:1302
MaterialFluxTally(Material *material, char *tally_name=(char *)"")
IsotopeCaptureRateTally constructor calls the MaterialTally constructor and Tally constructors and se...
Definition: Tally.h:1463
enum binSpacingTypes binSpacingType
The spacing between bin edges for a tally.
A Tally reprsents a set of bins for tallying some quantity.
Definition: Tally.h:172
MaterialDiffusionRateTally(Material *material, char *tally_name=(char *)"")
MaterialDiffusionRateTally constructor calls the MaterialTally constructor and Tally constructors and...
Definition: Tally.h:1312
void tally(neutron *neutron)
Tally the material transport rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3539
void setBatchMu(double *batch_mu)
Assigns an array for the tally batch averages.
Definition: Tally.cpp:3812
void setNumBatches(int num_batches)
Set the number of batches for this Tally.
Definition: Tally.cpp:778
bool isPrecisionTriggered()
Returns whether or not the tally precision meets the precision trigger threshold, if a trigger exists...
Definition: Tally.cpp:449
void retrieveTallyCenters(double *data, int num_bins)
This method fills an array with the tally bin centers.
Definition: Tally.cpp:536
A class for tallying the absorption rate for an isotope.
Definition: Tally.h:884
A class for tallying the transport rate for an isotope.
Definition: Tally.h:1181
Functions for creating arrays with similar syntax to MATLAB.
GeometryDiffusionRateTally(Geometry *geometry, char *tally_name=(char *)"")
GeometryDiffusionRateTally constructor calls the GeometryTally constructor and Tally constructors and...
Definition: Tally.h:1359
void tally(neutron *neutron)
Tally the isotope fission rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3469
DerivedTally * divideIntegers(const int *amt, const int length)
Tally division with an array of integers.
Definition: Tally.cpp:2802
DerivedTally * addIntegers(const int *amt, const int length)
Tally addition with an array of integers.
Definition: Tally.cpp:2345
A class for tallying the group-to-group scattering rate within the geometry.
Definition: Tally.h:761
MaterialFissionRateTally(Material *material, char *tally_name=(char *)"")
MaterialFissionRateTally constructor calls the MaterialTally constructor and Tally constructors and s...
Definition: Tally.h:1116
A class for tallying the outter scattering rate within a region.
Definition: Tally.h:834
void tally(neutron *neutron)
Tally the region leakage rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3658
binSpacingTypes
The spacing between bin edges for tallies.
Definition: Tally.h:146
A class for tallying the diffusion rate within a region.
Definition: Tally.h:1326
DerivedTally(char *tally_name=(char *)"")
DerivedTally constructor calls the Tally constructor and sets the tally domain type to UNDEFINED and ...
Definition: Tally.h:1612
A class for tallies resulting from tally arithmetic operations.
Definition: Tally.h:1603
void setTallies(double **tallies)
Assigns an array for the tally values.
Definition: Tally.cpp:3803
RegionCollisionRateTally(Region *region, char *tally_name=(char *)"")
RegionCollisionRateTally constructor calls the RegionTally constructor and Tally constructors and set...
Definition: Tally.h:547
MaterialTally(Material *material, char *tally_name=(char *)"")
MaterialTally constructor calls the Tally constructor and sets the tally domain to MATERIAL...
Definition: Tally.h:392
MaterialCollisionRateTally(Material *material, char *tally_name=(char *)"")
MaterialCollisionRateTally constructor calls the MaterialTally constructor and Tally constructors and...
Definition: Tally.h:522
double * getBatchMu()
Returns a pointer to an array of tally batch averages if they have been computed. ...
Definition: Tally.cpp:278
DerivedTally * multiplyFloats(const float *amt, const int length)
Tally multiplication with an array of floats.
Definition: Tally.cpp:2686
Region * _region
Definition: Tally.h:420
MaterialCaptureRateTally(Material *material, char *tally_name=(char *)"")
MaterialCaptureRateTally constructor calls the IsotopeTally constructor and Tally constructors and se...
Definition: Tally.h:1017
void tally(neutron *neutron, double weight)
This method tallies a particular weight for a neutron.
Definition: Tally.cpp:921
void tally(neutron *neutron)
Tally the material absorption rate by incrementing the tally by at the neutron's energy...
Definition: Tally.cpp:3370
double * getBinEdges()
Returns a double array of bin edge values.
Definition: Tally.cpp:102
double * getBatchStdDev()
Returns a pointer to an array of tally batch standard deviations if they have been computed...
Definition: Tally.cpp:308
GeometryLeakageRateTally(Geometry *geometry, char *tally_name=(char *)"")
GeometryLeakageRateTally constructor calls the GeometryTally constructor and Tally constructors and s...
Definition: Tally.h:1435
DerivedTally * subtractIntegers(const int *amt, const int length)
Tally subtraction with an array of integers.
Definition: Tally.cpp:2487
MaterialGroupRateTally(Material *material, char *tally_name=(char *)"")
MaterialGroupRateTally constructor calls the MaterialTally constructor and Tally constructors and set...
Definition: Tally.h:722
RegionTally(Region *region, char *tally_name=(char *)"")
RegionTally constructor calls the Tally constructor and sets the tally domain to REGION.
Definition: Tally.h:428
A class for tallying the capture rate for an isotope.
Definition: Tally.h:984
MaterialAbsorptionRateTally(Material *material, char *tally_name=(char *)"")
MaterialAbsorptionRateTally constructor calls the MaterialTally constructor and Tally constructors an...
Definition: Tally.h:918
void tally(neutron *neutron)
Tally the region collision rate by incrementing the tally by 1.0 at the neutron's energy...
Definition: Tally.cpp:3164
double getMaxRelErr()
Returns the maximum tally relative error.
Definition: Tally.cpp:372
A class for tallying the elastic scattering rate within a region.
Definition: Tally.h:638
MaterialTransportRateTally(Material *material, char *tally_name=(char *)"")
MaterialTransportRateTally constructor calls the MaterialTally constructor and Tally constructors and...
Definition: Tally.h:1214
bool hasComputedBatchStatistics()
Returns whether or not the tally has computed batch statistics.
Definition: Tally.cpp:428
Isotope * getIsotope()
Returns the isotope for this tally.
Definition: Tally.h:366
tallyDomainType _tally_domain
Definition: Tally.h:192
DerivedTally * addFloats(const float *amt, const int length)
Tally addition with an array of floats.
Definition: Tally.cpp:2391
double * getBatchRelativeError()
Returns a pointer to an array of tally batch relative errors if they have been computed.
Definition: Tally.cpp:323
The Material class represents a collection of isotope objects.
Definition: Material.h:37
void tally(neutron *neutron)
Tally the isotope transport rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3525
GeometryCollisionRateTally(Geometry *geometry, char *tally_name=(char *)"")
GeometryCollisionRateTally constructor calls the GeometryTally constructor and Tally constructors and...
Definition: Tally.h:571
DerivedTally * divideFloats(const float *amt, const int length)
Tally division with an array of floats.
Definition: Tally.cpp:2861
DerivedTally * multiplyDoubles(const double *amt, const int length)
Tally multiplication with an array of doubles.
Definition: Tally.cpp:2744
double ** getTallies()
Returns a double array of the tallies within each bin.
Definition: Tally.cpp:187
virtual void tally(neutron *neutron)=0
A method to tally a neutron to be implemented by subclasses.
A class for tallying the fission rate for an isotope.
Definition: Tally.h:1083
A class for tallying the out scattering rate within a material.
Definition: Tally.h:810
void setTallyType(tallyType type)
Set the tally type (FLUX, CAPTURE_RATE, etc.).
Definition: Tally.cpp:699
A class for tallying the capture rate for an isotope.
Definition: Tally.h:1349
void setComputedBatchStatistics(bool computed)
Assigns whether or not the tally has computed batch statistics.
Definition: Tally.cpp:3851
A class for tallying the absorption within the geometry.
Definition: Tally.h:955
Geometry * getGeometry()
Returns the geometry in which this tally resides.
Definition: Tally.h:474
Material * getMaterial()
Returns the material in which this tally resides.
Definition: Tally.h:402
A class for tallying the capture rate within a region.
Definition: Tally.h:1031
RegionElasticRateTally(Region *region, char *tally_name=(char *)"")
RegionElasticRateTally constructor calls the RegionTally constructor and Tally constructors and sets ...
Definition: Tally.h:648
void tally(neutron *neutron)
Tally the material capture rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3426
void log_printf(logLevel level, const char *format,...)
Print a formatted message to the console.
Definition: log.cpp:255
DerivedTally * addDoubles(const double *amt, const int length)
Tally addition with an array of doubles.
Definition: Tally.cpp:2439
A class for tallying the diffusion rate for an isotope.
Definition: Tally.h:1279
GeometryOutScatterRateTally(Geometry *geometry, char *tally_name=(char *)"")
GeometryOutScatterRateTally constructor calls the GeometryTally constructor and Tally constructors an...
Definition: Tally.h:867
IsotopeCollisionRateTally(Isotope *isotope, char *tally_name=(char *)"")
IsotopeCollisionRateTally constructor calls the IsotopeTally constructor and Tally constructors and s...
Definition: Tally.h:499
IsotopeDiffusionRateTally(Isotope *isotope, char *tally_name=(char *)"")
IsotopeDiffusionRateTally constructor calls the IsotopeTally constructor and Tally constructors and s...
Definition: Tally.h:1289
int _num_bins
Definition: Tally.h:178
double * _batch_mu
Definition: Tally.h:203
An abstract class for tallies with ISOTOPE domain type.
Definition: Tally.h:342
double getTally(int bin_index, int batch_num)
Returns a specific tally for a specific bin and batch.
Definition: Tally.cpp:202
virtual void tally(neutron *neutron)=0
A method to tally a neutron to be implemented by subclasses.
int getBinIndex(double sample)
Finds the bin index for a sample in a set of bins. If the samples is outside the bounds of all bins...
Definition: Tally.h:1635
void tally(neutron *neutron)
A DERIVED tally cannot tally anything, and will throw an exception.
Definition: Tally.cpp:3784
virtual void tally(neutron *neutron)=0
A method to tally a neutron to be implemented by subclasses.
double getMaxTally()
Returns the maximum tally value among all bins and batches.
Definition: Tally.cpp:221
int getNumBins()
Returns the number of tally bins.
Definition: Tally.cpp:85
int getNumBatches()
Returns the number of batches for this tally.
Definition: Tally.cpp:268
MaterialElasticRateTally(Material *material, char *tally_name=(char *)"")
MaterialCollisionRateTally constructor calls the MaterialTally constructor and Tally constructors and...
Definition: Tally.h:624
void tally(neutron *neutron)
Tally the geometry outter scattering rate by incrementing the tally by at the neutron's energy...
Definition: Tally.cpp:3340
IsotopeFissionRateTally(Isotope *isotope, char *tally_name=(char *)"")
IsotopeFissionRateTally constructor calls the IsotopeTally constructor and Tally constructors and set...
Definition: Tally.h:1093
void tally(neutron *neutron)
Tally the region transport rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3552
void tally(neutron *neutron)
Tally the isotope capture rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3412
enum triggerTypes triggerType
The type of precision trigger for a tally object.
void tally(neutron *neutron)
Tally the geometry fission rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3508
GeometryFluxTally(Geometry *geometry, char *tally_name=(char *)"")
GeometryFluxTally constructor calls the GeometryTally constructor and Tally constructors and sets the...
Definition: Tally.h:1509
void tally(neutron *neutron)
Tally the material collision rate by incrementing the tally by 1.0 at the neutron's energy...
Definition: Tally.cpp:3153
char * getTallyName()
Returns the name of the tally.
Definition: Tally.cpp:76
IsotopeTransportRateTally(Isotope *isotope, char *tally_name=(char *)"")
IsotopeTransportRateTally constructor calls the IsotopeTally constructor and Tally constructors and s...
Definition: Tally.h:1191
A class for tallying the collision rate within the geometry.
Definition: Tally.h:561
void tally(neutron *neutron)
Tally the geometry collision rate by incrementing the tally by 1.0 at the neutron's energy...
Definition: Tally.cpp:3175
DerivedTally * subtractDoubles(const double *amt, const int length)
Tally subtraction with an array of doubles.
Definition: Tally.cpp:2581
void tally(neutron *neutron)
Tally the geometry group-to-group scattering rate by incrementing the tally by at the neutron's ener...
Definition: Tally.cpp:3285
Region * getRegion()
Returns the region in which this tally resides.
Definition: Tally.h:438
An abstract class for tallies with REGION domain type.
Definition: Tally.h:416
DerivedTally * multiplyIntegers(const int *amt, const int length)
Tally multiplication with an array of integers.
Definition: Tally.cpp:2628
IsotopeOutScatterRateTally(Isotope *isotope, char *tally_name=(char *)"")
IsotopeOutScatterRateTally constructor calls the IsotopeTally constructor and Tally constructors and ...
Definition: Tally.h:798
void setBinEdges(double *edges, int num_edges)
Set a user-defined double array of bin edge values.
Definition: Tally.cpp:721
A class for tallying the elastic scattering rate for an isotope.
Definition: Tally.h:591
void tally(neutron *neutron)
Tally the isotope outter scattering rate by incrementing the tally by at the neutron's energy...
Definition: Tally.cpp:3300
RegionFluxTally(Region *region, char *tally_name=(char *)"")
RegionFluxTally constructor calls the RegionTally constructor and Tally constructors and sets the tal...
Definition: Tally.h:1486
A class for tallying the collision rate within a region.
Definition: Tally.h:537
void tally(neutron *neutron)
Tally the geometry capture rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3452
bool hasExpandedGroupBins()
Returns whether or not the tally has expanded it's group bins.
Definition: Tally.cpp:439
tallyDomainType getTallyDomainType()
Returns the type of tally for these bins (ISOTOPE, MATERIAL, REGION).
Definition: Tally.cpp:169
IsotopeElasticRateTally(Isotope *isotope, char *tally_name=(char *)"")
IsotopeElasticRateTally constructor calls the IsotopeTally constructor and Tally constructors and set...
Definition: Tally.h:601
void tally(neutron *neutron)
Tally the isotope elastic scattering rate by incrementing the tally by at the neutron's energy...
Definition: Tally.cpp:3190
void incrementNumBatches(int num_batches)
Increments the number of batches for this tally.
Definition: Tally.cpp:822
double getBinDelta()
Returns the delta spacing between bins. NOTE: this value is only non-zero for EQUAL and LOGARITHMIC b...
Definition: Tally.cpp:129
double getMinTally()
Returns the maximum tally value among all bins and batches.
Definition: Tally.cpp:245
An abstract class for tallies with MATERIAL domain type.
Definition: Tally.h:452
Utility functions for writing log messages to the screen.
A class for tallying the transport rate within a region.
Definition: Tally.h:1228
void setGroupExpandBins(bool expand_bins)
Informs the tally whether or not to expand its group bins.
Definition: Tally.cpp:747
RegionFissionRateTally(Region *region, char *tally_name=(char *)"")
RegionFissionRateTally constructor calls the RegionTally constructor and Tally constructors and sets ...
Definition: Tally.h:1140
A class for tallying the capture rate for an isotope.
Definition: Tally.h:1153
A class for tallying the collision rate for an isotope.
Definition: Tally.h:489
tallyType _tally_type
Definition: Tally.h:194
enum tallyDomainTypes tallyDomainType
A domain type within which a tally may reside.
DerivedTally * operator-(Tally *tally)
Tally subtraction operator.
Definition: Tally.cpp:1552
tallyDomainTypes
The types of domains in which tally may reside.
Definition: Tally.h:45
DerivedTally * divideDoubles(const double *amt, const int length)
Tally division with an array of doubles.
Definition: Tally.cpp:2920
void setBinSpacingType(binSpacingType type)
Set the bin spacing type for this Tally (EQUAL, LOGARITHMIC, OTHER).
Definition: Tally.cpp:681
A class for tallying the capture rate within a material.
Definition: Tally.h:1106
void tally(neutron *neutron)
Tally the isotope collision rate by incrementing the tally by 1.0 at the neutron's energy...
Definition: Tally.cpp:3139
void tally(neutron *neutron)
Tally the material diffusion rate by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3596
void generateBinEdges(double start, double end, int num_bins, binSpacingType type)
Generate edges between bins defined by a start and end point.
Definition: Tally.cpp:852
DerivedTally * tile(const int num_tiles)
Create a DerivedTally with this tally's data repetively "tiled".
Definition: Tally.cpp:1906
void setTallyName(char *tally_name)
Sets the tally name.
Definition: Tally.cpp:3794
void generateBinCenters()
Compute the center points between bin edges for this Tally's bins.
Definition: Tally.cpp:897
void tally(neutron *neutron)
Tally the geomety flux by incrementing the tally by at the neutron's energy.
Definition: Tally.cpp:3711
RegionLeakageRateTally(Region *region, char *tally_name=(char *)"")
RegionLeakageRateTally constructor calls the RegionTally constructor and Tally constructors and sets ...
Definition: Tally.h:1412
IsotopeAbsorptionRateTally(Isotope *isotope, char *tally_name=(char *)"")
IsotopeAbsorptionRateTally constructor calls the IsotopeTally constructor and Tally constructors and ...
Definition: Tally.h:894
GeometryCaptureRateTally(Geometry *geometry, char *tally_name=(char *)"")
GeometryCaptureRateTally constructor calls the GeometryTally constructor and Tally constructors and s...
Definition: Tally.h:1064
void tally(neutron *neutron)
Tally the isotope group-to-group scattering rate by incrementing the tally by at the neutron's energ...
Definition: Tally.cpp:3245
A class for tallying the group-to-group scattering rate within a material.
Definition: Tally.h:712
bool _group_expand_bins
Definition: Tally.h:213
void tally(neutron *neutron)
Tally the material elastic scattering rate by incrementing the tally by at the neutron's energy...
Definition: Tally.cpp:3204