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.
mesh_converter.h
Go to the documentation of this file.
1 // _____ _____ _ __ __ _ _ _ _
2 // / ____|/ ____| | \ \ / / /\ | (_) | | (_)
3 // | | | (___ | |__ __ _ _ __ _ _\ \ /\ / / __ __ _ _ __ _ __ ___ _ __ / \ _ __ _ __ | |_ ___ __ _| |_ _ ___ _ __
4 // | | \___ \| '_ \ / _` | '__| '_ \ \/ \/ / '__/ _` | '_ \| '_ \ / _ \ '__/ /\ \ | '_ \| '_ \| | |/ __/ _` | __| |/ _ \| '_ |
5 // | |____ ____) | | | | (_| | | | |_) \ /\ /| | | (_| | |_) | |_) | __/ | / ____ \| |_) | |_) | | | (_| (_| | |_| | (_) | | | |
6 // \_____|_____/|_| |_|\__,_|_| | .__/ \/ \/ |_| \__,_| .__/| .__/ \___|_|/_/ \_\ .__/| .__/|_|_|\___\__,_|\__|_|\___/|_| |_|
7 // | | | | | | | | | |
8 // |_| |_| |_| |_| |_|
9 //
10 //
11 // License: BSD License
12 // license: CSharpWrapperApplication/license.txt
13 //
14 // Main authors: Hubert Balcerzak
15 // Riccardo Rossi
16 //
17 
18 #if !defined(CSHARP_WRAPPER_APPLICATION_MESH_CONVERTER_H_INCLUDED )
19 #define CSHARP_WRAPPER_APPLICATION_MESH_CONVERTER_H_INCLUDED
20 
21 // System includes
22 #include <vector>
23 
24 // External includes
25 
26 // Project includes
27 #include "includes/model_part.h"
28 
29 namespace CSharpKratosWrapper {
30 
31  struct face {
32  int nodes[4];
33  };
34 
35  class MeshConverter {
36  public:
41  void ProcessMesh(std::vector<Kratos::intrusive_ptr<Kratos::Element>> &elements);
42 
47  std::vector<face> &GetFaces();
48 
53  std::vector<int> &GetNodes();
54 
55  private:
56  std::vector<face> mFaces;
57  std::vector<int> mNodes;
58 
59  };
60 }
61 
62 #endif /* CSHARP_WRAPPER_APPLICATION_MESH_CONVERTER_H_INCLUDED */
Definition: mesh_converter.h:35
std::vector< face > & GetFaces()
Definition: mesh_converter.cpp:210
void ProcessMesh(std::vector< Kratos::intrusive_ptr< Kratos::Element >> &elements)
Definition: mesh_converter.cpp:198
std::vector< int > & GetNodes()
Definition: mesh_converter.cpp:214
Definition: id_translator.h:28
Definition: mesh_converter.h:31
int nodes[4]
Definition: mesh_converter.h:32