Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
DLR-AMR
GitHub Repository: DLR-AMR/t8code
Path: blob/main/src/t8_element.h
898 views
1
/*
2
This file is part of t8code.
3
t8code is a C library to manage a collection (a forest) of multiple
4
connected adaptive space-trees of general element classes in parallel.
5
6
Copyright (C) 2015 the developers
7
8
t8code is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 2 of the License, or
11
(at your option) any later version.
12
13
t8code is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with t8code; if not, write to the Free Software Foundation, Inc.,
20
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
*/
22
23
/** \file t8_element.h
24
* This file defines the opaque element structure and provides some
25
* constants for element classes.
26
*/
27
28
#ifndef T8_ELEMENT_H
29
#define T8_ELEMENT_H
30
31
#include <t8.h>
32
#include <t8_eclass.h>
33
#include <t8_element_shape.h>
34
35
/** We want to export the whole implementation to be callable from "C". */
36
T8_EXTERN_C_BEGIN ();
37
38
/** Opaque structure for a generic element, only used as pointer.
39
* Implementations are free to cast it to their internal data structure.
40
*/
41
typedef struct t8_element t8_element_t;
42
43
/** This array holds the reference coordinates of each vertex of each element.
44
* It can e.g. be used with the \ref t8_scheme::element_get_reference_coords function.
45
* Usage: t8_element_corner_ref_coords[eclass][vertex][dimension]
46
*/
47
extern const double t8_element_corner_ref_coords[T8_ECLASS_COUNT][T8_ECLASS_MAX_CORNERS][3];
48
49
/** This array holds the reference coordinates of the centroid of each element.
50
* It can e.g. be used with the \ref t8_scheme::element_get_reference_coords function.
51
* Usage: t8_element_centroid_ref_coords[eclass][dimension]
52
*/
53
extern const double t8_element_centroid_ref_coords[T8_ECLASS_COUNT][3];
54
55
/** End of code that is callable from "C".*/
56
T8_EXTERN_C_END ();
57
58
#endif /* !T8_ELEMENT_H */
59
60