|
[Sponsors] |
July 7, 2010, 06:50 |
Rotating patch not rotating?
|
#1 |
Member
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 73
Rep Power: 17 |
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; } 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 |
|
|
|
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 |