const Foam::labelgpuList& Foam::polyPatch::getFaceCells() const { if (!gpuFaceCells.size()) { gpuFaceCells = patchSlice(boundaryMesh().mesh().getFaceOwner()); } return gpuFaceCells; }
const Foam::labelUList& Foam::polyPatch::faceCells() const { if (!faceCellsPtr_) { faceCellsPtr_ = new labelList::subList ( patchSlice(boundaryMesh().mesh().faceOwner()) ); } return *faceCellsPtr_; }
void Foam::faPatch::calcPointLabels() const { SLList<label> labels; UList<edge> edges = patchSlice(boundaryMesh().mesh().edges()); forAll(edges, edgeI) { bool existStart = false; bool existEnd = false; for ( SLList<label>::iterator iter = labels.begin(); iter != labels.end(); ++iter ) { if(*iter == edges[edgeI].start()) { existStart = true; } if(*iter == edges[edgeI].end()) { existEnd = true; } } if(!existStart) { labels.append(edges[edgeI].start()); } if(!existEnd) { labels.append(edges[edgeI].end()); } }
const Foam::vectorgpuField Foam::polyPatch::getFaceAreas() const { return patchSlice(boundaryMesh().mesh().getFaceAreas()); }
const Foam::vectorField::subField Foam::polyPatch::faceAreas() const { return patchSlice(boundaryMesh().mesh().faceAreas()); }