Flow123d
JS_before_hm-995-g9546b8d
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
mesh
mesh_data.hh
Go to the documentation of this file.
1
/*!
2
*
3
* Copyright (C) 2015 Technical University of Liberec. All rights reserved.
4
*
5
* This program is free software; you can redistribute it and/or modify it under
6
* the terms of the GNU General Public License version 3 as published by the
7
* Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
8
*
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
*
13
*
14
* @file mesh_data.hh
15
* @brief Internal mesh data classes.
16
*/
17
18
#ifndef MESH_DATA_H
19
#define MESH_DATA_H
20
21
22
23
class
SideIter
;
24
25
class
EdgeData
{
26
public
:
27
EdgeData
()
28
:
n_sides
(0),
side_
(nullptr)
29
{};
30
// Topology of the mesh
31
unsigned
int
n_sides
;
// # of sides of edge
32
SideIter
*
side_
;
// sides of edge (could be more then two e.g. 1D mesh in 2d space with crossing )
33
};
34
35
36
37
38
class
Mesh
;
39
40
class
BoundaryData
41
{
42
public
:
43
static
const
unsigned
int
undef_idx=-1;
44
45
BoundaryData
()
46
: edge_idx_(undef_idx),
47
bc_ele_idx_(undef_idx),
48
mesh_(nullptr)
49
{};
50
51
// Topology of the mesh
52
unsigned
int
edge_idx_
;
// more then one side can be at one boundary element
53
unsigned
int
bc_ele_idx_
;
// in near future this should replace Boundary itself, when we remove BC data members
54
Mesh
*
mesh_
;
55
56
};
57
58
#endif
BoundaryData::bc_ele_idx_
unsigned int bc_ele_idx_
Definition:
mesh_data.hh:53
BoundaryData::BoundaryData
BoundaryData()
Definition:
mesh_data.hh:45
EdgeData::EdgeData
EdgeData()
Definition:
mesh_data.hh:27
Mesh
Definition:
mesh.h:78
BoundaryData::mesh_
Mesh * mesh_
Definition:
mesh_data.hh:54
SideIter
Definition:
accessors.hh:461
BoundaryData::edge_idx_
unsigned int edge_idx_
Definition:
mesh_data.hh:49
EdgeData::side_
SideIter * side_
Definition:
mesh_data.hh:32
EdgeData
Definition:
mesh_data.hh:25
BoundaryData
Definition:
mesh_data.hh:40
EdgeData::n_sides
unsigned int n_sides
Definition:
mesh_data.hh:29
Generated by
1.8.11