OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ResultSinkScalarAccumalating.h
Go to the documentation of this file.
1#pragma once
4#include <vector>
5
7{
8public:
9 ResultSinkScalarAccumalating(int executionFrequency, int totalTimeSteps, double deltaT)
10 :ResultSink(executionFrequency, totalTimeSteps), _deltaT(deltaT) {};
11
12 void SetVolumeIterator(IGridIteratorVolume * volumeIter) override;
13 void ConsumeResultContainer(ResultContainer * container) override;
14
15 const double * GetResult() const { return _result.data(); };
16 const double * GetTimesteps() const { return _timeSteps.data(); };
17 const index_t GetResultContainerSize() const { return _result.size(); };
18
19 virtual void PerformPostProcessing() override;
20
21private:
22 double _deltaT;
23 std::vector<double> _timeSteps;
24 std::vector<double> _result;
25
26};
int64_t index_t
Definition SystemDependentDefines.h:13
Definition IGridIteratorVolume.h:7
Definition ResultContainer.h:5
Definition ResultSink.h:9
Definition ResultSinkScalarAccumalating.h:7
const index_t GetResultContainerSize() const
Definition ResultSinkScalarAccumalating.h:17
void ConsumeResultContainer(ResultContainer *container) override
Definition ResultSinkScalarAccumalating.cpp:3
ResultSinkScalarAccumalating(int executionFrequency, int totalTimeSteps, double deltaT)
Definition ResultSinkScalarAccumalating.h:9
const double * GetResult() const
Definition ResultSinkScalarAccumalating.h:15
virtual void PerformPostProcessing() override
Definition ResultSinkScalarAccumalating.cpp:22
void SetVolumeIterator(IGridIteratorVolume *volumeIter) override
Definition ResultSinkScalarAccumalating.cpp:26
const double * GetTimesteps() const
Definition ResultSinkScalarAccumalating.h:16