CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   movePoints in sampledSurfaces (http://www.cfd-online.com/Forums/openfoam-solving/114566-movepoints-sampledsurfaces.html)

ganeshv March 13, 2013 10:31

movePoints in sampledSurfaces
 
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();



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