mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: createPatchDict: renamed dictionary entry
This commit is contained in:
@ -83,6 +83,7 @@ label addPatch
|
||||
pp.inGroups().append(groupName);
|
||||
}
|
||||
|
||||
|
||||
// Add patch, create calculated everywhere
|
||||
fvMeshTools::addPatch
|
||||
(
|
||||
@ -636,19 +637,18 @@ int main(int argc, char *argv[])
|
||||
// Note: This is added for the particular case where we want
|
||||
// master and slave in different groupNames
|
||||
// (ie 3D thermal baffles)
|
||||
bool groupBase = false;
|
||||
if (patchSource.found("groupBase"))
|
||||
{
|
||||
groupBase = readBool(patchSource.lookup("groupBase"));
|
||||
|
||||
if (groupBase)
|
||||
Switch sameGroup
|
||||
(
|
||||
patchSource.lookupOrDefault("sameGroup", true)
|
||||
);
|
||||
if (!sameGroup)
|
||||
{
|
||||
groupNameMaster = groupName + "Group_master";
|
||||
groupNameSlave = groupName + "Group_slave";
|
||||
patchDictMaster.set("coupleGroup", groupNameMaster);
|
||||
patchDictSlave.set("coupleGroup", groupNameSlave);
|
||||
}
|
||||
}
|
||||
|
||||
addPatch(mesh, masterName, groupNameMaster, patchDictMaster);
|
||||
addPatch(mesh, slaveName, groupNameSlave, patchDictSlave);
|
||||
@ -818,11 +818,11 @@ int main(int argc, char *argv[])
|
||||
else
|
||||
{
|
||||
const dictionary& patchSource = dict.subDict("patchPairs");
|
||||
bool groupBase = false;
|
||||
if (patchSource.found("groupBase"))
|
||||
{
|
||||
groupBase = readBool(patchSource.lookup("groupBase"));
|
||||
}
|
||||
|
||||
Switch sameGroup
|
||||
(
|
||||
patchSource.lookupOrDefault("sameGroup", true)
|
||||
);
|
||||
|
||||
const word& groupName = selectors[selectorI].name();
|
||||
|
||||
@ -833,7 +833,7 @@ int main(int argc, char *argv[])
|
||||
"patchFields"
|
||||
);
|
||||
|
||||
if (!groupBase)
|
||||
if (sameGroup)
|
||||
{
|
||||
// Add coupleGroup to all entries
|
||||
forAllIter(dictionary, patchFieldsDict, iter)
|
||||
|
||||
@ -52,8 +52,9 @@ baffles
|
||||
{
|
||||
type mappedWall;
|
||||
sampleMode nearestPatchFace;
|
||||
//Group master and slave in different groups. (default off)
|
||||
groupBase on;
|
||||
// Put master and slave patch in same group (default on)
|
||||
// Otherwise makeup group names xxx_master and xxx_slave
|
||||
sameGroup off;
|
||||
patchFields
|
||||
{
|
||||
#include "./0/include/wallBafflePatches"
|
||||
|
||||
Reference in New Issue
Block a user