CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

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

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

LinkBack Thread Tools Display Modes
Old   October 13, 2010, 10:29
Default Can I make a copy of a patch mesh and move it?
Senior Member
bigphil's Avatar
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 572
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough

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:
patchToPatchInterpolation masterToSlaveInterpolate
deformedMesh.boundaryMesh()[masterIndex], //from patch
deformedmesh.boundaryMesh()[slaveIndex], //to patch

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

I tried:
polyPatch masterPatchMesh mesh.boundaryMesh()[masterIndex];
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.

bigphil is offline   Reply With Quote


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
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24
engrid -> save as .stl with boundarie codes Zymon enGrid 31 August 29, 2011 13: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 CD-adapco 1 May 12, 2006 19:47

All times are GMT -4. The time now is 17:31.