|
[Sponsors] |
PrimitivePatch movePoints() didnt move the points |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 21, 2015, 10:57 |
PrimitivePatch movePoints() didnt move the points
|
#1 |
New Member
Tian Tang
Join Date: Jun 2012
Location: Copenhagen, Denmark
Posts: 18
Rep Power: 14 |
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 |
|
|
|
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 |