9 cellShape(cellModel::HEX,
identity(8)),
19 Info<<
"Creating boundary faces" <<
endl;
21 boundary.setSize(
b.boundaryPatches().size());
24 faceList faces(
b.boundaryPatches()[patchi].size());
27 faces[facei] = face(
b.boundaryPatches()[patchi][facei]);
32 points.transfer(const_cast<pointField&>(
b.points()));
35 Info<<
"Creating patch dictionaries" <<
endl;
39 patchNames[patchi] = polyPatch::defaultName(patchi);
50 nbrPatchName = polyPatch::defaultName(patchi + 1);
54 nbrPatchName = polyPatch::defaultName(patchi - 1);
57 patchDict.add(
"type", cyclicPolyPatch::typeName);
58 patchDict.add(
"neighbourPatch", nbrPatchName);
66 polyMesh::defaultRegion,
77 cyclicPolyPatch::typeName,
List< faceList > faceListList
List of faceList.
const vector L(dict.get< vector >("L"))
PtrList< blockFace > blockFaceList
A PtrList of blockFaces.
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< cellShape > cellShapeList
List of cellShape.
List< face > faceList
List of faces.
vectorField pointField
pointField is a vectorField.
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i), works like std::iota() but returning a...
wordList patchNames(nPatches)
forAll(boundaryDicts, patchi)
Info<< "Creating cells"<< endl;cellShapes=b.shapes();Info<< "Creating boundary faces"<< endl;boundary.setSize(b.boundaryPatches().size());forAll(boundary, patchi) { faceList faces(b.boundaryPatches()[patchi].size());forAll(faces, facei) { faces[facei]=face(b.boundaryPatches()[patchi][facei]);} boundary[patchi].transfer(faces);} points.transfer(const_cast< pointField & >b.points()));}Info<< "Creating patch dictionaries"<< endl;wordList patchNames(boundary.size());forAll(patchNames, patchi){ patchNames[patchi]=polyPatch::defaultName(patchi);}PtrList< dictionary > boundaryDicts(boundary.size())
const Vector< label > N(dict.get< Vector< label >>("N"))
List< word > wordList
List of word.
block b(cellShape(cellModel::HEX, identity(8)), pointField(boundBox(point::zero, L).hexCorners()), blockEdgeList(), blockFaceList(), N)
PtrList< blockEdge > blockEdgeList
A PtrList of blockEdges.
messageStream Info
Information stream (stdout output on master, null elsewhere)