mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
avoiding usage of Sf (triggers rebuild of S) in autoMap since upsets mapping
This commit is contained in:
@ -157,8 +157,15 @@ void Foam::activeBaffleVelocityFvPatchVectorField::autoMap
|
|||||||
//- Note: cannot map field from cyclic patch anyway so just recalculate
|
//- Note: cannot map field from cyclic patch anyway so just recalculate
|
||||||
// Areas should be consistent when doing autoMap except in case of
|
// Areas should be consistent when doing autoMap except in case of
|
||||||
// topo changes.
|
// topo changes.
|
||||||
initWallSf_ = patch().Sf();
|
//- Note: we don't want to use Sf here since triggers rebuilding of
|
||||||
initCyclicSf_ = patch().boundaryMesh()[cyclicPatchLabel_].Sf();
|
// fvMesh::S() which will give problems when mapped (since already
|
||||||
|
// on new mesh)
|
||||||
|
const vectorField& areas = patch().boundaryMesh().mesh().faceAreas();
|
||||||
|
initWallSf_ = patch().patchSlice(areas);
|
||||||
|
initCyclicSf_ = patch().boundaryMesh()
|
||||||
|
[
|
||||||
|
cyclicPatchLabel_
|
||||||
|
].patchSlice(areas);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Foam::activeBaffleVelocityFvPatchVectorField::rmap
|
void Foam::activeBaffleVelocityFvPatchVectorField::rmap
|
||||||
@ -169,10 +176,13 @@ void Foam::activeBaffleVelocityFvPatchVectorField::rmap
|
|||||||
{
|
{
|
||||||
fixedValueFvPatchVectorField::rmap(ptf, addr);
|
fixedValueFvPatchVectorField::rmap(ptf, addr);
|
||||||
|
|
||||||
//- Note: cannot map field from cyclic patch anyway so just recalculate
|
// See autoMap.
|
||||||
// Areas should be consistent when doing rmap (mainly reconstructPar)
|
const vectorField& areas = patch().boundaryMesh().mesh().faceAreas();
|
||||||
initWallSf_ = patch().Sf();
|
initWallSf_ = patch().patchSlice(areas);
|
||||||
initCyclicSf_ = patch().boundaryMesh()[cyclicPatchLabel_].Sf();
|
initCyclicSf_ = patch().boundaryMesh()
|
||||||
|
[
|
||||||
|
cyclicPatchLabel_
|
||||||
|
].patchSlice(areas);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user