FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

stitchMesh.C File Reference

'Stitches' a mesh. More...


Detailed Description

'Stitches' a mesh.

Takes a mesh and two patches and merges the faces on the two patches (if geometrically possible) so the faces become internal.

Can do

  • 'perfect' match: faces and points on patches align exactly. Order might be different though.
  • 'integral' match: where the surfaces on both patches exactly match but the individual faces not
  • 'partial' match: where the non-overlapping part of the surface remains in the respective patch.
Note:
Is just a front-end to perfectInterface/slidingInterface.

Comparable to running a meshModifier of the form (if masterPatch is called "M" and slavePatch "S"):

couple { typeslidingInterface; masterFaceZoneName MSMasterZone slaveFaceZoneName MSSlaveZone cutPointZoneNameMSCutPointZone cutFaceZoneName MSCutFaceZone masterPatchName M; slavePatchName S; typeOfMatch partial or integral }

Usage
  • stitchMesh [OPTIONS] <masterPatch> <slavePatch>
Parameters:
\<masterPatch\>
Todo:
Detailed description of argument.
Parameters:
\<slavePatch\>
Todo:
Detailed description of argument.
Parameters:
-perfect
The patches, vertices and face centres are perfectly aligned.
-partial
The surface overlap only partialy.
-overwrite
Overwrite existing data.
-case<dir>
Case directory.
-help
Display help message.
-doc
Display Doxygen API documentation page for this application.
-srcDoc
Display Doxygen source documentation page for this application.

Definition in file stitchMesh.C.

#include "src/finiteVolume/cfdTools/general/include/fvCFD.H"
#include "src/dynamicMesh/polyTopoChange/polyTopoChanger/polyTopoChanger.H"
#include "src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapPolyMesh.H"
#include "src/OpenFOAM/containers/Lists/ListOps/ListOps.H"
#include "src/dynamicMesh/slidingInterface/slidingInterface.H"
#include "src/dynamicMesh/perfectInterface/perfectInterface.H"
#include "src/OpenFOAM/db/IOobjectList/IOobjectList.H"
#include "src/OpenFOAM/fields/ReadFields/ReadFields.H"
#include "src/OpenFOAM/include/addRegionOption.H"
#include "src/OpenFOAM/include/setRootCase.H"
#include "src/OpenFOAM/include/createTime.H"
#include "src/OpenFOAM/include/createNamedMesh.H"
Include dependency graph for stitchMesh.C:

Go to the source code of this file.