From 2db562630409a9e0f7abff2bb2d4c2725a956f15 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Thu, 21 Jul 2022 08:57:32 +0100 Subject: [PATCH] createNonConformalCouples: Added -fields option When this option is enabled, non-conformal boundary conditions will be added to all the fields. It enables exactly the same behaviour as the "fields" entry that is available when using this utility with a settings dictionary (system/createNonConformalCouplesDict). --- .../createNonConformalCouples.C | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/applications/utilities/mesh/manipulation/createNonConformalCouples/createNonConformalCouples.C b/applications/utilities/mesh/manipulation/createNonConformalCouples/createNonConformalCouples.C index e27b7c1206..e5688c9345 100644 --- a/applications/utilities/mesh/manipulation/createNonConformalCouples/createNonConformalCouples.C +++ b/applications/utilities/mesh/manipulation/createNonConformalCouples/createNonConformalCouples.C @@ -30,6 +30,14 @@ Description Usage \b createNonConformalCouples + Options: + - \par -overwrite \n + Replace the old mesh with the new one, rather than writing the new one + into a separate time directory + + - \par -fields \n + Add non-conformal boundary conditions to the fields. + Note If run with two arguments, these arguments specify the patches between which a single couple is to be created. The resulting couple will not have @@ -309,6 +317,11 @@ int main(int argc, char *argv[]) { argList::validArgs.append("patch1"); argList::validArgs.append("patch2"); + argList::addBoolOption + ( + "fields", + "add non-conformal boundary conditions to the fields" + ); } #include "setRootCase.H" @@ -330,7 +343,7 @@ int main(int argc, char *argv[]) // information from the system dictionary. if (haveArgs) { - fields = false; + fields = args.optionFound("fields"); patchNames.append(Pair(args[1], args[2])); cyclicNames.append(nonConformalCyclicPolyPatch::typeName);