ENH: meshToMesh: allow deeper patch octree

This commit is contained in:
mattijs
2012-07-02 17:18:52 +01:00
parent f451fc5825
commit 6e81867562

View File

@ -171,13 +171,15 @@ void Foam::meshToMesh::calcAddressing()
wallBb.max() + vector(typDim, typDim, typDim) wallBb.max() + vector(typDim, typDim, typDim)
); );
// Note: allow more levels than in meshSearch. Assume patch
// is not as big as all boundary faces
indexedOctree<treeDataFace> oc indexedOctree<treeDataFace> oc
( (
treeDataFace(false, fromPatch), treeDataFace(false, fromPatch),
shiftedBb, // overall search domain shiftedBb, // overall search domain
8, // maxLevel 12, // maxLevel
10, // leafsize 10, // leafsize
3.0 // duplicity 6.0 // duplicity
); );
const vectorField::subField centresToBoundary = const vectorField::subField centresToBoundary =
@ -185,7 +187,7 @@ void Foam::meshToMesh::calcAddressing()
boundaryAddressing_[patchi].setSize(toPatch.size()); boundaryAddressing_[patchi].setSize(toPatch.size());
scalar distSqr = sqr(GREAT); scalar distSqr = sqr(wallBb.mag());
forAll(toPatch, toi) forAll(toPatch, toi)
{ {