Bugfix: mesh motion in 3-D. Inno Gatin

This commit is contained in:
Hrvoje Jasak 2015-11-18 20:17:00 +00:00
parent e1378bdd1e
commit 03b0fe773b

View file

@ -90,9 +90,6 @@ void Foam::movingImmersedBoundary::movePoints() const
U.boundaryField()[patchID] U.boundaryField()[patchID]
); );
// Set refValue_ to moving boundary velocity
ibPatchField.refValue() =
transform(sbmfPtr_->velocity(), refIbSurface_.points());
const immersedBoundaryPolyPatch& cibPatch = const immersedBoundaryPolyPatch& cibPatch =
refCast<const immersedBoundaryPolyPatch> refCast<const immersedBoundaryPolyPatch>
@ -104,6 +101,10 @@ void Foam::movingImmersedBoundary::movePoints() const
immersedBoundaryPolyPatch& ibPatch = immersedBoundaryPolyPatch& ibPatch =
const_cast<immersedBoundaryPolyPatch&>(cibPatch); const_cast<immersedBoundaryPolyPatch&>(cibPatch);
// Set refValue_ to moving boundary velocity
ibPatchField.refValue() =
transform(sbmfPtr_->velocity(), ibPatch.ibMesh().coordinates());
// Move points // Move points
ibPatch.moveTriSurfacePoints ibPatch.moveTriSurfacePoints
( (