|
| VectorAverageSampler (std::function< VectorType(const Geometry< Node > &, const Vector &, const Matrix &)> Getter, std::size_t VectorSize, std::vector< std::string > &Tags) |
| Initialize a sampler for a vector average quantity. More...
|
|
| ~VectorAverageSampler () override |
|
void | SampleDataPoint (const Geometry< Node > &rGeometry, const Vector &rShapeFunctions, const Matrix &rShapeDerivatives, std::vector< double >::iterator &BufferIterator) override |
| For first-order statistics: read data directly. More...
|
|
void | OutputHeader (std::ofstream &rOutStream, const std::string &rSeparator) const override |
| Write header for the output file. More...
|
|
| KRATOS_CLASS_POINTER_DEFINITION (StatisticsSampler) |
|
| StatisticsSampler (std::size_t NumValues) |
| Define a new StatisticsSampler instance. More...
|
|
virtual | ~StatisticsSampler () |
| Destructor. More...
|
|
virtual void | SampleDataPoint (std::vector< double >::iterator &BufferIterator, const StatisticsSampler::IntegrationPointDataView &rCurrentStatistics, const std::vector< double > &rNewMeasurement, const std::size_t NumberOfMeasurements) |
| For higher-order statistics: operate on lower order data. More...
|
|
std::size_t | GetSize () const |
| Number of quantities managed by this statistic. More...
|
|
virtual std::size_t | GetComponentOffset (std::size_t i) const |
| Offset (from the start of the space allocated to this statistic) for the storage of component i. More...
|
|
virtual std::size_t | ComponentIndex (std::size_t i, std::size_t j) const |
| Helper returning the correct argument in calls to GetComponentOffset for matrix quantities. More...
|
|
std::size_t | GetOffset () const |
| Offset (from the start of the statistics container) to the first component stored by this statistic. More...
|
|
void | SetOffset (std::size_t Offset) |
| Assign a new offset (from the start of the statistics container) to the first component stored by this statistic. More...
|
|
virtual void | OutputResult (std::ofstream &rOutStream, IntegrationPointDataViewIterator &rDataBuffer, std::size_t SampleSize, const std::string &rSeparator) const |
| Write results managed by this class to output buffer. More...
|
|
virtual double | Finalize (double Value, std::size_t SampleSize) const |
| Post-process internal data to produce the final value of the statistical result. More...
|
|
std::string | GetTag (std::size_t ComponentIndex) const |
| Get the string associated one of the components of this statistic. More...
|
|
template<class VectorType>
class Kratos::VectorAverageSampler< VectorType >
This class manages the computation of the average of a vector quantity.