Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
dynamicMesh
meshCut
splitCell
splitCell.H
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration |
5
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
License
9
This file is part of OpenFOAM.
10
11
OpenFOAM is free software: you can redistribute it and/or modify it
12
under the terms of the GNU General Public License as published by
13
the Free Software Foundation, either version 3 of the License, or
14
(at your option) any later version.
15
16
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19
for more details.
20
21
You should have received a copy of the GNU General Public License
22
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23
24
Class
25
Foam::splitCell
26
27
Description
28
Description of cell after splitting. Contains cellLabel and pointers
29
to cells it it split in. See directedRefinement.
30
31
SourceFiles
32
splitCell.C
33
34
\*---------------------------------------------------------------------------*/
35
36
#ifndef splitCell_H
37
#define splitCell_H
38
39
#include <
OpenFOAM/label.H
>
40
41
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42
43
namespace
Foam
44
{
45
46
// Forward declaration of classes
47
48
/*---------------------------------------------------------------------------*\
49
Class splitCell Declaration
50
\*---------------------------------------------------------------------------*/
51
52
class
splitCell
53
{
54
// Private data
55
56
//- Unsplit cell label. Only uptodate if this cell is 'live'
57
// (i.e. no master or slave)
58
label cellI_;
59
60
//- Parent splitCell or null
61
splitCell
* parent_;
62
63
//- Cells replacing this or null
64
splitCell
* master_;
65
66
splitCell
* slave_;
67
68
69
// Private Member Functions
70
71
//- Disallow default bitwise copy construct
72
splitCell
(
const
splitCell
&);
73
74
//- Disallow default bitwise assignment
75
void
operator=(
const
splitCell
&);
76
77
78
public
:
79
80
// Constructors
81
82
//- Construct from cell number and parent
83
splitCell
(
const
label cellI,
splitCell
*
parent
);
84
85
86
// Destructor
87
88
~splitCell
();
89
90
91
// Member Functions
92
93
// Access
94
95
label
cellLabel
()
const
96
{
97
return
cellI_;
98
}
99
100
label&
cellLabel
()
101
{
102
return
cellI_;
103
}
104
105
splitCell
*
parent
()
const
106
{
107
return
parent_;
108
}
109
110
splitCell
*&
parent
()
111
{
112
return
parent_;
113
}
114
115
splitCell
*
master
()
const
116
{
117
return
master_;
118
}
119
120
splitCell
*&
master
()
121
{
122
return
master_;
123
}
124
125
splitCell
*
slave
()
const
126
{
127
return
slave_;
128
}
129
130
splitCell
*&
slave
()
131
{
132
return
slave_;
133
}
134
135
//- Check if this is master cell of split
136
bool
isMaster
()
const
;
137
138
//- Check if this is unrefined (i.e. has no master or slave)
139
bool
isUnrefined
()
const
;
140
141
//- Returns other half of split cell. I.e. slave if this is master.
142
splitCell
*
getOther
()
const
;
143
};
144
145
146
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147
148
}
// End namespace Foam
149
150
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151
152
#endif
153
154
// ************************ vim: set sw=4 sts=4 et: ************************ //