|
|
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
Direct mesh changes based on polyTopoChange syntax.
Instead of recording changes and executing them all in one go (as does
polyTopoChange) this class actually holds the current points/faces/cells
and does the change immediately.
It can be asked to compress out all unused points/faces/cells and
renumber everything to be consistent.
Note:
- adding a face using non-existing cells causes all intermediate cells
to be added. So always first add cells/points and then faces.
(or set strict checking)
- strict checking:
-any added/modified face can only use already existing vertices
-any added face ,, cells
-no item can be removed more than once.
- removed cell: cell set to 0 faces.
- removed face: face set to 0 vertices.
- removed point: coordinate set to greatPoint (GREAT,GREAT,GREAT).
Note that this might give problems if this value is used already.
To see if point is equal to above value we don't use == (which might give
problems with roundoff error) but instead compare the individual component
with >.
- coupled patches: the reorderCoupledFaces routine (borrowed from
the couplePatches utility) reorders coupled patch faces and
uses the cyclicPolyPatch,processorPolyPatch functionality.
Definition in file directPolyTopoChange.H.
Go to the source code of this file.
Namespaces | |
| namespace | Foam |
Classes | |
| class | directPolyTopoChange |