CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   subMesh, patch type differs OF1.5dev and OF1.6 (

nikwin March 23, 2011 07:28

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

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


All times are GMT -4. The time now is 19:15.