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.
mpi_utilities.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: Manuel Meßmer
11 //
12 
13 #ifndef KRATOS_MPM_MPI_UTILITIES_INCLUDE_H
14 #define KRATOS_MPM_MPI_UTILITIES_INCLUDE_H
15 
16 // system includes
17 
18 // external includes
19 
20 // kratos includes
21 #include "includes/model_part.h"
22 
23 namespace Kratos {
24 
27 
30 
36 class KRATOS_API(PARTICLE_MECHANICS_APPLICATION) MPM_MPI_Utilities
37 {
38 public:
41 
44 
47 
51 
57  static void TransferElements(ModelPart& rModelPart,
58  std::vector<ElementsContainerType>& rSendElements);
59 
65  static void TransferConditions(ModelPart& rModelPart,
66  std::vector<ConditionsContainerType>& rSendCondition);
68 
69 }; // end class MPM_MPI_Utilities
72 } // end namespace Kratos
73 
74 #endif // end KRATOS_MPM_MPI_UTILITIES_INCLUDE_H
Provides place to add mpi related utility functions.
Definition: mpi_utilities.h:37
ModelPart::ElementsContainerType ElementsContainerType
Definition: mpi_utilities.h:45
ModelPart::ConditionsContainerType ConditionsContainerType
Definition: mpi_utilities.h:46
KRATOS_CLASS_POINTER_DEFINITION(MPM_MPI_Utilities)
Pointer definition of MPM_MPI_Utilities.
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
MeshType::ConditionsContainerType ConditionsContainerType
Condintions container. A vector set of Conditions with their Id's as key.
Definition: model_part.h:183
MeshType::ElementsContainerType ElementsContainerType
Element container. A vector set of Elements with their Id's as key.
Definition: model_part.h:168
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21