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

PrimitivePatch movePoints() didnt move the points

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2015, 10:57
Default PrimitivePatch movePoints() didnt move the points
  #1
New Member
 
Tian Tang
Join Date: Jun 2012
Location: Copenhagen, Denmark
Posts: 18
Rep Power: 14
tiat is on a distinguished road
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
tiat is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
[snappyHexMesh] crash sHM H25E OpenFOAM Meshing & Mesh Conversion 11 November 10, 2014 12:27
[mesh manipulation] DynamicMesh - Move internal points nucat OpenFOAM Meshing & Mesh Conversion 2 September 6, 2014 09:54
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27


All times are GMT -4. The time now is 18:42.