Advanced Multi-Physics (AMP)
On-Line Documentation
DelaunayTessellation.h
Go to the documentation of this file.
1#ifndef included_AMP_DelaunayTessellation
2#define included_AMP_DelaunayTessellation
3
4#include <array>
5#include <stdint.h>
6#include <stdlib.h>
7#include <tuple>
8#include <vector>
9
10#include "AMP/utils/Array.h"
11
12
14
15
17
23template<class TYPE>
24bool collinear( const Array<TYPE> &x );
25
26
28
39template<class TYPE>
40std::tuple<AMP::Array<int>, AMP::Array<int>> create_tessellation( const Array<TYPE> &x );
41
42
44
53double calc_volume( int ndim, const double x[] );
54
55
57
70template<int NDIM, class TYPE>
71int test_in_circumsphere( const std::array<TYPE, NDIM> x[],
72 const std::array<TYPE, NDIM> &xi,
73 double TOL_VOL );
74
75
77
83template<int NDIM, class TYPE>
84void get_circumsphere( const std::array<TYPE, NDIM> x0[], double &R, double *center );
85
86
88
95void compute_Barycentric( const int ndim, const double *x, const double *xi, double *L );
96
97
98} // namespace AMP::DelaunayTessellation
99
100#endif
double calc_volume(int ndim, const double x[])
Function to calculate the volume of a simplex.
void compute_Barycentric(const int ndim, const double *x, const double *xi, double *L)
Subroutine to compute the Barycentric coordinates.
std::tuple< AMP::Array< int >, AMP::Array< int > > create_tessellation(const Array< TYPE > &x)
Function that creates the Delaunay Tessellation.
void get_circumsphere(const std::array< TYPE, NDIM > x0[], double &R, double *center)
Function to return the circumsphere containing a simplex.
bool collinear(const Array< TYPE > &x)
Check if.
int test_in_circumsphere(const std::array< TYPE, NDIM > x[], const std::array< TYPE, NDIM > &xi, double TOL_VOL)
Function to check if a point is inside the circumsphere of a simplex.



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page