OpenFOAM logo
Open Source CFD Toolkit

undoableMeshCutter.H File Reference


Detailed Description

View undoableMeshCutter.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
Is main refinement handler. Gets cellCuts which is structure that describes
which cells are to be cut and in what way. Maintains an undo list
(if told so during construction). Apart from undo list is just wrapper
around meshCutter.

Undo list: contains a refinement tree (of type splitCell; cell labels are
of no consequence) and a list of visible splitCells, i.e. the top of the
tree (where the cell labels are valid). Now every cell added gets put on
the tree and every updateMesh action updates the labels of visible
splitcells.

We can now ask this structure for a list of visible split cells or the list
of faces between these. These can be passed to removeFaces for actual
deletion and we delete the top splitCell and update the now newly visible
underlying cells for the new cell number (passed back from removeFaces).

NOTE: Undoing note properly tested. Expect it to fail if the faces to
be removed cause other faces to be additionally removed (i.e. removeFaces
adds additional faces to remove).

splitCell:
- original cell number.
- pointer to parent (null for first level splitCell)
- two pointers to splitCell children. Both null (unrefined=visible cell) or
  both non-null.

- live are:
    (-all unrefined cells (original cell without any splitCells))
    -all splitCells with null children

- liveSplitCells contains pointers to splitCells with null children.


Source files

Definition in file undoableMeshCutter.H.

Go to the source code of this file.

Namespaces

namespace  Foam

Classes

class  undoableMeshCutter

For further information go to www.openfoam.org