blockMesh: The 'boundary' entry is now optional

If not present a single default boundary patch will be created.
This commit is contained in:
Henry Weller
2023-03-15 11:19:01 +00:00
parent 6ff9a04dd2
commit 839fc789d5

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -276,7 +276,7 @@ void Foam::blockMesh::readBoundary
// Read like boundary file
const PtrList<entry> patchesInfo
(
meshDescription.lookup("boundary")
meshDescription.lookupOrDefault("boundary", PtrList<entry>())
);
patchNames.setSize(patchesInfo.size());
@ -574,7 +574,7 @@ Foam::polyMesh* Foam::blockMesh::createTopology
defaultPatchError(defaultPatchName, meshDescription);
}
}
else if (meshDescription.found("boundary"))
else
{
wordList patchNames;
faceListList tmpBlocksPatches;