13 #ifndef KRATOS_STATISTICS_RECORD_H_INCLUDED
14 #define KRATOS_STATISTICS_RECORD_H_INCLUDED
75 void AddResult(StatisticsSampler::Pointer pResult);
80 void AddHigherOrderStatistic(StatisticsSampler::Pointer pResult);
95 void SampleIntegrationPointResults(
ModelPart& rModelPart);
102 void UpdateStatistics(
Element* pElement);
109 void PrintToFile(
const ModelPart &rModelPart,
const std::string& rOutputFileName)
const;
120 virtual std::string
Info()
const
122 std::stringstream buffer;
123 buffer <<
"StatisticsRecord";
128 virtual void PrintInfo(std::ostream &rOStream)
const { rOStream <<
"StatisticsRecord"; }
140 std::vector< std::vector<double> > mUpdateBuffer;
146 std::size_t mDataBufferSize;
149 std::size_t mRecordedSteps;
172 StatisticsRecord &
operator=(StatisticsRecord
const &rOther) =
delete;
175 StatisticsRecord(StatisticsRecord
const &rOther) {}
198 rOStream << std::endl;
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Base class for all Elements.
Definition: element.h:60
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
MeshType::ElementsContainerType ElementsContainerType
Element container. A vector set of Elements with their Id's as key.
Definition: model_part.h:168
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Main class for online statistics calculation.
Definition: statistics_record.h:45
virtual std::string Info() const
Turn back information as a string.
Definition: statistics_record.h:120
KRATOS_CLASS_POINTER_DEFINITION(StatisticsRecord)
Pointer definition of StatisticsRecord.
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: statistics_record.h:131
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: statistics_record.h:128
virtual ~StatisticsRecord()
Destructor.
Definition: statistics_record.h:65
StatisticsRecord()
Default constructor.
Definition: statistics_record.h:58
Kratos::ModelPart ModelPart
Definition: kratos_wrapper.h:31
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def load(f)
Definition: ode_solve.py:307