Flow123d
release_3.0.0-1106-ga3b2e4c
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
flow123d
src
mesh
boundaries.cc
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 boundaries.cc
15
* @ingroup mesh
16
* @brief Boundary conditions
17
*/
18
19
#include "
system/system.hh
"
20
#include "
mesh/side_impl.hh
"
21
#include "
mesh/mesh.h
"
22
#include "
mesh/boundaries.h
"
23
#include "
mesh/accessors.hh
"
24
25
26
flow::VectorId<unsigned int>
Boundary::id_to_bcd
;
27
28
29
Boundary::Boundary
()
30
: edge_idx_(
Mesh
::undef_idx), bc_ele_idx_(
Mesh
::undef_idx),
31
mesh_(NULL)
32
{}
33
34
35
Region
Boundary::region
() {
36
return
element_accessor
().
region
();
37
}
38
39
40
Element
*
Boundary::element
() {
41
return
&(
mesh_
->
element_vec_
[
bc_ele_idx_
] );
42
}
43
44
Edge
*
Boundary::edge
() {
45
return
&(
mesh_
->
edges
[
edge_idx_
] );
46
}
47
48
ElementAccessor<3>
Boundary::element_accessor
()
49
{
50
return
mesh_
->
element_accessor
(
bc_ele_idx_
);
51
}
52
53
//-----------------------------------------------------------------------------
54
// vim: set cindent:
55
Mesh::element_vec_
vector< Element > element_vec_
Definition:
mesh.h:508
boundaries.h
accessors.hh
flow::VectorId< unsigned int >
ElementAccessor< 3 >
system.hh
mesh.h
Mesh
Definition:
mesh.h:76
Edge
Definition:
edges.h:26
Boundary::region
Region region()
Definition:
boundaries.cc:35
Region
Definition:
region.hh:146
Mesh::element_accessor
virtual ElementAccessor< 3 > element_accessor(unsigned int idx) const
Create and return ElementAccessor to element of given idx.
Definition:
mesh.cc:726
Boundary::Boundary
Boundary()
Definition:
boundaries.cc:29
Boundary::edge
Edge * edge()
Definition:
boundaries.cc:44
Boundary::element
Element * element()
Definition:
boundaries.cc:40
Element
Definition:
elements.h:42
Boundary::edge_idx_
unsigned int edge_idx_
Definition:
boundaries.h:78
ElementAccessor::region
Region region() const
Definition:
accessors.hh:95
Boundary::bc_ele_idx_
unsigned int bc_ele_idx_
Definition:
boundaries.h:79
Mesh::edges
std::vector< Edge > edges
Vector of MH edges, this should not be part of the geometrical mesh.
Definition:
mesh.h:252
side_impl.hh
Boundary::mesh_
Mesh * mesh_
Definition:
boundaries.h:80
Boundary::element_accessor
ElementAccessor< 3 > element_accessor()
Definition:
boundaries.cc:48
Boundary::id_to_bcd
static flow::VectorId< unsigned int > id_to_bcd
Definition:
boundaries.h:56
Generated by
1.8.11