KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
statistics_application.h
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ `
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // Kratos default license: kratos/license.txt
9 //
10 // Main authors: Suneth Warnakulasuriya (https://github.com/sunethwarna)
11 //
12 
13 #if !defined(KRATOS_STATISTICS_APPLICATION_H_INCLUDED)
14 #define KRATOS_STATISTICS_APPLICATION_H_INCLUDED
15 
16 // System includes
17 
18 // External includes
19 
20 // Project includes
22 
23 namespace Kratos
24 {
27 
31 
35 
39 
43 
45 
47 class KRATOS_API(STATISTICS_APPLICATION) KratosStatisticsApplication : public KratosApplication
48 {
49 public:
52 
55 
59 
62 
65  {
66  }
67 
71 
75 
76  void Register() override;
77 
81 
85 
89 
91  std::string Info() const override
92  {
93  return "KratosStatisticsApplication";
94  }
95 
97  void PrintInfo(std::ostream& rOStream) const override
98  {
99  rOStream << Info();
100  PrintData(rOStream);
101  }
102 
104  void PrintData(std::ostream& rOStream) const override
105  {
106  KRATOS_WATCH("in my application");
108 
109  rOStream << "Variables:" << std::endl;
111  rOStream << std::endl;
112  rOStream << "Elements:" << std::endl;
113  KratosComponents<Element>().PrintData(rOStream);
114  rOStream << std::endl;
115  rOStream << "Conditions:" << std::endl;
116  KratosComponents<Condition>().PrintData(rOStream);
117  }
118 
122 
124 
125 protected:
128 
132 
136 
140 
144 
148 
152 
154 
155 private:
158 
159  // static const ApplicationCondition msApplicationCondition;
160 
164 
165  // const Elem2D mElem2D;
166  // const Elem3D mElem3D;
167 
171 
175 
179 
183 
187 
190 
193 
195 
196 }; // Class KratosStatisticsApplication
197 
199 
202 
206 
208 
209 } // namespace Kratos.
210 
211 #endif // KRATOS_STATISTICS_APPLICATION_H_INCLUDED defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
This class defines the interface with kernel for all applications in Kratos.
Definition: kratos_application.h:91
Definition: kratos_components.h:253
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: kratos_components.h:403
KratosComponents class encapsulates a lookup table for a family of classes in a generic way.
Definition: kratos_components.h:49
Short class definition.
Definition: statistics_application.h:48
KRATOS_CLASS_POINTER_DEFINITION(KratosStatisticsApplication)
Pointer definition of KratosStatisticsApplication.
~KratosStatisticsApplication() override
Destructor.
Definition: statistics_application.h:64
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: statistics_application.h:97
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: statistics_application.h:104
std::string Info() const override
Turn back information as a string.
Definition: statistics_application.h:91
#define KRATOS_WATCH(variable)
Definition: define.h:806
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
KRATOS_API_EXTERN template class KratosComponents< Condition >
Definition: condition.h:1191
KRATOS_API_EXTERN template class KratosComponents< Element >
Definition: element.h:1240