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

addPatchCellLayer.H File Reference


Detailed Description

View addPatchCellLayer.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
Adds layers of cells to outside of polyPatch. Call setRefinement with
offset vector for every patch point.
- offset vector should be zero for any non-manifold point and synchronised
on coupled points before calling this.
- offset vector of zero will not add any points.
- added faces get same patchID as face they are extruded from
- 'side' faces (i.e. on the edge of pp) get the patchID of the
other patch they are connected to.


E.g. 3 boundary faces on patches a,b. b gets extruded, a doesn't.

   a      b      b          <- patch of boundary face
+------+------+------+
|      |      |      |      <- cells
+------+------+------+


       ^      ^             <- wanted extrusion vector (none at far right)
   a   |  b   |  b          <- patch of boundary face
+------+------+------+
|      |      |      |      <- cells
+------+------+------+

          b      
       +------+\ b          1. prism cell added onto second b face since
   a  a|      | ----\          only one side gets extruded.
+------+------+------+      2. side-face gets patch a, not b.
|      |      |      |
+------+------+------+


Source files

Definition in file addPatchCellLayer.H.

Go to the source code of this file.


Namespaces

namespace  Foam

Classes

class  addPatchCellLayer
Copyright © 2000-2007 OpenCFD Ltd