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

Can I make a copy of a patch mesh and move it?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2010, 11:29
Default Can I make a copy of a patch mesh and move it?
  #1
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi,


In my solver I use patchToPatchInterpolation to interpolate a value from one patch to another, but I need the deformed patch mesh to define the patchToPatchInterpolation. Is there some way I can make a copy of a patch mesh and then move it?

At the moment I move the whole mesh, then declare my patchToPatchInterpolation and do any patch interpolation I need, then I move the whole mesh back.
This is obviously not the most efficient way of doing it.

I define the patchToPatchInterpolation like this:
Code:
patchToPatchInterpolation masterToSlaveInterpolate
(
deformedMesh.boundaryMesh()[masterIndex], //from patch
deformedmesh.boundaryMesh()[slaveIndex], //to patch
algorithm,
direction
);

Is there some way I can make a copy of the patch meshes and then move these?

I tried:
Code:
polyPatch masterPatchMesh mesh.boundaryMesh()[masterIndex];
masterPatchMesh.movePoints(pointUonMasterPatch);
but that doesn't work presumably because I haven't actually made a copy of the mesh patch I just have a pointer to it...

Hopefully some one might have an idea to help me,
All suggestions welcome.


Thanks,
Philip
bigphil 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
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 05:24
engrid -> save as .stl with boundarie codes Zymon enGrid 31 August 29, 2011 14:40
Move boundary mesh points gruber OpenFOAM 1 January 27, 2010 11:03
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Using engineering data to move a mesh hermallorn Siemens 1 May 12, 2006 20:47


All times are GMT -4. The time now is 21:35.