OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

refinementHistory.H File Reference


Detailed Description

View refinementHistory.H
License
This file is part of OpenFOAM.

OpenFOAM is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Description
All refinement history. Used in unrefinement.
- visibleCells: valid for the current mesh and contains per cell -1
(cell unrefined) or an index into splitCells_.
- splitCells: for every split contains the parent (also index into
  splitCells) and optionally a subsplit as 8 indices into splitCells.
  Note that the numbers in splitCells are not cell labels, they are purely
  indices into splitCells.

E.g. 2 cells, cell 1 gets refined so end up with 9 cells:

// splitCells
9
(
-1 (1 2 3 4 5 6 7 8)
0 0()
0 0()
0 0()
0 0()
0 0()
0 0()
0 0()
0 0()
)

// visibleCells
9(-1 1 2 3 4 5 6 7 8)


So cell0 (visibleCells=-1) is unrefined. Cells 1-8 have all valid splitCells
entries which are:

parent:0
subsplits:0()

The parent 0 refers back to the splitcell entries.


Source files

Definition in file refinementHistory.H.

Go to the source code of this file.


Namespaces

namespace  Foam

Classes

class  refinementHistory
class  refinementHistory::splitCell8
Copyright © 2000-2007 OpenCFD Ltd