CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Rotating square on icoFoam cavity (

McCarra December 11, 2010 08:50

Rotating square on icoFoam cavity
1 Attachment(s)
Hi Foamers,

I inserted an obstacle in the icoFoam/cavity case and to see what happens when it rotates I've included dynamic mesh effects on icoFoam.

The thing is: The square rotates correctly, but the problem is that the mesh rotates with it, and that produces a bad mesh quality (severe non-orthogonality). I would like the mesh to just stretch and contract as the square rotates. I mean, I don't want the points attached to the square to rotate.
To better explain: When you look at the mesh in the wireframe form on paraView, I want the horizontal wires to keep their y(vertical) position and move (expand or contract) horizontally as the square rotates, and I want the vertical wires to keep their x (horizontal) position and move (expand or contract) vertically as the square rotates.

I attach an image to show my resulting mesh behavior, which is what I don't want.

How can this be achieved? Attach/detach? Sliding interface?

Thanks and regards!

All the best

McCarra January 14, 2011 10:23

Well, what I finally did is rotate a small angle and re-blockMesh with the position of the new points. Then interpolated results to the new mesh and rotate a bit more and repeat the process several times.

I used moveDynamicMesh to check mesh validity, to assure the rotated angle at each part does not destroy the mesh.

Any better ideas?

Thanks and regards!

All times are GMT -4. The time now is 13:09.