Bugfix: mesh motion in 3-D. Inno Gatin
This commit is contained in:
parent
e1378bdd1e
commit
03b0fe773b
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
(
|
(
|
||||||
|
|
Reference in a new issue