CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Rotating patch not rotating?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2010, 06:50
Default Rotating patch not rotating?
  #1
Member
 
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 73
Rep Power: 17
cwang5 is on a distinguished road
Hi guys,

I am trying to implement a rotational motion on a patch in OF1.6.x so that the patch rotates for 0.001 radian per time step. The rotation was implemented using a rotational tensor, and the points on the patch moved using the following algorithm:

Code:
forAllConstIter(labelHashSet, patchList_, iter)
{
    label patchi = iter.key();
    vectorField oldCell = mesh.C().boundaryField()[patchi];
    pointField oldPoint = mesh.boundaryMesh()[patchi].localPoints();
    vectorField newCell = ((oldCell-CoR) & RotTen) + CoR;
    pointField newPoint = ((oldPoint-CoR) & RotTen) + CoR;
    pointDisplacement.boundaryField()[patchi] == newPoint - oldPoint;
    cellDisplacement.boundaryField()[patchi] == newCell - oldCell;
}
Where CoR is the center of rotation and RotTen is the rotational tensor mentioned above.

However, after running the solver for a couple of time steps (~1,000) the patch and the grid points around it hardly moved as oppose of turning the prescribed 1 radian (~58 degrees). I'm wondering if I'm doing anything wrong or has used the wrong expression for implementing the displacement fields. Any help will be greatly appreciated.

John
cwang5 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


All times are GMT -4. The time now is 03:24.