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

PrimitivePatch movePoints() didnt move the points

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 21, 2015, 09:57
Default PrimitivePatch movePoints() didnt move the points
  #1
New Member
 
Tian Tang
Join Date: Jun 2012
Location: Copenhagen, Denmark
Posts: 16
Rep Power: 5
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
crash sHM H25E OpenFOAM Native Meshers: snappyHexMesh and Others 11 November 10, 2014 12:27
DynamicMesh - Move internal points nucat OpenFOAM Mesh Utilities 2 September 6, 2014 08:54
No layers in a small gap bobburnquist OpenFOAM Native Meshers: snappyHexMesh and Others 2 November 25, 2012 09:54
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07: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 07:05.