From 4f948a2d879b93e6ab0863cc16266563bda47524 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Wed, 11 Jan 2017 12:02:09 +0000 Subject: [PATCH] Option to add empty patch in faMesh. Zeljko Tukovic --- .../finiteArea/makeFaMesh/makeFaMesh.C | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C b/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C index 372e122e4..fd2f064f6 100644 --- a/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C +++ b/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C @@ -314,6 +314,26 @@ int main(int argc, char *argv[]) } } + if (args.optionFound("addEmptyPatch")) + { + word emptyPatchName(args.optionLookup("addEmptyPatch")()); + dictionary emptyPatchDict; + emptyPatchDict.add("type", "empty"); + emptyPatchDict.add("edgeLabels", labelList()); + emptyPatchDict.add("ngbPolyPatchIndex", -1); + + faPatchLst.append + ( + faPatch::New + ( + emptyPatchName, + emptyPatchDict, + faPatchLst.size(), + areaMesh.boundary() + ).ptr() + ); + } + Info << "Add faPatches ... "; areaMesh.addFaPatches(List(faPatchLst)); Info << "Done" << endl;