CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   subMesh, patch type differs OF1.5dev and OF1.6 (http://www.cfd-online.com/Forums/openfoam-programming-development/86458-submesh-patch-type-differs-of1-5dev-of1-6-a.html)

nikwin March 23, 2011 07:28

subMesh, patch type differs OF1.5dev and OF1.6
 
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();


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