1const cellModel&
hex = cellModel::ref(cellModel::HEX);
7 Info<<
"Creating block" << endl;
11 cellShape(
hex, identity(8)),
17 point(
L.x(),
L.y(), 0),
20 point(
L.x(), 0,
L.z()),
21 point(
L.x(),
L.y(),
L.z()),
22 point(0,
L.y(),
L.z())
33 Info<<
"Creating boundary faces" <<
endl;
35 boundary.setSize(
b.boundaryPatches().size());
38 faceList faces(
b.boundaryPatches()[patchi].size());
41 faces[facei] = face(
b.boundaryPatches()[patchi][facei]);
49Info<<
"Creating patch dictionaries" <<
endl;
53 patchNames[patchi] = polyPatch::defaultName(patchi);
64 nbrPatchName = polyPatch::defaultName(patchi + 1);
68 nbrPatchName = polyPatch::defaultName(patchi - 1);
71 patchDict.add(
"type", cyclicPolyPatch::typeName);
72 patchDict.add(
"neighbourPatch", nbrPatchName);
80 polyMesh::defaultRegion,
91 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
A List of words.
PtrList< blockFace > blockFaceList
A PtrList of blockFaces.
messageStream Info
Information stream (stdout output on master, null elsewhere)
vectorField pointField
pointField is a vectorField.
PtrList< blockEdge > blockEdgeList
A PtrList of blockEdges.
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< face > faceList
A List of faces.
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"))