40 void blockDescriptor::makeBlockEdges()
45 setEdge(0, 0, 1, n_.
x());
46 setEdge(1, 3, 2, n_.
x());
47 setEdge(2, 7, 6, n_.
x());
48 setEdge(3, 4, 5, n_.
x());
50 setEdge(4, 0, 3, n_.
y());
51 setEdge(5, 1, 2, n_.
y());
52 setEdge(6, 5, 6, n_.
y());
53 setEdge(7, 4, 7, n_.
y());
55 setEdge(8, 0, 4, n_.
z());
56 setEdge(9, 1, 5, n_.
z());
57 setEdge(10, 2, 6, n_.
z());
58 setEdge(11, 3, 7, n_.
z());
67 const cellShape& bshape,
70 const Vector<label>& n,
75 blockMeshPoints_(blockMeshPoints),
84 if (expand_.size() != 12)
88 "blockDescriptor::blockDescriptor"
89 "(const cellShape& bshape, const pointField& blockMeshPoints, "
90 "const curvedEdgeList& edges, label xnum, label ynum, label znum, "
91 "const scalarList& expand, const word& zoneName)"
92 ) <<
"Unknown definition of expansion ratios"
108 blockMeshPoints_(blockMeshPoints),
124 zoneName_ = t.wordToken();
134 if (t.isPunctuation())
144 "blockDescriptor::blockDescriptor"
145 "(const pointField&, const curvedEdgeList&, Istream& is)",
147 ) <<
"incorrect token while reading n, expected '(', found "
154 is >> n_.x() >> n_.y() >> n_.z();
165 if (expRatios.size() == 3)
167 expand_[0] = expRatios[0];
168 expand_[1] = expRatios[0];
169 expand_[2] = expRatios[0];
170 expand_[3] = expRatios[0];
172 expand_[4] = expRatios[1];
173 expand_[5] = expRatios[1];
174 expand_[6] = expRatios[1];
175 expand_[7] = expRatios[1];
177 expand_[8] = expRatios[2];
178 expand_[9] = expRatios[2];
179 expand_[10] = expRatios[2];
180 expand_[11] = expRatios[2];
182 else if (expRatios.size() == 12)
190 "blockDescriptor::blockDescriptor"
191 "(const pointField& blockMeshPoints, const curvedEdgeList& edges,"
193 ) <<
"Unknown definition of expansion ratios"
206 return blockMeshPoints_;
239 notImplemented(
"void blockDescriptor::operator=(const blockDescriptor&)");