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.
Classes | Functions
mesh_converter.cpp File Reference
#include <vector>
#include <algorithm>
#include <iostream>
#include "custom_includes/mesh_converter.h"
#include "containers/array_1d.h"
#include "custom_includes/vector3.h"
Include dependency graph for mesh_converter.cpp:

Classes

struct  element
 
struct  node
 

Functions

void convert (std::vector< element > &elements, std::vector< node > &nodes, std::vector< Kratos::intrusive_ptr< Kratos::Element >> &kratosElements)
 
bool checkContains (element &e, int(&face)[4])
 
void fixFace (face &face, Kratos::intrusive_ptr< Kratos::Element > kratosElement)
 
void process (std::vector< element > &elements, std::vector< node > &nodes, std::vector< face > &result)
 
int findMaxNode (std::vector< element > &elements)
 
void extractNodes (std::vector< face > &faces, std::vector< int > &nodes, int maxNode)
 
int findNode (int toFind, std::vector< int > &nodes)
 
void translateFaces (std::vector< face > &faces, std::vector< int > &nodes)
 

Function Documentation

◆ checkContains()

bool checkContains ( element e,
int(&)  face[4] 
)

◆ convert()

void convert ( std::vector< element > &  elements,
std::vector< node > &  nodes,
std::vector< Kratos::intrusive_ptr< Kratos::Element >> &  kratosElements 
)

◆ extractNodes()

void extractNodes ( std::vector< face > &  faces,
std::vector< int > &  nodes,
int  maxNode 
)

◆ findMaxNode()

int findMaxNode ( std::vector< element > &  elements)

◆ findNode()

int findNode ( int  toFind,
std::vector< int > &  nodes 
)

◆ fixFace()

void fixFace ( face face,
Kratos::intrusive_ptr< Kratos::Element kratosElement 
)

◆ process()

void process ( std::vector< element > &  elements,
std::vector< node > &  nodes,
std::vector< face > &  result 
)

◆ translateFaces()

void translateFaces ( std::vector< face > &  faces,
std::vector< int > &  nodes 
)