Detects faces that share points (baffles). Either merge them or duplicate the points. More...
Go to the source code of this file.
Functions | |
void | insertDuplicateMerge (const polyMesh &mesh, const labelList &duplicates, polyTopoChange &meshMod) |
labelList | findBaffles (const polyMesh &mesh, const labelList &boundaryFaces) |
int | main (int argc, char *argv[]) |
Detects faces that share points (baffles). Either merge them or duplicate the points.
Original source file mergeOrSplitBaffles.C
Definition in file mergeOrSplitBaffles.C.
void insertDuplicateMerge | ( | const polyMesh & | mesh, |
const labelList & | duplicates, | ||
polyTopoChange & | meshMod | ||
) |
Definition at line 66 of file mergeOrSplitBaffles.C.
References polyMesh::faceOwner(), polyMesh::faces(), polyMesh::faceZones(), faceZone::flipMap(), forAll, mesh, primitiveMesh::nInternalFaces(), polyTopoChange::setAction(), faceZone::whichFace(), and ZoneMesh::whichZone().
Referenced by main().
Definition at line 153 of file mergeOrSplitBaffles.C.
References Foam::abort(), polyMesh::boundaryMesh(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, localPointRegion::findDuplicateFaces(), forAll, HashSet< Key, Hash >::insert(), mesh, primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, IOobject::objectPath(), patches, Foam::Pout, HashTable::size(), and regIOobject::write().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 219 of file mergeOrSplitBaffles.C.
References argList::addBoolOption(), argList::addNote(), args, polyTopoChange::changeMesh(), Foam::endl(), findBaffles(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), insertDuplicateMerge(), mesh, fvMesh::movePoints(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, IOobject::objectPath(), argList::optionFound(), polyMesh::pointsInstance(), Foam::Pout, Foam::ReadFields(), polyMesh::setInstance(), duplicatePoints::setRefinement(), HashTable::size(), fvMesh::updateMesh(), regIOobject::write(), and fvMesh::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.