OpenFOAM logo
Open Source CFD Toolkit

fvMeshSubset.H File Reference


Detailed Description

View fvMeshSubset.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
Post-processing mesh subset tool.  Given the original mesh and the
list of selected cells, it creates the mesh consisting only of the
desired cells, with the mapping list for points, faces, and cells.

Puts all exposed internal faces into either
- a user supplied patch
- a newly created patch "oldInternalFaces"

- setCellSubset is for small subsets. Uses Maps to minimize memory.
- setLargeCellSubset is for largish subsets (>10% of mesh).
  Uses labelLists instead.

- setLargeCellSubset does coupled patch subsetting as well. If it detects
  a face on a coupled patch 'losing' its neighbour it will move the
  face into the oldInternalFaces patch.

- if a user supplied patch is used the mapping becomes a problem.
Do the new faces get the value of the internal face they came from?
What if e.g. the user supplied patch is a fixedValue 0? So for now
they get the face of existing patch face 0.

Source files

Definition in file fvMeshSubset.H.

Go to the source code of this file.

Namespaces

namespace  Foam

Classes

class  fvMeshSubset
class  fvMeshSubset::patchFieldSubset
 Patch-field subset interpolation class. More...

For further information go to www.openfoam.org