p4est 2.8.6
p4est is a software library for parallel adaptive mesh refinement.
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 Additional copyright (C) 2011 individual authors
8 Written by Carsten Burstedde, Lucas C. Wilcox, and Tobin Isaac
9
10 p4est is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
14
15 p4est is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with p4est; if not, write to the Free Software Foundation, Inc.,
22 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23*/
24
25#ifndef P8EST_TETS_HEXES_H
26#define P8EST_TETS_HEXES_H
27
28#include <p8est_connectivity.h>
29
30typedef struct p8est_tets
31{
33 sc_array_t *nodes;
34
36 sc_array_t *tets;
37
39 sc_array_t *tet_attributes;
40}
42
43SC_EXTERN_C_BEGIN;
44
50sc_array_t *p8est_tets_read_node (const char *nodefile);
51
60sc_array_t *p8est_tets_read_ele (const char *elefile,
61 p4est_topidx_t num_nodes,
62 sc_array_t ** attributes);
63
70p8est_tets_t *p8est_tets_read (const char *tetgenbasename);
71
75void p8est_tets_destroy (p8est_tets_t * ptg);
76
81p4est_topidx_t p8est_tets_make_righthanded (p8est_tets_t * ptg);
82
88p8est_connectivity_t *p8est_connectivity_new_tets (p8est_tets_t * ptg);
89
90SC_EXTERN_C_END;
91
92#endif /* !P8EST_TETS_HEXES */
int32_t p4est_topidx_t
Typedef for counting topological entities (trees, tree vertices).
Definition: p4est_base.h:93
The connectivity defines the coarse topology of the forest.
This structure holds the 3D inter-tree connectivity information.
Definition: p8est_connectivity.h:215
Definition: p8est_tets_hexes.h:31
sc_array_t * tet_attributes
The element_attributes array can contain one int attribute per tet.
Definition: p8est_tets_hexes.h:39
sc_array_t * nodes
The node array contains a triplet of double coordinates per node.
Definition: p8est_tets_hexes.h:33
sc_array_t * tets
The tet array contains a quartet of p4est_topidx_t nodes per tet.
Definition: p8est_tets_hexes.h:36