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.
|
Functions | |
void | CreateTriangleMeshFromNodes (ModelPart &rModelPart) |
This method creates a triangle mesh from a model part of nodes. More... | |
std::vector< std::size_t > | ComputeTrianglesConnectivity (const std::vector< double > &rCoordinates) |
This method returns the triangles connectivity from a list of coordinates (using triangle library) More... | |
std::vector< std::size_t > | ComputeTrianglesConnectivity (const std::vector< Point > &rPoints) |
This method returns the triangles connectivity from a list of coordinates (using triangle library) More... | |
std::pair< std::vector< std::size_t >, std::vector< double > > | ComputeTrianglesConnectivity (const std::vector< double > &rCoordinates, const std::vector< std::array< double, 2 >> &rSegments, const double AreaConstraint=0) |
This methods does a Constrained Delaunay Triangularization from a list of coordinates and segments (using triangle library) More... | |
std::vector< std::size_t > Kratos::DelaunatorUtilities::ComputeTrianglesConnectivity | ( | const std::vector< double > & | rCoordinates | ) |
This method returns the triangles connectivity from a list of coordinates (using triangle library)
rCoordinates | The list of coordinates, first X, then Y, for each point of the point cloud |
std::pair< std::vector< std::size_t >, std::vector< double > > Kratos::DelaunatorUtilities::ComputeTrianglesConnectivity | ( | const std::vector< double > & | rCoordinates, |
const std::vector< std::array< double, 2 >> & | rSegments, | ||
const double | AreaConstraint = 0 |
||
) |
This methods does a Constrained Delaunay Triangularization from a list of coordinates and segments (using triangle library)
rCoordinates | The list of coordinates, first X, then Y, for each point of the point cloud |
rSegments | The list of segments, each segment is determined in one std::array with from its i and j nodal ids |
AreaConstraint | If provided, imposes that value as a constraint on the maximum area |
std::vector< std::size_t > Kratos::DelaunatorUtilities::ComputeTrianglesConnectivity | ( | const std::vector< Point > & | rPoints | ) |
This method returns the triangles connectivity from a list of coordinates (using triangle library)
rPoints | The list of points |
void Kratos::DelaunatorUtilities::CreateTriangleMeshFromNodes | ( | ModelPart & | rModelPart | ) |
This method creates a triangle mesh from a model part of nodes.
rModelPart | The model of the problem to mesh |