void Foam::fvBoundaryMesh::addPatches(const polyBoundaryMesh& basicBdry) { setSize(basicBdry.size()); // Set boundary patches fvPatchList& Patches = *this; forAll(Patches, patchi) { Patches.set(patchi, fvPatch::New(basicBdry[patchi], *this)); }
Foam::pointBoundaryMesh::pointBoundaryMesh ( const pointMesh& m, const polyBoundaryMesh& basicBdry ) : pointPatchList(basicBdry.size()), mesh_(m) { // Set boundary patches pointPatchList& Patches = *this; forAll(Patches, patchI) { Patches.set ( patchI, facePointPatch::New(basicBdry[patchI], *this).ptr() ); }