38 Foam::blockMesh::blockMesh(IOdictionary& meshDescription)
40 topologyPtr_(createTopology(meshDescription)),
41 blockOffsets_(createBlockOffsets()),
42 mergeList_(createMergeList()),
43 points_(createPoints(meshDescription)),
44 cells_(createCells()),
45 patches_(createPatches())
64 <<
"topologyPtr_ not allocated"
74 const polyPatchList& patchTopologies = topology().boundaryMesh();
75 wordList names(patchTopologies.size());
79 names[patchI] = patchTopologies[patchI].name();
88 const polyPatchList& patchTopologies = topology().boundaryMesh();
89 wordList types(patchTopologies.size());
93 types[patchI] = patchTopologies[patchI].type();
102 const polyPatchList& patchTopologies = topology().boundaryMesh();
103 wordList physicalTypes(patchTopologies.size());
105 forAll (physicalTypes, patchI)
107 physicalTypes[patchI] = patchTopologies[patchI].physicalType();
110 return physicalTypes;
120 if (
operator[](blockI).blockDef().zoneName().size())
136 const point& pt = pts[pI];
138 os <<
"v " << pt.
x() <<
' ' << pt.y() <<
' ' << pt.z() <<
endl;
141 const edgeList& edges = topology().edges();
145 const edge&
e = edges[eI];
147 os <<
"l " << e.start() + 1 <<
' ' << e.
end() + 1 <<
endl;