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.
meshing_flags.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: Miguel Maso
11 //
12 
13 #if !defined(KRATOS_MESHING_FLAGS_H_INCLUDED )
14 #define KRATOS_MESHING_FLAGS_H_INCLUDED
15 
16 // System includes
17 
18 // External includes
19 
20 // Project includes
21 #include "includes/define.h"
22 #include "containers/flags.h"
23 
24 
25 namespace Kratos
26 {
29 
32 
36 
40 
44 
48 
50 
53 {
54 public:
57 
60 
63  KRATOS_DEFINE_LOCAL_FLAG( TO_COARSEN );
64 
68 
71 
73  virtual ~MeshingFlags() {}
74 
78 
82 
86 
90 
94 
96  virtual std::string Info() const
97  {
98  return "MeshingFlags";
99  }
100 
102  virtual void PrintInfo(std::ostream& rOStream) const
103  {
104  rOStream << "MeshingFlags";
105  }
106 
108  virtual void PrintData(std::ostream& rOStream) const {}
109 
113 
115 
116 protected:
119 
123 
127 
131 
135 
139 
143 
145 
146 private:
149 
150 
154 
155 
159 
160 
164 
165 
169 
170 
174 
175 
179 
181  MeshingFlags& operator=(MeshingFlags const& rOther);
182 
183  // /// Copy constructor.
184  // MeshingFlags(MeshingFlags const& rOther){}
185 
187 
188 }; // class MeshingFlags
189 
191 
194 
198 
200 inline std::istream& operator >> (std::istream& rIStream,
201  MeshingFlags& rThis)
202 {
203  return rIStream;
204 }
205 
207 inline std::ostream& operator << (std::ostream& rOStream,
208  const MeshingFlags& rThis)
209 {
210  rThis.PrintInfo(rOStream);
211  rOStream << std::endl;
212  rThis.PrintData(rOStream);
213 
214  return rOStream;
215 }
217 
219 
220 } // namespace Kratos.
221 
222 #endif // KRATOS_MESHING_FLAGS_H_INCLUDED defined
Flags needed used in the MeshingApplication.
Definition: meshing_flags.h:53
KRATOS_DEFINE_LOCAL_FLAG(REFINED)
Local Flags.
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: meshing_flags.h:102
virtual std::string Info() const
Turn back information as a string.
Definition: meshing_flags.h:96
virtual ~MeshingFlags()
Destructor.
Definition: meshing_flags.h:73
MeshingFlags()
Default constructor.
Definition: meshing_flags.h:70
KRATOS_DEFINE_LOCAL_FLAG(TO_COARSEN)
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: meshing_flags.h:108
KRATOS_CLASS_POINTER_DEFINITION(MeshingFlags)
Pointer definition of MeshingFlags.
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