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

movePoints in sampledSurfaces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2013, 10:31
Default movePoints in sampledSurfaces
  #1
Member
 
Ganesh Vijayakumar
Join Date: Jan 2010
Posts: 44
Rep Power: 16
ganeshv is on a distinguished road
hi!

I have a moving mesh simulation (solid Body Rotation) and I use pimpleFoam to run this. I have a set of stl files inside the rotating region that I want to sample on during runtime. These stl files need to rotate along with the mesh that's rotating. What's the easiest way to do this? I thought something like this will work, but clearly it's not working

dictionary probeSurfaces = runTime.controlDict().subDict("ySurfaces") ;
sampledSurfaces yPlanes("yPlanes", mesh, probeSurfaces) ;

Code:
forAll (yPlanes, yPlaneI) {
      pointField yPlanePoints = yPlanes[yPlaneI].points() ;
      Pout << yPlanePoints << endl ;
      pointField newyPlanePoints = transform(windTurbineRotation.transformation(), yPlanePoints) ;
      static_cast<const sampledTriSurfaceMesh*>(& yPlanes[yPlaneI])->movePoints(newyPlanePoints) ;
    }
    yPlanes.write();
ganeshv is offline   Reply With Quote

Reply

Tags
movepoints, sampledsurface


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



All times are GMT -4. The time now is 17:05.