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.
cluster_information.h
Go to the documentation of this file.
1 //
2 // File: cluster_information.h
3 // Author: Miguel Angel Celigueta maceli@cimne.upc.edu
4 //
5 
6 
7 #if !defined(CLUSTER_INFORMATION_H)
8 #define CLUSTER_INFORMATION_H
9 
10 namespace Kratos
11 {
12 
14 {
15 
16 public:
18  std::string mName;
19  double mSize;
20  double mVolume;
21  std::vector<double> mListOfRadii;
22  std::vector<array_1d<double,3> > mListOfCoordinates;
24 
25  virtual ~ClusterInformation() {};
26 
27  virtual void PrintInfo(std::ostream& rOStream) const {
28  rOStream << Info();
29  }
30 
32  virtual void PrintData(std::ostream& rOStream) const {
33  //rOStream << std::endl << this->mSize <<" " << this->mVolume << std::endl;
34  }
35 
36  virtual std::string Info() const {
37  std::stringstream buffer;
38  buffer << mName;
39  return buffer.str();
40  }
41 
42  friend class Serializer;
43 
44  void save(Serializer& rSerializer) const
45  {
46  //TODO:
47  }
48 
49  void load(Serializer& rSerializer)
50  {
51  //TODO:
52  }
53 
54 };
55 
56 inline std::istream& operator >> (std::istream& rIStream, ClusterInformation& rThis);
57 
58 inline std::ostream& operator << (std::ostream& rOStream, const ClusterInformation& rThis)
59 {
60  rThis.PrintInfo(rOStream);
61  rOStream << " : ";
62  rThis.PrintData(rOStream);
63 
64  return rOStream;
65 }
66 
67 } // namespace Kratos.
68 
69 #endif // CLUSTER_INFORMATION_H defined
70 
Definition: cluster_information.h:14
double mVolume
Definition: cluster_information.h:20
virtual std::string Info() const
Definition: cluster_information.h:36
virtual ~ClusterInformation()
Definition: cluster_information.h:25
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: cluster_information.h:32
void save(Serializer &rSerializer) const
Definition: cluster_information.h:44
virtual void PrintInfo(std::ostream &rOStream) const
Definition: cluster_information.h:27
ClusterInformation()
Definition: cluster_information.h:17
void load(Serializer &rSerializer)
Definition: cluster_information.h:49
double mSize
Definition: cluster_information.h:19
std::vector< double > mListOfRadii
Definition: cluster_information.h:21
array_1d< double, 3 > mInertias
Definition: cluster_information.h:23
std::string mName
Definition: cluster_information.h:17
std::vector< array_1d< double, 3 > > mListOfCoordinates
Definition: cluster_information.h:22
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
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