5 Info<<
"Creating block" << endl;
9 cellShape(cellModel::HEX, identity(8)),
10 pointField(boundBox(point::zero,
L).hexCorners()),
16 Info<<
"Creating cells" << endl;
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]);
35Info<<
"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,
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())
List< word > wordList
List of word.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
vectorField pointField
pointField is a vectorField.
wordList patchNames(nPatches)
#define forAll(list, i)
Loop across all elements in list.
const vector L(dict.get< vector >("L"))
const Vector< label > N(dict.get< Vector< label > >("N"))