MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / facePoint

Function facePoint

src/mesh/blockMesh/blockMesh/blockMeshMergeFast.C:201–226  ·  view source on GitHub ↗

Return the face point index

Source from the content-addressed store, hash-verified

199
200// Return the face point index
201inline label facePoint
202(
203 const int facei,
204 const block& block,
205 const label i,
206 const label j
207)
208{
209 switch (facei)
210 {
211 case 0:
212 return block.pointLabel(0, i, j);
213 case 1:
214 return block.pointLabel(block.density().x(), i, j);
215 case 2:
216 return block.pointLabel(i, 0, j);
217 case 3:
218 return block.pointLabel(i, block.density().y(), j);
219 case 4:
220 return block.pointLabel(i, j, 0);
221 case 5:
222 return block.pointLabel(i, j, block.density().z());
223 default:
224 return -1;
225 }
226}
227
228// Return the neighbour face point from the signed indices
229inline label facePointN

Callers 2

calcMergeInfoFastFunction · 0.85
mappedPatchBase.CFile · 0.85

Calls 4

pointLabelMethod · 0.80
xMethod · 0.45
yMethod · 0.45
zMethod · 0.45

Tested by

no test coverage detected