13 namespace sphericalaccretion {
14 class MassAccumulator;
Simple spherical mass accumulator.
int getBucket(double radius) const
Identifies the right bucket.
std::vector< double > _currentMass
Holds mass per shell.
std::vector< double > _previousMassAccumulated
Holds accumulated mass per shell.
double getMaxRelevantRadius() const
Return the biggest radius which contributes towards mass.
void finishAccumulation()
Finalise data accumulation for next time step.
double getMass_linearInterpolation(double radius) const
tarch::multicore::BooleanSemaphore _semaphore
double getMass_piecewiseConstantInterpolation(double radius) const
If you try to read the mass for a distance where we had no accumulation yet, then this routine return...
double getTotalMass() const
This routine returns the total mass.
double _maxDistanceThatMakesContribution
void addMass(double mass, double radius)
MassAccumulator(double shellWidth=0.01, double threshold=0.01)
static tarch::logging::Log _log
This file is part of the ExaHyPE 2 project within Peano 4.