Option to add empty patch in faMesh. Zeljko Tukovic

This commit is contained in:
Hrvoje Jasak 2017-01-11 12:02:09 +00:00
parent 88f3579418
commit 4f948a2d87

View file

@ -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 ... "; Info << "Add faPatches ... ";
areaMesh.addFaPatches(List<faPatch*>(faPatchLst)); areaMesh.addFaPatches(List<faPatch*>(faPatchLst));
Info << "Done" << endl; Info << "Done" << endl;