DOLFIN
DOLFIN C++ interface
Toggle main menu visibility
Loading...
Searching...
No Matches
dolfin
mesh
FacetCell.h
1
// Copyright (C) 2010 Anders Logg
2
//
3
// This file is part of DOLFIN.
4
//
5
// DOLFIN is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU Lesser General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// DOLFIN is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU Lesser General Public License for more details.
14
//
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
17
//
18
// First added: 2010-02-08
19
// Last changed: 2010-02-08
20
21
#ifndef __FACET_CELL_H
22
#define __FACET_CELL_H
23
24
#include "Cell.h"
25
26
namespace
dolfin
27
{
28
29
class
BoundaryMesh
;
30
35
36
class
FacetCell
:
public
Cell
37
{
38
public
:
39
41
FacetCell
(
const
BoundaryMesh
&
mesh
,
const
Cell
& facet);
42
44
~FacetCell
();
45
47
std::size_t
facet_index
()
const
;
48
49
private
:
50
51
// Facet index
52
std::size_t _facet_index;
53
54
};
55
56
}
57
58
#endif
dolfin::BoundaryMesh
Definition
BoundaryMesh.h:40
dolfin::Cell::Cell
Cell()
Create empty cell.
Definition
Cell.h:47
dolfin::FacetCell::~FacetCell
~FacetCell()
Destructor.
Definition
FacetCell.cpp:50
dolfin::FacetCell::FacetCell
FacetCell(const BoundaryMesh &mesh, const Cell &facet)
Create cell on mesh corresponding to given facet (cell) on boundary.
Definition
FacetCell.cpp:31
dolfin::FacetCell::facet_index
std::size_t facet_index() const
Return local index of facet with respect to the cell.
Definition
FacetCell.cpp:55
dolfin::MeshEntity::mesh
const Mesh & mesh() const
Definition
MeshEntity.h:99
dolfin
Definition
adapt.h:30
Generated by
1.17.0