Flow123d
release_2.2.0-26-ge868538
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/mesh.h
"
21
#include "
mesh/boundaries.h
"
22
#include "
mesh/accessors.hh
"
23
24
25
flow::VectorId<unsigned int>
Boundary::id_to_bcd
;
26
27
28
Boundary::Boundary
()
29
: edge_idx_(
Mesh
::undef_idx), bc_ele_idx_(
Mesh
::undef_idx),
30
mesh_(NULL)
31
{}
32
33
34
Region
Boundary::region
() {
35
return
element
()->
region
();
36
}
37
38
39
Element
*
Boundary::element
() {
40
return
&(
mesh_
->
bc_elements
[
bc_ele_idx_
] );
41
}
42
43
Edge
*
Boundary::edge
() {
44
return
&(
mesh_
->
edges
[
edge_idx_
] );
45
}
46
47
ElementAccessor<3>
Boundary::element_accessor
()
48
{
49
return
mesh_
->
element_accessor
(
bc_ele_idx_
,
true
);
50
}
51
52
//-----------------------------------------------------------------------------
53
// vim: set cindent:
54
boundaries.h
accessors.hh
flow::VectorId< unsigned int >
ElementAccessor
Definition:
output_element.hh:25
system.hh
mesh.h
Mesh
Definition:
mesh.h:97
Edge
Definition:
edges.h:26
Mesh::element_accessor
ElementAccessor< 3 > element_accessor(unsigned int idx, bool boundary=false)
Definition:
mesh.cc:669
Boundary::region
Region region()
Definition:
boundaries.cc:34
Region
Definition:
region.hh:145
Boundary::Boundary
Boundary()
Definition:
boundaries.cc:28
Boundary::edge
Edge * edge()
Definition:
boundaries.cc:43
Element::region
Region region() const
Definition:
elements.cc:155
Boundary::element
Element * element()
Definition:
boundaries.cc:39
Mesh::bc_elements
ElementVector bc_elements
Definition:
mesh.h:236
Element
Definition:
elements.h:39
Boundary::edge_idx_
unsigned int edge_idx_
Definition:
boundaries.h:75
Boundary::bc_ele_idx_
unsigned int bc_ele_idx_
Definition:
boundaries.h:76
Mesh::edges
std::vector< Edge > edges
Vector of MH edges, this should not be part of the geometrical mesh.
Definition:
mesh.h:239
Boundary::mesh_
Mesh * mesh_
Definition:
boundaries.h:77
Boundary::element_accessor
ElementAccessor< 3 > element_accessor()
Definition:
boundaries.cc:47
Boundary::id_to_bcd
static flow::VectorId< unsigned int > id_to_bcd
Definition:
boundaries.h:53
Generated by
1.8.11