Rheolef
7.1
an efficient C++ finite element environment
prism.icc
Go to the documentation of this file.
1
#ifndef _RHEOLEF_PRISM_ICC
2
#define _RHEOLEF_PRISM_ICC
3
//
4
// This file is part of Rheolef.
5
//
6
// Copyright (C) 2000-2018 Pierre Saramito <Pierre.Saramito@imag.fr>
7
//
8
// Rheolef 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
// Rheolef 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 Rheolef; if not, write to the Free Software
20
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
//
22
// =========================================================================
23
74
// [verbatim_prism]
75
const
size_t
dimension
= 3;
76
const
Float
measure
= 1;
77
const
size_t
n_vertex
= 6;
78
const
point
vertex
[
n_vertex
] = {
79
point
( 0, 0,-1 ),
80
point
( 1, 0,-1 ),
81
point
( 0, 1,-1 ),
82
point
( 0, 0, 1 ),
83
point
( 1, 0, 1 ),
84
point
( 0, 1, 1 ) };
85
const
size_t
n_face
= 5;
86
const
size_t
face
[
n_face
][4] = {
87
{ 0, 2, 1, size_t(-1) },
88
{ 3, 4, 5, size_t(-1) },
89
{ 0, 1, 4, 3 },
90
{ 1, 2, 5, 4 },
91
{ 0, 3, 5, 2 } };
92
const
size_t
n_edge
= 9;
93
const
size_t
edge
[
n_edge
][2] = {
94
{ 0, 1 },
95
{ 1, 2 },
96
{ 2, 0 },
97
{ 0, 3 },
98
{ 1, 4 },
99
{ 2, 5 },
100
{ 3, 4 },
101
{ 4, 5 },
102
{ 5, 3 } };
103
// [verbatim_prism]
104
105
#endif // _RHEOLEF_PRISM_ICC
n_edge
const size_t n_edge
Definition:
prism.icc:92
face
const size_t face[n_face][4]
Definition:
prism.icc:86
Float
see the Float page for the full documentation
point
see the point page for the full documentation
dimension
const size_t dimension
Definition:
prism.icc:75
measure
const Float measure
Definition:
prism.icc:76
n_vertex
const size_t n_vertex
Definition:
prism.icc:77
vertex
const point vertex[n_vertex]
Definition:
prism.icc:78
n_face
const size_t n_face
Definition:
prism.icc:85
edge
see the edge page for the full documentation