CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   PrimitivePatch movePoints() didnt move the points (https://www.cfd-online.com/Forums/openfoam/157146-primitivepatch-movepoints-didnt-move-points.html)

tiat July 21, 2015 10:57

PrimitivePatch movePoints() didnt move the points
 
Hi Foamers,

I am trying to use a PrimitivePatch to do some manipulations of point movements on a specific patch(surface). I had the prescibed pointField "pointDisp" and i call the function:

mySeaBottomPatch.movePoints(pointDisp);

However i checked the points coordinates before and after the movePoints, they are exactly the same.

I looked into the source code of PrimitivePatch.C and found the following code:

template<class Face,template<class> class FaceList,class PointField,class PointType>
void Foam::PrimitivePatch<Face, FaceList, PointField, PointType>::movePoints(const Field<PointType>&)
{
if (debug)
{
Pout<< "PrimitivePatch<Face, FaceList, PointField, PointType>::"<< "movePoints() : "<< "recalculating PrimitivePatch geometry following mesh motion"<< endl;
}
clearGeom();
}


it seems that the movePoints() function actually didn't move the points??? as i understand the clearGeom() function is just to clean the old points info?

I tried to look into other places to get some info of movePoints(), like polyMesh.movePoints(). However i still didn't manage to make things work. Anybody can help for such issue? I would appreciate any ideas.

Tian


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