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

subMesh, patch type differs OF1.5dev and OF1.6

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2011, 06:28
Default subMesh, patch type differs OF1.5dev and OF1.6
  #1
Member
 
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 17
nikwin is on a distinguished road
Hello,

Using the code below to obtain a subMesh. However, in OF1.5dev the new patch, i.e. oldInternalFaces gets type patch, while in OF1.6 it gets the type empty. Is there a way to get it to be of type patch in OF1.6?

Thanks
/NW

word setName("cellLst");
cellSet currentSet(mesh, setName, cellLst);

// Create mesh subsetting engine
fvMeshSubset subsetter(U,mesh);

label patchI = -1;

subsetter.setLargeCellSubset(currentSet,patchI, true);

const fvMesh& subsetMesh=subsetter.subMesh();

subsetMesh.write();
nikwin 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



All times are GMT -4. The time now is 14:41.