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.
find_global_nodal_neighbours_process.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: Riccardo Rossi
11 // Suneth Warnakulasuriya
12 //
13 
14 #if !defined(KRATOS_FIND_GLOBAL_NODAL_NEIGHBOURS_PROCESS_H_INCLUDED)
15 #define KRATOS_FIND_GLOBAL_NODAL_NEIGHBOURS_PROCESS_H_INCLUDED
16 
17 // System includes
18 #include <iostream>
19 #include <string>
20 
21 // External includes
22 
23 // Project includes
24 #include "includes/define.h"
26 #include "includes/model_part.h"
29 
30 namespace Kratos
31 {
34 
36 
39  : public FindNodalNeighboursForEntitiesProcess<ModelPart::ElementsContainerType>
40 {
41 public:
44 
47 
49 
53 
57  : BaseType(rModelPart, NEIGHBOUR_NODES)
58  {
59  }
60 
65  "Use of avg_nodes is deprecated. Please use constructor without it.")
67  const DataCommunicator& rDataCommunicator,
69  unsigned int avg_nodes)
71  {
72  }
73 
74  KRATOS_DEPRECATED_MESSAGE("Use of DataCommunicator is deprecated. Please use constructor without it.")
76  const DataCommunicator& rDataCommunicator,
79  {
80  }
81 
83  ~FindGlobalNodalNeighboursProcess() override = default;
84 
87  FindGlobalNodalNeighboursProcess const& rOther) = delete;
88 
92 
94  std::string Info() const override
95  {
96  return "FindGlobalNodalNeighboursProcess";
97  }
98 
100  void PrintInfo(std::ostream& rOStream) const override
101  {
102  rOStream << "FindGlobalNodalNeighboursProcess";
103  }
104 
106  void PrintData(std::ostream& rOStream) const override
107  {
108  }
109 
111 
112 }; // Class FindGlobalNodalNeighboursProcess
113 
115 
118 
120 inline std::istream& operator>>(
121  std::istream& rIStream,
123 
125 inline std::ostream& operator<<(
126  std::ostream& rOStream,
128 {
129  rThis.PrintInfo(rOStream);
130  rOStream << std::endl;
131  rThis.PrintData(rOStream);
132 
133  return rOStream;
134 }
136 
137 } // namespace Kratos.
138 
139 #endif // KRATOS_FIND_GLOBAL_NODAL_NEIGHBOURS_PROCESS_H_INCLUDED defined
Serial (do-nothing) version of a wrapper class for MPI communication.
Definition: data_communicator.h:318
Short class definition.
Definition: find_global_nodal_neighbours_process.h:40
ModelPart unsigned int avg_nodes
Definition: find_global_nodal_neighbours_process.h:76
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: find_global_nodal_neighbours_process.h:100
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: find_global_nodal_neighbours_process.h:106
FindGlobalNodalNeighboursProcess & operator=(FindGlobalNodalNeighboursProcess const &rOther)=delete
Assignment operator.
KRATOS_CLASS_POINTER_DEFINITION(FindGlobalNodalNeighboursProcess)
Pointer definition of FindGlobalNodalNeighboursProcess.
KRATOS_DEPRECATED_MESSAGE("Use of avg_nodes is deprecated. Please use constructor without it.") FindGlobalNodalNeighboursProcess(const DataCommunicator &rDataCommunicator
FindGlobalNodalNeighboursProcess(ModelPart &rModelPart)
Default constructor.
Definition: find_global_nodal_neighbours_process.h:55
ModelPart & rModelPart
Definition: find_global_nodal_neighbours_process.h:68
std::string Info() const override
Turn back information as a string.
Definition: find_global_nodal_neighbours_process.h:94
Short class definition.
Definition: find_global_nodal_neighbours_for_entities_process.h:41
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
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
tuple const
Definition: ode_solve.py:403