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

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

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

LinkBack Thread Tools Display Modes
Old   March 23, 2011, 07:28
Default subMesh, patch type differs OF1.5dev and OF1.6
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 8
nikwin is on a distinguished road

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?


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();

nikwin 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

All times are GMT -4. The time now is 02:49.