p4est  1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p8est_tets_hexes.h
1 /*
2  This file is part of p4est.
3  p4est is a C library to manage a collection (a forest) of multiple
4  connected adaptive quadtrees or octrees in parallel.
5 
6  Copyright (C) 2010 The University of Texas System
7  Written by Carsten Burstedde, Lucas C. Wilcox, and Tobin Isaac
8 
9  p4est is free software; you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or
12  (at your option) any later version.
13 
14  p4est is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with p4est; if not, write to the Free Software Foundation, Inc.,
21  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 */
23 
24 #ifndef P8EST_TETS_HEXES_H
25 #define P8EST_TETS_HEXES_H
26 
27 #include <p8est_connectivity.h>
28 
29 typedef struct p8est_tets
30 {
33 
36 
39 }
41 
47 sc_array_t *p8est_tets_read_node (const char *nodefile);
48 
57 sc_array_t *p8est_tets_read_ele (const char *elefile,
58  p4est_topidx_t num_nodes,
59  sc_array_t ** attributes);
60 
67 p8est_tets_t *p8est_tets_read (const char *tetgenbasename);
68 
72 void p8est_tets_destroy (p8est_tets_t * ptg);
73 
78 p4est_topidx_t p8est_tets_make_righthanded (p8est_tets_t * ptg);
79 
85 p8est_connectivity_t *p8est_connectivity_new_tets (p8est_tets_t * ptg);
86 
87 #endif /* !P8EST_TETS_HEXES */
sc_array_t * nodes
The node array contains a triplet of double coordinates per node.
Definition: p8est_tets_hexes.h:32
Definition: p8est_tets_hexes.h:29
This structure holds the 3D inter-tree connectivity information.
Definition: p8est_connectivity.h:158
sc_array_t * tets
The tet array contains a quartet of p4est_topidx_t nodes per tet.
Definition: p8est_tets_hexes.h:35
The sc_array object provides a large array of equal-size elements.
Definition: sc_containers.h:92
int32_t p4est_topidx_t
Typedef for counting topological entities (trees, tree vertices).
Definition: p4est_base.h:63
sc_array_t * tet_attributes
The element_attributes array can contain one int attribute per tet.
Definition: p8est_tets_hexes.h:38
The coarse topological description of the forest.