CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

movePoints in sampledSurfaces

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   March 13, 2013, 10:31
Default movePoints in sampledSurfaces
Ganesh Vijayakumar
Join Date: Jan 2010
Posts: 44
Rep Power: 9
ganeshv is on a distinguished road

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) ;

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) ;
ganeshv is offline   Reply With Quote


movepoints, sampledsurface

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

All times are GMT -4. The time now is 16:08.